Home
last modified time | relevance | path

Searched refs:folio_size (Results 1 – 25 of 66) sorted by relevance

123

/linux-6.6.21/fs/iomap/
Dbuffered-io.c203 size_t plen = min_t(loff_t, folio_size(folio) - poff, length); in iomap_adjust_read_range()
410 .len = folio_size(folio), in iomap_read_folio()
524 count = min(folio_size(folio) - from, count); in iomap_is_partially_uptodate()
562 folio_size(folio)); in iomap_release_folio()
585 if (offset == 0 && len == folio_size(folio)) { in iomap_invalidate_folio()
596 size_t len = folio_size(folio); in iomap_dirty_folio()
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()
918 if (bytes > folio_size(folio) - offset) in iomap_write_iter()
[all …]
/linux-6.6.21/fs/netfs/
Dbuffered_read.c55 pg_end = folio_pos(folio) + folio_size(folio) - 1; in netfs_rreq_unlock_folios()
234 folio_file_pos(folio), folio_size(folio), in netfs_read_folio()
280 size_t plen = folio_size(folio); in netfs_skip_folio_read()
384 folio_file_pos(folio), folio_size(folio), in netfs_write_begin()
/linux-6.6.21/arch/ia64/mm/
Dinit.c61 flush_icache_range(addr, addr + folio_size(folio)); in __ia64_sync_icache_dcache()
78 left -= folio_size(folio) - offset; in arch_dma_mark_clean()
84 while (left >= (ssize_t)folio_size(folio)) { in arch_dma_mark_clean()
85 left -= folio_size(folio); in arch_dma_mark_clean()
/linux-6.6.21/include/linux/
Dhighmem.h445 VM_BUG_ON(offset + len > folio_size(folio)); in memcpy_from_folio()
466 VM_BUG_ON(offset + len > folio_size(folio)); in memcpy_to_folio()
508 len = min(len, folio_size(folio) - offset); in memcpy_from_file_folio()
Dfsverity.h258 return fsverity_verify_blocks(folio, folio_size(folio), 0); in fsverity_verify_folio()
Dnfs_page.h227 return folio_size(folio); in nfs_page_max_length()
/linux-6.6.21/mm/
Dtruncate.c178 folio_invalidate(folio, 0, folio_size(folio)); in truncate_cleanup_folio()
219 length = folio_size(folio); in truncate_inode_partial_folio()
226 if (length == folio_size(folio)) { in truncate_inode_partial_folio()
378 same_folio = lend < folio_pos(folio) + folio_size(folio); in truncate_inode_pages_range()
Dusercopy.c199 if (n > folio_size(folio) - offset) in check_heap_object()
Dsecretmem.c158 folio_zero_segment(folio, 0, folio_size(folio)); in secretmem_free_folio()
/linux-6.6.21/fs/nfs/
Dread.c57 folio_zero_segment(folio, 0, folio_size(folio)); in nfs_return_empty_folio()
293 size_t fsize = folio_size(folio); in nfs_read_add_folio()
339 task_io_account_read(folio_size(folio)); in nfs_read_folio()
/linux-6.6.21/fs/gfs2/
Daops.c106 i_size < folio_pos(folio) + folio_size(folio)) in gfs2_write_jdata_folio()
108 folio_size(folio)); in gfs2_write_jdata_folio()
137 gfs2_trans_add_databufs(ip, folio, 0, folio_size(folio)); in __gfs2_jdata_write_folio()
645 int partial_page = (offset || length < folio_size(folio)); in gfs2_invalidate_folio()
/linux-6.6.21/fs/afs/
Dwrite.c522 psize = folio_size(folio); in afs_extend_writeback()
625 (to == folio_size(folio) || new_content)) in afs_write_back_from_locked_folio()
750 start += folio_size(folio); in afs_writepages_region()
766 start += folio_size(folio); in afs_writepages_region()
950 priv = afs_folio_dirty(folio, 0, folio_size(folio)); in afs_page_mkwrite()
1012 t = folio_size(folio); in afs_launder_folio()
Dfile.c350 fsreq->len = folio_size(folio); in afs_symlink_read_folio()
422 if (offset == 0 && length == folio_size(folio)) in afs_invalidate_dirty()
/linux-6.6.21/arch/arm64/mm/
Dflush.c59 folio_size(folio)); in __sync_icache_dcache()
/linux-6.6.21/arch/nios2/mm/
Dcacheflush.c172 __flush_dcache(start, start + folio_size(folio)); in __flush_dcache_folio()
196 flush_icache_range(start, start + folio_size(folio)); in flush_dcache_folio()
/linux-6.6.21/fs/
Dmpage.c588 length = folio_size(folio); in __mpage_writepage()
599 folio_zero_segment(folio, length, folio_size(folio)); in __mpage_writepage()
622 wbc_account_cgroup_owner(wbc, &folio->page, folio_size(folio)); in __mpage_writepage()
Dbuffer.c933 offset = folio_size(folio); in folio_alloc_buffers()
1540 BUG_ON(offset >= folio_size(folio)); in folio_set_bh()
1600 BUG_ON(stop > folio_size(folio) || stop < length); in block_invalidate_folio()
1631 if (length == folio_size(folio)) in block_invalidate_folio()
2331 to = min_t(unsigned, folio_size(folio) - from, count); in block_is_partially_uptodate()
2333 if (from < blocksize && to > folio_size(folio) - blocksize) in block_is_partially_uptodate()
2632 end = folio_size(folio); in block_page_mkwrite()
2736 if (folio_pos(folio) + folio_size(folio) <= i_size) in block_write_full_page()
2754 folio_size(folio)); in block_write_full_page()
/linux-6.6.21/fs/ext4/
Dreadpage.c301 folio_size(folio)); in ext4_mpage_readpages()
334 folio_size(folio)); in ext4_mpage_readpages()
Dpage-io.c455 if (len < folio_size(folio)) in ext4_bio_write_folio()
456 folio_zero_segment(folio, len, folio_size(folio)); in ext4_bio_write_folio()
/linux-6.6.21/arch/microblaze/include/asm/
Dcacheflush.h81 flush_dcache_range(addr, addr + folio_size(folio)); in flush_dcache_folio()
/linux-6.6.21/arch/sh/mm/
Dcache.c154 folio_size(folio)); in __update_cache()
174 folio_size(folio)); in __flush_anon_page()
Dcache-sh7705.c187 __flush_purge_region(folio_address(folio), folio_size(folio)); in sh7705_flush_icache_folio()
/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/arch/arm/mm/
Dnommu.c185 __cpuc_flush_dcache_area(folio_address(folio), folio_size(folio)); in flush_dcache_folio()
/linux-6.6.21/fs/affs/
Dfile.c537 BUG_ON(to > folio_size(folio)); in affs_do_read_folio_ofs()
636 to = folio_size(folio); in affs_read_folio_ofs()
639 folio_zero_segment(folio, to, folio_size(folio)); in affs_read_folio_ofs()
680 err = affs_do_read_folio_ofs(folio, folio_size(folio), 1); in affs_write_begin_ofs()

123