Home
last modified time | relevance | path

Searched refs:fbatch (Results 1 – 25 of 30) sorted by relevance

12

/linux/mm/
H A Dfolio.c178 static void folio_batch_move_lru(struct folio_batch *fbatch, move_fn_t move_fn) in folio_batch_move_lru()
193 for (i = 0; i < folio_batch_count(fbatch); i++) { in folio_batch_move_lru()
194 struct folio *folio = fbatch->folios[i]; in folio_batch_move_lru()
214 fbatch->folios[i] = NULL; in __folio_batch_add_and_move()
234 folios_put(fbatch);
237 static void __folio_batch_add_and_move(struct folio_batch __percpu *fbatch,
249 if (!folio_batch_add(this_cpu_ptr(fbatch), folio) || in lru_move_tail()
251 folio_batch_move_lru(this_cpu_ptr(fbatch), move_fn); in lru_move_tail()
315 struct folio_batch *fbatch = &per_cpu(cpu_fbatches.lru_activate, cpu); in folio_activate()
317 if (folio_batch_count(fbatch)) in folio_activate()
152 folio_batch_move_lru(struct folio_batch * fbatch,move_fn_t move_fn) folio_batch_move_lru() argument
211 __folio_batch_add_and_move(struct folio_batch __percpu * fbatch,struct folio * folio,move_fn_t move_fn,bool disable_irq) __folio_batch_add_and_move() argument
289 struct folio_batch *fbatch = &per_cpu(cpu_fbatches.lru_activate, cpu); folio_activate_drain() local
325 struct folio_batch *fbatch; __lru_cache_activate_folio() local
623 struct folio_batch *fbatch = &fbatches->lru_add; lru_add_drain_cpu() local
1054 struct folio_batch fbatch; release_pages() local
1090 __folio_batch_release(struct folio_batch * fbatch) __folio_batch_release() argument
1109 folio_batch_remove_exceptionals(struct folio_batch * fbatch) folio_batch_remove_exceptionals() argument
[all...]
H A Dmlock.c33 struct folio_batch fbatch; member
186 static void mlock_folio_batch(struct folio_batch *fbatch) in mlock_folio_batch() argument
193 for (i = 0; i < folio_batch_count(fbatch); i++) { in mlock_folio_batch()
194 folio = fbatch->folios[i]; in mlock_folio_batch()
197 fbatch->folios[i] = folio; in mlock_folio_batch()
209 folios_put(fbatch); in mlock_folio_batch()
214 struct folio_batch *fbatch; in mlock_drain_local() local
217 fbatch = this_cpu_ptr(&mlock_fbatch.fbatch); in mlock_drain_local()
218 if (folio_batch_count(fbatch)) in mlock_drain_local()
225 struct folio_batch *fbatch; mlock_drain_remote() local
244 struct folio_batch *fbatch; mlock_folio() local
269 struct folio_batch *fbatch; mlock_new_folio() local
292 struct folio_batch *fbatch; munlock_folio() local
[all...]
H A Dfilemap.c261 * @fbatch: batch of folios to delete in filemap_remove_folio()
264 * @fbatch from the mapping. The function expects @fbatch to be sorted in filemap_remove_folio()
266 * It tolerates holes in @fbatch (mapping entries at those indices are not
272 struct folio_batch *fbatch)
274 XA_STATE(xas, &mapping->i_pages, fbatch->folios[0]->index);
281 if (i >= folio_batch_count(fbatch)) in page_cache_delete_batch()
294 if (folio != fbatch->folios[i]) { in page_cache_delete_batch()
296 fbatch->folios[i]->index, folio); in page_cache_delete_batch()
313 struct folio_batch *fbatch) in page_cache_delete_batch()
280 page_cache_delete_batch(struct address_space * mapping,struct folio_batch * fbatch) page_cache_delete_batch() argument
321 delete_from_page_cache_batch(struct address_space * mapping,struct folio_batch * fbatch) delete_from_page_cache_batch() argument
515 struct folio_batch fbatch; __filemap_fdatawait_range() local
2134 find_get_entries(struct address_space * mapping,pgoff_t * start,pgoff_t end,struct folio_batch * fbatch,pgoff_t * indices) find_get_entries() argument
2183 find_lock_entries(struct address_space * mapping,pgoff_t * start,pgoff_t end,struct folio_batch * fbatch,pgoff_t * indices) find_lock_entries() argument
2251 filemap_get_folios(struct address_space * mapping,pgoff_t * start,pgoff_t end,struct folio_batch * fbatch) filemap_get_folios() argument
2273 filemap_get_folios_contig(struct address_space * mapping,pgoff_t * start,pgoff_t end,struct folio_batch * fbatch) filemap_get_folios_contig() argument
2347 filemap_get_folios_tag(struct address_space * mapping,pgoff_t * start,pgoff_t end,xa_mark_t tag,struct folio_batch * fbatch) filemap_get_folios_tag() argument
2401 filemap_get_folios_dirty(struct address_space * mapping,pgoff_t * start,pgoff_t end,struct folio_batch * fbatch) filemap_get_folios_dirty() argument
2470 filemap_get_read_batch(struct address_space * mapping,pgoff_t index,pgoff_t max,struct folio_batch * fbatch) filemap_get_read_batch() argument
2619 filemap_create_folio(struct kiocb * iocb,struct folio_batch * fbatch) filemap_create_folio() argument
2687 filemap_get_pages(struct kiocb * iocb,size_t count,struct folio_batch * fbatch,bool need_uptodate) filemap_get_pages() argument
2794 struct folio_batch fbatch; filemap_read() local
3076 struct folio_batch fbatch; filemap_splice_read() local
[all...]
H A Dshmem.c1313 struct folio_batch fbatch; in shmem_getattr()
1316 folio_batch_init(&fbatch); in shmem_getattr()
1321 filemap_get_folios(mapping, &index, ~0UL, &fbatch)) { in shmem_getattr()
1322 check_move_unevictable_folios(&fbatch); in shmem_getattr()
1323 folio_batch_release(&fbatch); in shmem_getattr()
1366 struct folio_batch fbatch; in shmem_setattr()
1380 folio_batch_init(&fbatch); in shmem_setattr()
1383 &fbatch, indices)) { in shmem_setattr()
1384 for (i = 0; i < folio_batch_count(&fbatch); i++) { in shmem_setattr()
1385 folio = fbatch in shmem_setattr()
1073 struct folio_batch fbatch; shmem_unlock_mapping() local
1127 struct folio_batch fbatch; shmem_undo_range() local
1456 shmem_find_swap_entries(struct address_space * mapping,pgoff_t start,struct folio_batch * fbatch,pgoff_t * indices,unsigned int type) shmem_find_swap_entries() argument
1498 shmem_unuse_swap_entries(struct inode * inode,struct folio_batch * fbatch,pgoff_t * indices) shmem_unuse_swap_entries() argument
1529 struct folio_batch fbatch; shmem_unuse_inode() local
[all...]
H A Dpage-writeback.c2415 folio = folio_batch_next(&wbc->fbatch); in writeback_get_folio()
2417 folio_batch_release(&wbc->fbatch); in writeback_get_folio()
2420 wbc_to_tag(wbc), &wbc->fbatch); in writeback_get_folio()
2421 folio = folio_batch_next(&wbc->fbatch); in writeback_get_folio()
2466 folio_batch_init(&wbc->fbatch); in writeback_iter()
2546 folio_batch_release(&wbc->fbatch); in writeback_iter()
H A Dgup.c3486 struct folio_batch fbatch; in memfd_pin_folios()
3517 folio_batch_init(&fbatch); in memfd_pin_folios()
3529 &fbatch); in memfd_pin_folios()
3536 folio = fbatch.folios[i];
3554 folio_batch_release(&fbatch); in folio_add_pins()
3579 folio_batch_release(&fbatch);
3444 struct folio_batch fbatch; memfd_pin_folios() local
/linux/fs/ramfs/
H A Dfile-nommu.c211 struct folio_batch fbatch; in ramfs_nommu_get_unmapped_area() local
227 folio_batch_init(&fbatch); in ramfs_nommu_get_unmapped_area()
231 ULONG_MAX, &fbatch); in ramfs_nommu_get_unmapped_area()
238 ret = (unsigned long) folio_address(fbatch.folios[0]); in ramfs_nommu_get_unmapped_area()
239 pfn = folio_pfn(fbatch.folios[0]); in ramfs_nommu_get_unmapped_area()
243 if (pfn + nr_pages != folio_pfn(fbatch.folios[loop])) { in ramfs_nommu_get_unmapped_area()
247 nr_pages += folio_nr_pages(fbatch.folios[loop]); in ramfs_nommu_get_unmapped_area()
253 folio_batch_release(&fbatch); in ramfs_nommu_get_unmapped_area()
259 folio_batch_release(&fbatch); in ramfs_nommu_get_unmapped_area()
/linux/fs/iomap/
H A Diter.c16 if (!iter->fbatch) in iomap_iter_clean_fbatch()
19 if (folio_batch_count(iter->fbatch)) { in iomap_iter_clean_fbatch()
20 folio_batch_release(iter->fbatch); in iomap_iter_clean_fbatch()
21 folio_batch_reinit(iter->fbatch); in iomap_iter_clean_fbatch()
H A Dbuffered-io.c963 struct folio *folio = folio_batch_next(iter->fbatch); in __iomap_get_folio()
1758 if (!iter->fbatch) { in iomap_zero_range()
1763 count = filemap_get_folios_dirty(mapping, &pstart, pend, iter->fbatch); in iomap_zero_range()
1775 struct folio_batch fbatch; in iomap_zero_range()
1782 .fbatch = &fbatch, in iomap_zero_range()
1788 folio_batch_init(&fbatch);
1744 struct folio_batch fbatch; iomap_zero_range() local
/linux/fs/netfs/
H A Drolling_buffer.c226 struct folio_batch fbatch; in rolling_buffer_clear() local
229 folio_batch_init(&fbatch); in rolling_buffer_clear()
240 if (!folio_batch_add(&fbatch, folio)) in rolling_buffer_clear()
241 folio_batch_release(&fbatch); in rolling_buffer_clear()
248 folio_batch_release(&fbatch); in rolling_buffer_clear()
H A Dmisc.c82 struct folio_batch fbatch; in netfs_free_folioq_buffer() local
84 folio_batch_init(&fbatch); in netfs_free_folioq_buffer()
95 if (folio_batch_add(&fbatch, folio)) in netfs_free_folioq_buffer()
96 folio_batch_release(&fbatch); in netfs_free_folioq_buffer()
104 folio_batch_release(&fbatch); in netfs_free_folioq_buffer()
H A Dbuffered_read.c62 struct folio_batch fbatch; in netfs_bulk_drop_ra_refs() local
68 folio_batch_init(&fbatch); in netfs_bulk_drop_ra_refs()
76 if (!folio_batch_add(&fbatch, folio)) in netfs_bulk_drop_ra_refs()
77 folio_batch_release(&fbatch); in netfs_bulk_drop_ra_refs()
81 folio_batch_release(&fbatch); in netfs_bulk_drop_ra_refs()
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_shmem.c27 static void check_release_folio_batch(struct folio_batch *fbatch) in check_release_folio_batch() argument
29 check_move_unevictable_folios(fbatch); in check_release_folio_batch()
30 __folio_batch_release(fbatch); in check_release_folio_batch()
38 struct folio_batch fbatch; in shmem_sg_free_table() local
44 folio_batch_init(&fbatch); in shmem_sg_free_table()
56 if (!folio_batch_add(&fbatch, folio)) in shmem_sg_free_table()
57 check_release_folio_batch(&fbatch); in shmem_sg_free_table()
59 if (fbatch.nr) in shmem_sg_free_table()
60 check_release_folio_batch(&fbatch); in shmem_sg_free_table()
/linux/fs/ceph/
H A Daddr.c652 struct folio_batch fbatch; in get_oldest_context()
1077 folio_batch_init(&ceph_wbc->fbatch); in ceph_init_writeback_ctl()
1084 folio_batch_release(&ceph_wbc->fbatch); in ceph_init_writeback_ctl()
1359 folio = ceph_wbc->fbatch.folios[i]; in ceph_process_folio_batch()
1388 ceph_wbc->fbatch.folios[i] = NULL; in ceph_process_folio_batch()
1399 ceph_wbc->fbatch.folios[i] = NULL; in ceph_process_folio_batch()
1423 /* note position of first page in fbatch */ in ceph_shift_unused_folios_left()
1442 ceph_wbc->fbatch.folios[i] = NULL;
1450 void ceph_shift_unused_folios_left(struct folio_batch *fbatch) in ceph_submit_write()
1454 /* shift unused page to beginning of fbatch */ in ceph_submit_write()
617 struct folio_batch fbatch; global() member
1413 ceph_shift_unused_folios_left(struct folio_batch * fbatch) ceph_shift_unused_folios_left() argument
[all...]
/linux/fs/f2fs/
H A Dnode.c1699 struct folio_batch fbatch; last_fsync_dnode() local
1920 struct folio_batch fbatch; f2fs_fsync_node_pages() local
2079 struct folio_batch fbatch; f2fs_flush_inline_data() local
2122 struct folio_batch fbatch; f2fs_sync_node_pages() local
H A Dcheckpoint.c614 struct folio_batch fbatch; f2fs_sync_meta_pages() local
/linux/fs/btrfs/tests/
H A Dextent-io-tests.c25 struct folio_batch fbatch; in process_page_range() local
32 folio_batch_init(&fbatch); in process_page_range()
36 end_index, &fbatch); in process_page_range()
38 struct folio *folio = fbatch.folios[i]; in process_page_range()
48 folio_batch_release(&fbatch); in process_page_range()
/linux/include/linux/
H A Dpagemap.h986 pgoff_t end, struct folio_batch *fbatch); in folio_contains()
988 pgoff_t *start, pgoff_t end, struct folio_batch *fbatch);
990 pgoff_t end, xa_mark_t tag, struct folio_batch *fbatch);
992 pgoff_t *start, pgoff_t end, struct folio_batch *fbatch);
1350 struct folio_batch *fbatch);
H A Dswap.h359 void check_move_unevictable_folios(struct folio_batch *fbatch);
/linux/fs/hugetlbfs/
H A Dinode.c568 struct folio_batch fbatch; in remove_inode_hugepages()
573 folio_batch_init(&fbatch); in remove_inode_hugepages()
575 while (filemap_get_folios(mapping, &next, end - 1, &fbatch)) { in remove_inode_hugepages()
576 for (i = 0; i < folio_batch_count(&fbatch); ++i) { in remove_inode_hugepages()
577 struct folio *folio = fbatch.folios[i]; in remove_inode_hugepages()
593 folio_batch_release(&fbatch); in hugetlbfs_evict_inode()
558 struct folio_batch fbatch; remove_inode_hugepages() local
/linux/fs/btrfs/
H A Dextent_io.c273 struct folio_batch fbatch; in __process_folios_contig() local
276 folio_batch_init(&fbatch); in __process_folios_contig()
281 end_index, &fbatch); in __process_folios_contig()
283 struct folio *folio = fbatch.folios[i]; in __process_folios_contig()
288 folio_batch_release(&fbatch); in __process_folios_contig()
331 struct folio_batch fbatch; in lock_delalloc_folios() local
333 folio_batch_init(&fbatch); in lock_delalloc_folios()
338 end_index, &fbatch); in lock_delalloc_folios()
343 struct folio *folio = fbatch.folios[i]; in lock_delalloc_folios()
363 folio_batch_release(&fbatch); in lock_delalloc_folios()
2724 struct folio_batch fbatch; extent_write_cache_pages() local
[all...]
H A Dcompression.c256 struct folio_batch fbatch; in end_compressed_writeback() local
264 folio_batch_init(&fbatch); in end_compressed_writeback()
267 &fbatch); in end_compressed_writeback()
273 struct folio *folio = fbatch.folios[i]; in end_compressed_writeback()
278 folio_batch_release(&fbatch); in end_compressed_writeback()
/linux/fs/ntfs3/
H A Dfile.c337 struct folio_batch fbatch; in ntfs_zero_tail()
341 folio_batch_init(&fbatch); in ntfs_zero_tail()
343 nr = filemap_get_folios(mapping, &index, -1, &fbatch); in ntfs_zero_tail()
346 struct folio *folio = fbatch.folios[i]; in ntfs_zero_tail()
356 folio_batch_release(&fbatch); in ntfs_filemap_close()
333 struct folio_batch fbatch; ntfs_zero_tail() local
/linux/fs/ext4/
H A Dinode.c1896 struct folio_batch fbatch; in ext4_insert_delayed_blocks()
1919 folio_batch_init(&fbatch); in ext4_da_map_blocks()
1923 nr = filemap_get_folios(mapping, &index, end - 1, &fbatch); in ext4_da_map_blocks()
1927 struct folio *folio = fbatch.folios[i]; in ext4_da_map_blocks()
1958 folio_batch_release(&fbatch); in ext4_da_map_blocks()
2488 struct folio_batch fbatch; in mpage_map_and_submit_extent()
2501 folio_batch_init(&fbatch); in mpage_map_and_submit_extent()
2503 nr = filemap_get_folios(inode->i_mapping, &start, end, &fbatch); in mpage_map_and_submit_extent()
2507 struct folio *folio = fbatch.folios[i]; in mpage_map_and_submit_extent()
2523 folio_batch_release(&fbatch); in mpage_map_and_submit_extent()
1711 struct folio_batch fbatch; mpage_release_unused_pages() local
2299 struct folio_batch fbatch; mpage_map_and_submit_buffers() local
2611 struct folio_batch fbatch; mpage_prepare_extent_to_map() local
[all...]
/linux/fs/
H A Dbuffer.c1640 struct folio_batch fbatch; in clean_bdev_aliases()
1648 folio_batch_init(&fbatch); in clean_bdev_aliases()
1649 while (filemap_get_folios(bd_mapping, &index, end, &fbatch)) { in clean_bdev_aliases()
1650 count = folio_batch_count(&fbatch); in clean_bdev_aliases()
1652 struct folio *folio = fbatch.folios[i]; in clean_bdev_aliases()
1681 folio_batch_release(&fbatch); in clean_bdev_aliases()
1636 struct folio_batch fbatch; clean_bdev_aliases() local

12