/linux-master/block/partitions/ |
H A D | core.c | 705 struct folio *folio; local 712 folio = read_mapping_folio(mapping, n >> PAGE_SECTORS_SHIFT, NULL); 713 if (IS_ERR(folio)) 716 p->v = folio; 717 return folio_address(folio) + offset_in_folio(folio, n * SECTOR_SIZE);
|
/linux-master/block/ |
H A D | bio.c | 1132 void bio_add_folio_nofail(struct bio *bio, struct folio *folio, size_t len, argument 1137 __bio_add_page(bio, &folio->page, len, off); 1142 * bio_add_folio - Attempt to add part of a folio to a bio. 1144 * @folio: Folio to add. 1145 * @len: How many bytes from the folio to add. 1146 * @off: First byte in this folio to add. 1149 * bio_add_page() for each page in the folio. If @off is bigger than 1155 bool bio_add_folio(struct bio *bio, struct folio *folio, size_ argument [all...] |
/linux-master/fs/ext4/ |
H A D | mballoc.c | 1277 static int ext4_mb_init_cache(struct folio *folio, char *incore, gfp_t gfp) argument 1295 inode = folio->mapping->host; 1301 mb_debug(sb, "init folio %lu\n", folio->index); 1316 first_group = folio->index * blocks_per_page / 2; 1318 /* read all groups the folio covers into the cache */ 1329 * we must skip all initialized uptodate buddies on the folio, 1332 if (folio_test_uptodate(folio) && 1357 first_block = folio 1455 struct folio *folio; local 1515 struct folio *folio; local 1587 struct folio *folio; local [all...] |
/linux-master/include/trace/events/ |
H A D | netfs.h | 409 TP_PROTO(struct folio *folio, enum netfs_folio_trace why), 411 TP_ARGS(folio, why), 421 __entry->ino = folio->mapping->host->i_ino; 423 __entry->index = folio_index(folio); 424 __entry->nr = folio_nr_pages(folio); 572 const struct folio *folio, 576 TP_ARGS(wreq, folio, fend, collected_to), 588 __entry->index = folio [all...] |
/linux-master/fs/ |
H A D | splice.c | 67 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 D | fs-writeback.c | 264 void __inode_attach_wb(struct inode *inode, struct folio *folio) argument 272 if (folio) { 273 memcg_css = mem_cgroup_css_from_folio(folio); 402 struct folio *folio; local 422 xas_for_each_marked(&xas, folio, ULONG_MAX, PAGECACHE_TAG_DIRTY) { 423 if (folio_test_dirty(folio)) { 424 long nr = folio_nr_pages(folio); 431 xas_for_each_marked(&xas, folio, ULONG_MA 903 struct folio *folio; local [all...] |
/linux-master/fs/ext2/ |
H A D | ext2.h | 725 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/hpfs/ |
H A D | file.c | 161 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 D | scatterlist.h | 145 * 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 D | file.c | 287 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 D | inode.c | 17 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 D | inode.c | 273 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 D | inode.c | 43 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 D | file.c | 229 static int vboxsf_read_folio(struct file *file, struct folio *folio) argument 231 struct page *page = &folio->page;
|
/linux-master/fs/isofs/ |
H A D | compress.c | 302 static int zisofs_read_folio(struct file *file, struct folio *folio) argument 304 struct page *page = &folio->page;
|
/linux-master/fs/hfsplus/ |
H A D | inode.c | 26 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 D | inode.c | 32 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 D | lops.c | 401 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...] |
/linux-master/lib/ |
H A D | scatterlist.c | 1276 struct folio *folio; local 1285 xas_for_each(&xas, folio, ULONG_MAX) { 1286 if (xas_retry(&xas, folio)) 1288 if (WARN_ON(xa_is_value(folio))) 1290 if (WARN_ON(folio_test_hugetlb(folio))) 1293 offset = offset_in_folio(folio, start); 1294 len = min_t(size_t, maxsize, folio_size(folio) - offset); 1296 sg_set_page(sg, folio_page(folio, 0), len, offset);
|
/linux-master/fs/btrfs/ |
H A D | zlib.c | 95 u64 start, struct folio **folios, unsigned long *out_folios, 103 struct folio *in_folio = NULL; 104 struct folio *out_folio = NULL; 240 /* Get another folio for the stream end. */ 288 struct folio **folios_in = cb->compressed_folios;
|
/linux-master/fs/jbd2/ |
H A D | commit.c | 65 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/mm/ |
H A D | slab_common.c | 951 struct folio *folio; local 956 folio = virt_to_folio(object); 958 if (unlikely(!folio_test_slab(folio))) { 959 if (WARN_ON(folio_size(folio) <= KMALLOC_MAX_CACHE_SIZE)) 961 if (WARN_ON(object != folio_address(folio))) 963 return folio_size(folio); 967 skip_orig_size_check(folio_slab(folio)->slab_cache, object); 970 return slab_ksize(folio_slab(folio)->slab_cache);
|
H A D | page_alloc.c | 920 struct folio *folio = (struct folio *)head_page; local 936 if (unlikely(folio_entire_mapcount(folio))) { 940 if (unlikely(folio_large_mapcount(folio))) { 944 if (unlikely(atomic_read(&folio->_nr_pages_mapped))) { 948 if (unlikely(atomic_read(&folio->_pincount))) { 955 if (unlikely(!list_empty(&folio->_deferred_list))) { 2626 struct folio *folio local 2651 struct folio *folio = folios->folios[i]; local 6371 struct folio *folio = page_folio(page); local [all...] |
/linux-master/fs/nfs/ |
H A D | pnfs.h | 197 struct folio *folio); 400 struct folio *folio); 562 struct folio *folio) 568 return fl_cinfo->ops->search_commit_reqs(cinfo, folio); 869 struct folio *folio) 561 pnfs_search_commit_reqs(struct inode *inode, struct nfs_commit_info *cinfo, struct folio *folio) argument 868 pnfs_search_commit_reqs(struct inode *inode, struct nfs_commit_info *cinfo, struct folio *folio) argument
|
H A D | nfstrace.h | 942 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...] |