Home
last modified time | relevance | path

Searched refs:folio_pos (Results 1 – 25 of 32) sorted by relevance

12

/linux-6.6.21/fs/orangefs/
Dinode.c296 off = folio_pos(folio); in orangefs_read_folio()
418 } else if (folio_pos(folio) + offset <= wr->pos && in orangefs_invalidate_folio()
419 wr->pos + wr->len <= folio_pos(folio) + offset + length) { in orangefs_invalidate_folio()
425 } else if (wr->pos < folio_pos(folio) + offset && in orangefs_invalidate_folio()
426 wr->pos + wr->len <= folio_pos(folio) + offset + length && in orangefs_invalidate_folio()
427 folio_pos(folio) + offset < wr->pos + wr->len) { in orangefs_invalidate_folio()
429 x = wr->pos + wr->len - (folio_pos(folio) + offset); in orangefs_invalidate_folio()
435 } else if (folio_pos(folio) + offset <= wr->pos && in orangefs_invalidate_folio()
436 folio_pos(folio) + offset + length < wr->pos + wr->len && in orangefs_invalidate_folio()
437 wr->pos < folio_pos(folio) + offset + length) { in orangefs_invalidate_folio()
[all …]
/linux-6.6.21/fs/iomap/
Dbuffered-io.c409 .pos = folio_pos(folio), in iomap_read_folio()
561 trace_iomap_release_folio(folio->mapping->host, folio_pos(folio), in iomap_release_folio()
579 folio_pos(folio) + offset, len); in iomap_invalidate_folio()
649 if (!(iter->flags & IOMAP_UNSHARE) && pos <= folio_pos(folio) && in __iomap_write_begin()
650 pos + len >= folio_pos(folio) + folio_size(folio)) in __iomap_write_begin()
768 if (pos + len > folio_pos(folio) + folio_size(folio)) in iomap_write_begin()
769 len = folio_pos(folio) + folio_size(folio) - pos; in iomap_write_begin()
1005 folio_pos(folio) + folio_size(folio) - 1); in iomap_write_delalloc_ifs_punch()
1010 ret = punch(inode, folio_pos(folio) + (i << blkbits), in iomap_write_delalloc_ifs_punch()
1049 folio_pos(folio) + folio_size(folio)); in iomap_write_delalloc_punch()
[all …]
/linux-6.6.21/fs/freevxfs/
Dvxfs_immed.c34 void *src = vip->vii_immed.vi_immed + folio_pos(folio); in vxfs_immed_read_folio()
/linux-6.6.21/fs/
Dmpage.c586 if (folio_pos(folio) >= i_size) in __mpage_writepage()
589 if (folio_pos(folio) + length > i_size) { in __mpage_writepage()
598 length = i_size - folio_pos(folio); in __mpage_writepage()
Dbuffer.c2245 size_t start = pos - folio_pos(folio); in block_write_end()
2626 (folio_pos(folio) >= size)) { in block_page_mkwrite()
2634 if (folio_pos(folio) + end > size) in block_page_mkwrite()
2635 end = size - folio_pos(folio); in block_page_mkwrite()
2736 if (folio_pos(folio) + folio_size(folio) <= i_size) in block_write_full_page()
2741 if (folio_pos(folio) >= i_size) { in block_write_full_page()
/linux-6.6.21/fs/erofs/
Dfscache.c172 folio_pos(folio), folio_size(folio)); in erofs_fscache_meta_read_folio()
179 folio_pos(folio), folio_size(folio)); in erofs_fscache_meta_read_folio()
280 folio_pos(folio), folio_size(folio)); in erofs_fscache_read_folio()
/linux-6.6.21/fs/afs/
Dwrite.c56 .range_start = folio_pos(folio), in afs_flush_conflicting_write()
61 return afs_writepages_region(mapping, &wbc, folio_pos(folio), LLONG_MAX, in afs_flush_conflicting_write()
727 start = folio_pos(folio); /* May regress with THPs */ in afs_writepages_region()
1022 ret = afs_store_data(vnode, &iter, folio_pos(folio) + f, true); in afs_launder_folio()
Dfile.c349 fsreq->pos = folio_pos(folio); in afs_symlink_read_folio()
Ddir.c148 pos = folio_pos(folio); in afs_dir_check_folio()
207 size = min_t(loff_t, folio_size(folio), req->actual_len - folio_pos(folio)); in afs_dir_dump()
/linux-6.6.21/mm/
Dtruncate.c212 loff_t pos = folio_pos(folio); in truncate_inode_partial_folio()
378 same_folio = lend < folio_pos(folio) + folio_size(folio); in truncate_inode_pages_range()
Dfilemap.c2412 if (folio_pos(folio) > pos) { in filemap_range_uptodate()
2413 count -= folio_pos(folio) - pos; in filemap_range_uptodate()
2416 pos -= folio_pos(folio); in filemap_range_uptodate()
2700 if (end_offset < folio_pos(folio)) in filemap_read()
2955 if (folio_pos(folio) >= end_offset) in filemap_splice_read()
/linux-6.6.21/arch/xtensa/mm/
Dcache.c141 unsigned long temp = folio_pos(folio); in flush_dcache_folio()
/linux-6.6.21/fs/gfs2/
Daops.c105 if (folio_pos(folio) < i_size && in gfs2_write_jdata_folio()
106 i_size < folio_pos(folio) + folio_size(folio)) in gfs2_write_jdata_folio()
/linux-6.6.21/arch/arm/mm/
Dflush.c235 flush_pfn_alias(folio_pfn(folio), folio_pos(folio)); in __flush_dcache_folio()
/linux-6.6.21/fs/9p/
Dvfs_addr.c155 loff_t start = folio_pos(folio); in v9fs_vfs_write_folio_locked()
/linux-6.6.21/fs/netfs/
Dbuffered_read.c55 pg_end = folio_pos(folio) + folio_size(folio) - 1; in netfs_rreq_unlock_folios()
/linux-6.6.21/fs/affs/
Dfile.c539 tmp = folio_pos(folio); in affs_do_read_folio_ofs()
637 if (folio_pos(folio) + to > inode->i_size) { in affs_read_folio_ofs()
638 to = inode->i_size - folio_pos(folio); in affs_read_folio_ofs()
/linux-6.6.21/fs/ext4/
Dinode.c1874 if (folio_pos(folio) + len > size && in mpage_submit_folio()
2324 err = ext4_jbd2_inode_add_write(handle, inode, folio_pos(folio), len); in ext4_journal_folio_buffers()
2343 if (folio_pos(folio) + len > size && in mpage_journal_page_buffers()
2345 len = size - folio_pos(folio); in mpage_journal_page_buffers()
6117 if (folio->mapping != mapping || folio_pos(folio) > size) { in ext4_page_mkwrite()
6124 if (folio_pos(folio) + len > size) in ext4_page_mkwrite()
6125 len = size - folio_pos(folio); in ext4_page_mkwrite()
6167 if (folio->mapping != mapping || folio_pos(folio) > size) { in ext4_page_mkwrite()
6173 if (folio_pos(folio) + len > size) in ext4_page_mkwrite()
6174 len = size - folio_pos(folio); in ext4_page_mkwrite()
/linux-6.6.21/fs/xfs/
Dxfs_aops.c486 folio_pos(folio) + folio_size(folio)); in xfs_discard_folio()
/linux-6.6.21/arch/arc/mm/
Dcache.c741 unsigned long vaddr = folio_pos(folio); in flush_dcache_folio()
/linux-6.6.21/fs/nfs/
Dfile.c501 inode->i_ino, folio_pos(folio)); in nfs_launder_folio()
/linux-6.6.21/fs/smb/client/
Dcifsencrypt.c127 foffset = start - folio_pos(folio); in cifs_shash_xarray()
Dfile.c2775 wdata->offset = folio_pos(folio); in cifs_write_back_from_locked_folio()
2889 start = folio_pos(folio); /* May regress with THPs */ in cifs_writepages_region()
4863 loff_t range_start = folio_pos(folio); in cifs_launder_folio()
Dcifsfs.c1252 fpos = folio_pos(folio); in cifs_flush_folio()
/linux-6.6.21/include/linux/
Dpagemap.h935 static inline loff_t folio_pos(struct folio *folio) in folio_pos() function

12