Searched refs:folio (Results 251 - 275 of 361) sorted by relevance

<<1112131415

/linux-master/include/trace/events/
H A Dvmscan.h328 TP_PROTO(struct folio *folio),
330 TP_ARGS(folio),
338 __entry->pfn = folio_pfn(folio);
340 folio_is_file_lru(folio));
/linux-master/mm/kasan/
H A Dcommon.c493 struct folio *folio = virt_to_folio(ptr); local
498 * their memory from page_alloc. Thus, the folio might not be a slab.
500 if (unlikely(!folio_test_slab(folio))) {
503 kasan_poison(ptr, folio_size(folio), KASAN_PAGE_FREE, false);
510 slab = folio_slab(folio);
/linux-master/arch/arc/mm/
H A Dtlb.c490 struct folio *folio = page_folio(page); local
491 int dirty = !test_and_set_bit(PG_dc_clean, &folio->flags);
493 unsigned long offset = offset_in_folio(folio, paddr);
494 nr = folio_nr_pages(folio);
/linux-master/fs/f2fs/
H A Ddata.c2437 static int f2fs_read_data_folio(struct file *file, struct folio *folio) argument
2439 struct page *page = &folio->page;
3020 struct folio *folio = fbatch.folios[i]; local
3023 p = folio_nr_pages(folio);
3025 pages[nr_pages] = folio_page(folio, idx);
3026 folio_get(folio);
3028 index = folio->index + idx + 1;
3040 struct folio *foli local
3706 f2fs_invalidate_folio(struct folio *folio, size_t offset, size_t length) argument
3728 f2fs_release_folio(struct folio *folio, gfp_t wait) argument
3738 f2fs_dirty_data_folio(struct address_space *mapping, struct folio *folio) argument
[all...]
/linux-master/block/partitions/
H A Dcore.c708 struct folio *folio; local
715 folio = read_mapping_folio(mapping, n >> PAGE_SECTORS_SHIFT, NULL);
716 if (IS_ERR(folio))
719 p->v = folio;
720 return folio_address(folio) + offset_in_folio(folio, n * SECTOR_SIZE);
/linux-master/block/
H A Dbio.c1121 void bio_add_folio_nofail(struct bio *bio, struct folio *folio, size_t len, argument
1126 __bio_add_page(bio, &folio->page, len, off);
1130 * bio_add_folio - Attempt to add part of a folio to a bio.
1132 * @folio: Folio to add.
1133 * @len: How many bytes from the folio to add.
1134 * @off: First byte in this folio to add.
1137 * bio_add_page() for each page in the folio. If @off is bigger than
1143 bool bio_add_folio(struct bio *bio, struct folio *folio, size_ argument
[all...]
/linux-master/fs/
H A Dsplice.c67 struct folio *folio = page_folio(buf->page); local
70 folio_lock(folio);
72 mapping = folio_mapping(folio);
74 WARN_ON(!folio_test_uptodate(folio));
78 * writeback completing on this folio, since we'll remove it
80 * folio, allowing the disk blocks to be reused by someone else
84 folio_wait_writeback(folio);
86 if (!filemap_release_folio(folio, GFP_KERNEL))
93 if (remove_mapping(mapping, folio)) {
122 struct folio *folio = page_folio(buf->page); local
[all...]
H A Dfs-writeback.c265 void __inode_attach_wb(struct inode *inode, struct folio *folio) argument
273 if (folio) {
274 memcg_css = mem_cgroup_css_from_folio(folio);
403 struct folio *folio; local
423 xas_for_each_marked(&xas, folio, ULONG_MAX, PAGECACHE_TAG_DIRTY) {
424 if (folio_test_dirty(folio)) {
425 long nr = folio_nr_pages(folio);
432 xas_for_each_marked(&xas, folio, ULONG_MA
904 struct folio *folio; local
[all...]
/linux-master/mm/
H A Dpage_alloc.c593 void destroy_large_folio(struct folio *folio) argument
595 if (folio_test_hugetlb(folio)) {
596 free_huge_folio(folio);
600 if (folio_test_large_rmappable(folio))
601 folio_undo_large_rmappable(folio);
603 mem_cgroup_uncharge(folio);
604 free_the_page(&folio->page, folio_order(folio));
979 struct folio *foli local
2530 struct folio *folio = folios->folios[i]; local
2558 struct folio *folio = folios->folios[i]; local
[all...]
H A Dslab_common.c958 struct folio *folio; local
963 folio = virt_to_folio(object);
965 if (unlikely(!folio_test_slab(folio))) {
966 if (WARN_ON(folio_size(folio) <= KMALLOC_MAX_CACHE_SIZE))
968 if (WARN_ON(object != folio_address(folio)))
970 return folio_size(folio);
974 skip_orig_size_check(folio_slab(folio)->slab_cache, object);
977 return slab_ksize(folio_slab(folio)->slab_cache);
/linux-master/fs/ext2/
H A Dext2.h725 struct folio **foliop);
726 int ext2_delete_entry(struct ext2_dir_entry_2 *dir, struct folio *folio);
728 struct ext2_dir_entry_2 *ext2_dotdot(struct inode *dir, struct folio **foliop);
730 struct folio *folio, struct inode *inode, bool update_times);
/linux-master/fs/isofs/
H A Dcompress.c302 static int zisofs_read_folio(struct file *file, struct folio *folio) argument
304 struct page *page = &folio->page;
/linux-master/fs/hpfs/
H A Dfile.c161 static int hpfs_read_folio(struct file *file, struct folio *folio) argument
163 return mpage_read_folio(folio, hpfs_get_block);
/linux-master/include/linux/
H A Dscatterlist.h145 * sg_set_folio - Set sg entry to point at given folio
147 * @folio: The folio
149 * @offset: Offset into folio
152 * Use this function to set an sg entry pointing at a folio, never assign
153 * the folio directly. We encode sg table information in the lower bits
154 * of the folio pointer. See sg_page() for looking up the page belonging
158 static inline void sg_set_folio(struct scatterlist *sg, struct folio *folio, argument
163 sg_assign_page(sg, &folio
[all...]
/linux-master/fs/omfs/
H A Dfile.c287 static int omfs_read_folio(struct file *file, struct folio *folio) argument
289 return block_read_full_folio(folio, omfs_get_block);
/linux-master/fs/efs/
H A Dinode.c17 static int efs_read_folio(struct file *file, struct folio *folio) argument
19 return block_read_full_folio(folio, efs_get_block);
/linux-master/fs/jfs/
H A Dinode.c273 static int jfs_read_folio(struct file *file, struct folio *folio) argument
275 return mpage_read_folio(folio, jfs_get_block);
/linux-master/fs/adfs/
H A Dinode.c43 static int adfs_read_folio(struct file *file, struct folio *folio) argument
45 return block_read_full_folio(folio, adfs_get_block);
/linux-master/fs/vboxsf/
H A Dfile.c229 static int vboxsf_read_folio(struct file *file, struct folio *folio) argument
231 struct page *page = &folio->page;
/linux-master/fs/nfs/
H A Dpnfs.h197 struct folio *folio);
401 struct folio *folio);
563 struct folio *folio)
569 return fl_cinfo->ops->search_commit_reqs(cinfo, folio);
870 struct folio *folio)
562 pnfs_search_commit_reqs(struct inode *inode, struct nfs_commit_info *cinfo, struct folio *folio) argument
869 pnfs_search_commit_reqs(struct inode *inode, struct nfs_commit_info *cinfo, struct folio *folio) argument
H A Dnfstrace.h942 struct folio *folio
945 TP_ARGS(inode, folio),
963 __entry->offset = folio_file_pos(folio);
964 __entry->count = nfs_folio_length(folio);
981 struct folio *folio \
983 TP_ARGS(inode, folio))
988 struct folio *folio,
[all...]
/linux-master/fs/jbd2/
H A Dcommit.c65 struct folio *folio; local
71 folio = bh->b_folio;
72 if (folio->mapping)
76 if (!folio_trylock(folio))
79 folio_get(folio);
81 try_to_free_buffers(folio);
82 folio_unlock(folio);
83 folio_put(folio);
/linux-master/fs/hfsplus/
H A Dinode.c26 static int hfsplus_read_folio(struct file *file, struct folio *folio) argument
28 return block_read_full_folio(folio, hfsplus_get_block);
61 static bool hfsplus_release_folio(struct folio *folio, gfp_t mask) argument
63 struct inode *inode = folio->mapping->host;
88 nidx = folio->index >>
102 nidx = folio->index <<
119 return res ? try_to_free_buffers(folio) : false;
/linux-master/fs/hfs/
H A Dinode.c32 static int hfs_read_folio(struct file *file, struct folio *folio) argument
34 return block_read_full_folio(folio, hfs_get_block);
67 static bool hfs_release_folio(struct folio *folio, gfp_t mask) argument
69 struct inode *inode = folio->mapping->host;
93 nidx = folio->index >> (tree->node_size_shift - PAGE_SHIFT);
106 nidx = folio->index << (PAGE_SHIFT - tree->node_size_shift);
122 return res ? try_to_free_buffers(folio) : false;
/linux-master/fs/gfs2/
H A Dlops.c401 filemap_set_wb_err(fi.folio->mapping, error);
402 folio_end_read(fi.folio, !error);
449 * Find the folio with 'index' in the journal's mapping. Search the folio for
451 * folio so the page cache can reclaim it. We grabbed a
452 * reference on this folio twice, first when we did a grab_cache_page()
453 * to obtain the folio to add it to the bio and second when we do a
454 * filemap_get_folio() here to get the folio to wait on while I/O on it is being
456 * This function is also used to free up a folio we might've grabbed but not
459 * our references to the folio
466 struct folio *folio; local
[all...]

Completed in 504 milliseconds

<<1112131415