/fs/squashfs/ |
D | file_direct.c | 116 int start_index, end_index, file_end, actor_pages, res; in squashfs_readpages_block() local 143 end_index = start_index | mask; in squashfs_readpages_block() 144 if (end_index > file_end) in squashfs_readpages_block() 145 end_index = file_end; in squashfs_readpages_block() 146 actor_pages = end_index - start_index + 1; in squashfs_readpages_block()
|
D | file.c | 384 int start_index = page->index & ~mask, end_index = start_index | mask; in squashfs_copy_cache() local 392 for (i = start_index; i <= end_index && bytes > 0; i++, in squashfs_copy_cache()
|
/fs/ntfs/ |
D | bitmap.c | 51 pgoff_t index, end_index; in __ntfs_bitmap_set_bits_in_run() local 71 end_index = (start_bit + cnt - 1) >> (3 + PAGE_CACHE_SHIFT); in __ntfs_bitmap_set_bits_in_run() 120 while (index < end_index) { in __ntfs_bitmap_set_bits_in_run()
|
D | mft.c | 53 unsigned long index, end_index; in map_mft_record_page() local 69 end_index = i_size >> PAGE_CACHE_SHIFT; in map_mft_record_page() 72 if (unlikely(index >= end_index)) { in map_mft_record_page() 73 if (index > end_index || (i_size & ~PAGE_CACHE_MASK) < ofs + in map_mft_record_page() 2097 pgoff_t index, end_index; in ntfs_mft_record_format() local 2110 end_index = i_size >> PAGE_CACHE_SHIFT; in ntfs_mft_record_format() 2111 if (unlikely(index >= end_index)) { in ntfs_mft_record_format() 2112 if (unlikely(index > end_index || ofs + vol->mft_record_size >= in ntfs_mft_record_format()
|
D | file.c | 115 pgoff_t index, end_index; in ntfs_attr_extend_initialized() local 226 end_index = (new_init_size + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; in ntfs_attr_extend_initialized() 283 } while (++index < end_index); in ntfs_attr_extend_initialized()
|
/fs/xfs/ |
D | xfs_aops.c | 927 pgoff_t end_index, last_index; in xfs_vm_writepage() local 960 end_index = offset >> PAGE_CACHE_SHIFT; in xfs_vm_writepage() 962 if (page->index >= end_index) { in xfs_vm_writepage() 971 if (page->index >= end_index + 1 || offset_into_page == 0) in xfs_vm_writepage() 1093 xfs_off_t end_index; in xfs_vm_writepage() local 1095 end_index = imap.br_startoff + imap.br_blockcount; in xfs_vm_writepage() 1098 end_index <<= inode->i_blkbits; in xfs_vm_writepage() 1101 end_index = (end_index - 1) >> PAGE_CACHE_SHIFT; in xfs_vm_writepage() 1104 if (end_index > last_index) in xfs_vm_writepage() 1105 end_index = last_index; in xfs_vm_writepage() [all …]
|
/fs/isofs/ |
D | compress.c | 308 pgoff_t index = page->index, end_index; in zisofs_readpage() local 310 end_index = (inode->i_size + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; in zisofs_readpage() 315 if (index >= end_index) { in zisofs_readpage() 326 end_index - (index & ~(zisofs_pages_per_cblock - 1))); in zisofs_readpage()
|
/fs/ubifs/ |
D | file.c | 617 pgoff_t end_index; in populate_page() local 624 end_index = (i_size - 1) >> PAGE_CACHE_SHIFT; in populate_page() 625 if (!i_size || page->index > end_index) { in populate_page() 675 if (end_index == page->index) { in populate_page() 716 pgoff_t offset = page1->index, end_index; in ubifs_do_bulk_read() local 776 end_index = ((isize - 1) >> PAGE_CACHE_SHIFT); in ubifs_do_bulk_read() 782 if (page_offset > end_index) in ubifs_do_bulk_read() 1003 pgoff_t end_index = i_size >> PAGE_CACHE_SHIFT; in ubifs_writepage() local 1012 if (page->index > end_index || (page->index == end_index && !len)) { in ubifs_writepage() 1022 if (page->index < end_index) { in ubifs_writepage()
|
/fs/logfs/ |
D | file.c | 121 pgoff_t end_index = i_size >> PAGE_CACHE_SHIFT; in logfs_writepage() local 141 if (bix < end_index) in logfs_writepage() 146 if (bix > end_index || offset == 0) { in logfs_writepage()
|
/fs/exofs/ |
D | inode.c | 386 pgoff_t end_index = i_size >> PAGE_CACHE_SHIFT; in readpage_strip() local 399 if (page->index < end_index) in readpage_strip() 401 else if (page->index == end_index) in readpage_strip() 421 pcol->read_4_write, page->index, end_index); in readpage_strip() 702 pgoff_t end_index = i_size >> PAGE_CACHE_SHIFT; in writepage_strip() local 712 if (page->index < end_index) in writepage_strip() 718 if (page->index > end_index || !len) { in writepage_strip() 889 pgoff_t end_index = i_size >> PAGE_CACHE_SHIFT; in exofs_write_begin() local 892 if (page->index < end_index) in exofs_write_begin() 894 else if (page->index == end_index) in exofs_write_begin()
|
/fs/btrfs/ |
D | compression.c | 236 unsigned long end_index = (start + ram_size - 1) >> PAGE_CACHE_SHIFT; in end_compressed_writeback() local 238 unsigned long nr_pages = end_index - index + 1; in end_compressed_writeback() 445 unsigned long end_index; in add_ra_bio_pages() local 467 end_index = (i_size_read(inode) - 1) >> PAGE_CACHE_SHIFT; in add_ra_bio_pages() 472 if (pg_index > end_index) in add_ra_bio_pages() 520 if (page->index == end_index) { in add_ra_bio_pages()
|
D | extent_io.c | 1292 unsigned long end_index = end >> PAGE_CACHE_SHIFT; in extent_range_clear_dirty_for_io() local 1295 while (index <= end_index) { in extent_range_clear_dirty_for_io() 1308 unsigned long end_index = end >> PAGE_CACHE_SHIFT; in extent_range_redirty_for_io() local 1311 while (index <= end_index) { in extent_range_redirty_for_io() 1328 unsigned long end_index = end >> PAGE_CACHE_SHIFT; in set_range_writeback() local 1331 while (index <= end_index) { in set_range_writeback() 1488 unsigned long end_index = end >> PAGE_CACHE_SHIFT; in __unlock_for_delalloc() local 1489 unsigned long nr_pages = end_index - index + 1; in __unlock_for_delalloc() 1492 if (index == locked_page->index && end_index == index) in __unlock_for_delalloc() 1517 unsigned long end_index = delalloc_end >> PAGE_CACHE_SHIFT; in lock_delalloc_pages() local [all …]
|
/fs/ |
D | mpage.c | 451 unsigned long end_index; in __mpage_writepage() local 553 end_index = i_size >> PAGE_CACHE_SHIFT; in __mpage_writepage() 554 if (page->index >= end_index) { in __mpage_writepage() 565 if (page->index > end_index || !offset) in __mpage_writepage()
|
D | splice.c | 316 pgoff_t index, end_index; in __generic_file_splice_read() local 461 end_index = (isize - 1) >> PAGE_CACHE_SHIFT; in __generic_file_splice_read() 462 if (unlikely(!isize || index > end_index)) in __generic_file_splice_read() 469 if (end_index == index) { in __generic_file_splice_read()
|
D | buffer.c | 2641 const pgoff_t end_index = i_size >> PAGE_CACHE_SHIFT; in nobh_writepage() local 2646 if (page->index < end_index) in nobh_writepage() 2651 if (page->index >= end_index+1 || !offset) { in nobh_writepage() 2846 const pgoff_t end_index = i_size >> PAGE_CACHE_SHIFT; in block_write_full_page_endio() local 2850 if (page->index < end_index) in block_write_full_page_endio() 2856 if (page->index >= end_index+1 || !offset) { in block_write_full_page_endio()
|
/fs/gfs2/ |
D | aops.c | 103 pgoff_t end_index = i_size >> PAGE_CACHE_SHIFT; in gfs2_writepage_common() local 112 if (page->index > end_index || (page->index == end_index && !offset)) { in gfs2_writepage_common() 265 pgoff_t end_index = i_size >> PAGE_CACHE_SHIFT; in gfs2_write_jdata_pagevec() local 301 if (page->index > end_index || (page->index == end_index && !offset)) { in gfs2_write_jdata_pagevec()
|
/fs/nfs/ |
D | internal.h | 536 pgoff_t end_index = (i_size - 1) >> PAGE_CACHE_SHIFT; in nfs_page_length() local 537 if (page_index < end_index) in nfs_page_length() 539 if (page_index == end_index) in nfs_page_length()
|
D | write.c | 190 pgoff_t end_index; in nfs_grow_file() local 194 end_index = (i_size - 1) >> PAGE_CACHE_SHIFT; in nfs_grow_file() 195 if (i_size > 0 && page_file_index(page) < end_index) in nfs_grow_file()
|
/fs/hugetlbfs/ |
D | inode.c | 237 unsigned long end_index; in hugetlbfs_read() local 255 end_index = (isize - 1) >> huge_page_shift(h); in hugetlbfs_read() 256 if (index >= end_index) { in hugetlbfs_read() 257 if (index > end_index) in hugetlbfs_read()
|
/fs/f2fs/ |
D | data.c | 513 const pgoff_t end_index = ((unsigned long long) i_size) in f2fs_write_data_page() local 519 if (page->index < end_index) in f2fs_write_data_page() 527 if ((page->index >= end_index + 1) || !offset) { in f2fs_write_data_page()
|
/fs/ocfs2/ |
D | aops.c | 1130 unsigned long start, target_index, end_index, index; in ocfs2_grab_pages_for_write() local 1153 end_index = ((last_byte - 1) >> PAGE_CACHE_SHIFT) + 1; in ocfs2_grab_pages_for_write() 1154 if ((start + wc->w_num_pages) > end_index) in ocfs2_grab_pages_for_write() 1155 wc->w_num_pages = end_index - start; in ocfs2_grab_pages_for_write()
|
/fs/hostfs/ |
D | hostfs_kern.c | 407 int end_index = inode->i_size >> PAGE_CACHE_SHIFT; in hostfs_writepage() local 410 if (page->index >= end_index) in hostfs_writepage()
|
/fs/reiserfs/ |
D | inode.c | 2350 unsigned long end_index = inode->i_size >> PAGE_CACHE_SHIFT; in reiserfs_write_full_page() local 2384 if (page->index >= end_index) { in reiserfs_write_full_page() 2389 if (page->index >= end_index + 1 || !last_offset) { in reiserfs_write_full_page()
|