Home
last modified time | relevance | path

Searched refs:end_index (Results 1 – 23 of 23) sorted by relevance

/fs/squashfs/
Dfile_direct.c35 int end_index = start_index | mask; in squashfs_readpage_block() local
41 if (end_index > file_end) in squashfs_readpage_block()
42 end_index = file_end; in squashfs_readpage_block()
44 pages = end_index - start_index + 1; in squashfs_readpage_block()
Dfile.c388 int start_index = page->index & ~mask, end_index = start_index | mask; in squashfs_copy_cache() local
396 for (i = start_index; i <= end_index && bytes > 0; i++, in squashfs_copy_cache()
/fs/ntfs/
Dbitmap.c37 pgoff_t index, end_index; in __ntfs_bitmap_set_bits_in_run() local
57 end_index = (start_bit + cnt - 1) >> (3 + PAGE_SHIFT); in __ntfs_bitmap_set_bits_in_run()
106 while (index < end_index) { in __ntfs_bitmap_set_bits_in_run()
Dmft.c42 unsigned long index, end_index; in map_mft_record_page() local
58 end_index = i_size >> PAGE_SHIFT; in map_mft_record_page()
61 if (unlikely(index >= end_index)) { in map_mft_record_page()
62 if (index > end_index || (i_size & ~PAGE_MASK) < ofs + in map_mft_record_page()
2092 pgoff_t index, end_index; in ntfs_mft_record_format() local
2105 end_index = i_size >> PAGE_SHIFT; in ntfs_mft_record_format()
2106 if (unlikely(index >= end_index)) { in ntfs_mft_record_format()
2107 if (unlikely(index > end_index || ofs + vol->mft_record_size >= in ntfs_mft_record_format()
Dfile.c99 pgoff_t index, end_index; in ntfs_attr_extend_initialized() local
210 end_index = (new_init_size + PAGE_SIZE - 1) >> PAGE_SHIFT; in ntfs_attr_extend_initialized()
267 } while (++index < end_index); in ntfs_attr_extend_initialized()
/fs/isofs/
Dcompress.c310 pgoff_t index = page->index, end_index; in zisofs_readpage() local
312 end_index = (inode->i_size + PAGE_SIZE - 1) >> PAGE_SHIFT; in zisofs_readpage()
317 if (index >= end_index) { in zisofs_readpage()
328 end_index - (index & ~(zisofs_pages_per_cblock - 1))); in zisofs_readpage()
/fs/ubifs/
Dfile.c614 pgoff_t end_index; in populate_page() local
621 end_index = (i_size - 1) >> PAGE_SHIFT; in populate_page()
622 if (!i_size || page->index > end_index) { in populate_page()
679 if (end_index == page->index) { in populate_page()
720 pgoff_t offset = page1->index, end_index; in ubifs_do_bulk_read() local
781 end_index = ((isize - 1) >> PAGE_SHIFT); in ubifs_do_bulk_read()
787 if (page_offset > end_index) in ubifs_do_bulk_read()
1009 pgoff_t end_index = i_size >> PAGE_SHIFT; in ubifs_writepage() local
1018 if (page->index > end_index || (page->index == end_index && !len)) { in ubifs_writepage()
1028 if (page->index < end_index) { in ubifs_writepage()
/fs/gfs2/
Daops.c95 pgoff_t end_index = i_size >> PAGE_SHIFT; in gfs2_writepage() local
104 if (page->index > end_index || (page->index == end_index && !offset)) { in gfs2_writepage()
126 const pgoff_t end_index = i_size >> PAGE_SHIFT; in gfs2_write_full_page() local
137 if (page->index == end_index && offset) in gfs2_write_full_page()
/fs/
Dmpage.c540 unsigned long end_index; in __mpage_writepage() local
642 end_index = i_size >> PAGE_SHIFT; in __mpage_writepage()
643 if (page->index >= end_index) { in __mpage_writepage()
654 if (page->index > end_index || !offset) in __mpage_writepage()
Ddax.c944 pgoff_t end_index = wbc->range_end >> PAGE_SHIFT; in dax_writeback_mapping_range() local
960 trace_dax_writeback_range(inode, xas.xa_index, end_index); in dax_writeback_mapping_range()
962 tag_pages_for_writeback(mapping, xas.xa_index, end_index); in dax_writeback_mapping_range()
965 xas_for_each_marked(&xas, entry, end_index, PAGECACHE_TAG_TOWRITE) { in dax_writeback_mapping_range()
981 trace_dax_writeback_range_done(inode, xas.xa_index, end_index); in dax_writeback_mapping_range()
Dbuffer.c2721 const pgoff_t end_index = i_size >> PAGE_SHIFT; in nobh_writepage() local
2726 if (page->index < end_index) in nobh_writepage()
2731 if (page->index >= end_index+1 || !offset) { in nobh_writepage()
2925 const pgoff_t end_index = i_size >> PAGE_SHIFT; in block_write_full_page() local
2929 if (page->index < end_index) in block_write_full_page()
2935 if (page->index >= end_index+1 || !offset) { in block_write_full_page()
/fs/xfs/
Dxfs_aops.c988 pgoff_t end_index; in xfs_do_writepage() local
1027 end_index = offset >> PAGE_SHIFT; in xfs_do_writepage()
1028 if (page->index < end_index) in xfs_do_writepage()
1061 if (page->index > end_index || in xfs_do_writepage()
1062 (page->index == end_index && offset_into_page == 0)) in xfs_do_writepage()
/fs/btrfs/
Dcompression.c215 unsigned long end_index = (cb->start + cb->len - 1) >> PAGE_SHIFT; in end_compressed_writeback() local
217 unsigned long nr_pages = end_index - index + 1; in end_compressed_writeback()
432 unsigned long end_index; in add_ra_bio_pages() local
453 end_index = (i_size_read(inode) - 1) >> PAGE_SHIFT; in add_ra_bio_pages()
458 if (pg_index > end_index) in add_ra_bio_pages()
503 if (page->index == end_index) { in add_ra_bio_pages()
Dextent_io.c1457 unsigned long end_index = end >> PAGE_SHIFT; in extent_range_clear_dirty_for_io() local
1460 while (index <= end_index) { in extent_range_clear_dirty_for_io()
1472 unsigned long end_index = end >> PAGE_SHIFT; in extent_range_redirty_for_io() local
1475 while (index <= end_index) { in extent_range_redirty_for_io()
1734 pgoff_t start_index, pgoff_t end_index,
1742 unsigned long end_index = end >> PAGE_SHIFT; in __unlock_for_delalloc() local
1745 if (index == locked_page->index && end_index == index) in __unlock_for_delalloc()
1748 __process_pages_contig(inode->i_mapping, locked_page, index, end_index, in __unlock_for_delalloc()
1759 unsigned long end_index = delalloc_end >> PAGE_SHIFT; in lock_delalloc_pages() local
1763 if (index == locked_page->index && index == end_index) in lock_delalloc_pages()
[all …]
Dinode.c112 unsigned long end_index = (offset + bytes - 1) >> PAGE_SHIFT; in btrfs_cleanup_ordered_extents() local
118 while (index <= end_index) { in btrfs_cleanup_ordered_extents()
10623 unsigned long end_index = end >> PAGE_SHIFT; in btrfs_set_range_writeback() local
10626 while (index <= end_index) { in btrfs_set_range_writeback()
/fs/nfs/
Dinternal.h679 pgoff_t end_index = (i_size - 1) >> PAGE_SHIFT; in nfs_page_length() local
680 if (index < end_index) in nfs_page_length()
682 if (index == end_index) in nfs_page_length()
Dwrite.c226 pgoff_t end_index; in nfs_grow_file() local
230 end_index = (i_size - 1) >> PAGE_SHIFT; in nfs_grow_file()
231 if (i_size > 0 && page_index(page) < end_index) in nfs_grow_file()
/fs/ocfs2/
Daops.c1044 unsigned long start, target_index, end_index, index; in ocfs2_grab_pages_for_write() local
1067 end_index = ((last_byte - 1) >> PAGE_SHIFT) + 1; in ocfs2_grab_pages_for_write()
1068 if ((start + wc->w_num_pages) > end_index) in ocfs2_grab_pages_for_write()
1069 wc->w_num_pages = end_index - start; in ocfs2_grab_pages_for_write()
1074 end_index = (user_pos + user_len - 1) >> PAGE_SHIFT; in ocfs2_grab_pages_for_write()
1079 if (index >= target_index && index <= end_index && in ocfs2_grab_pages_for_write()
1099 } else if (index >= target_index && index <= end_index && in ocfs2_grab_pages_for_write()
/fs/btrfs/tests/
Dextent-io-tests.c25 unsigned long end_index = end >> PAGE_SHIFT; in process_page_range() local
26 unsigned long nr_pages = end_index - index + 1; in process_page_range()
/fs/hugetlbfs/
Dinode.c278 unsigned long end_index; in hugetlbfs_read_iter() local
291 end_index = (isize - 1) >> huge_page_shift(h); in hugetlbfs_read_iter()
292 if (index > end_index) in hugetlbfs_read_iter()
294 if (index == end_index) { in hugetlbfs_read_iter()
/fs/hostfs/
Dhostfs_kern.c408 int end_index = inode->i_size >> PAGE_SHIFT; in hostfs_writepage() local
411 if (page->index >= end_index) in hostfs_writepage()
/fs/reiserfs/
Dinode.c2531 unsigned long end_index = inode->i_size >> PAGE_SHIFT; in reiserfs_write_full_page() local
2567 if (page->index >= end_index) { in reiserfs_write_full_page()
2572 if (page->index >= end_index + 1 || !last_offset) { in reiserfs_write_full_page()
/fs/f2fs/
Ddata.c2258 const pgoff_t end_index = ((unsigned long long) i_size) in __write_data_page() local
2298 if (page->index < end_index || f2fs_verity_in_progress(inode)) in __write_data_page()
2306 if ((page->index >= end_index + 1) || !offset) in __write_data_page()