/fs/squashfs/ |
D | file_direct.c | 117 int start_index, end_index, file_end, actor_pages, res; in squashfs_readpages_block() local 144 end_index = start_index | mask; in squashfs_readpages_block() 145 if (end_index > file_end) in squashfs_readpages_block() 146 end_index = file_end; in squashfs_readpages_block() 147 actor_pages = end_index - start_index + 1; in squashfs_readpages_block()
|
D | file.c | 389 int start_index = page->index & ~mask, end_index = start_index | mask; in squashfs_copy_cache() local 397 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 | 113 pgoff_t index, end_index; in ntfs_attr_extend_initialized() local 224 end_index = (new_init_size + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; in ntfs_attr_extend_initialized() 281 } while (++index < end_index); in ntfs_attr_extend_initialized()
|
/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 | 618 pgoff_t end_index; in populate_page() local 625 end_index = (i_size - 1) >> PAGE_CACHE_SHIFT; in populate_page() 626 if (!i_size || page->index > end_index) { in populate_page() 676 if (end_index == page->index) { in populate_page() 717 pgoff_t offset = page1->index, end_index; in ubifs_do_bulk_read() local 777 end_index = ((isize - 1) >> PAGE_CACHE_SHIFT); in ubifs_do_bulk_read() 783 if (page_offset > end_index) in ubifs_do_bulk_read() 1006 pgoff_t end_index = i_size >> PAGE_CACHE_SHIFT; in ubifs_writepage() local 1015 if (page->index > end_index || (page->index == end_index && !len)) { in ubifs_writepage() 1025 if (page->index < end_index) { in ubifs_writepage()
|
/fs/xfs/ |
D | xfs_aops.c | 954 pgoff_t end_index, last_index; in xfs_vm_writepage() local 987 end_index = offset >> PAGE_CACHE_SHIFT; in xfs_vm_writepage() 1001 if (page->index < end_index) in xfs_vm_writepage() 1034 if (page->index > end_index || in xfs_vm_writepage() 1035 (page->index == end_index && offset_into_page == 0)) in xfs_vm_writepage() 1157 xfs_off_t end_index; in xfs_vm_writepage() local 1159 end_index = imap.br_startoff + imap.br_blockcount; in xfs_vm_writepage() 1162 end_index <<= inode->i_blkbits; in xfs_vm_writepage() 1165 end_index = (end_index - 1) >> PAGE_CACHE_SHIFT; in xfs_vm_writepage() 1168 if (end_index > last_index) in xfs_vm_writepage() [all …]
|
/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() 699 pgoff_t end_index = i_size >> PAGE_CACHE_SHIFT; in writepage_strip() local 709 if (page->index < end_index) in writepage_strip() 715 if (page->index > end_index || !len) { in writepage_strip() 886 pgoff_t end_index = i_size >> PAGE_CACHE_SHIFT; in exofs_write_begin() local 889 if (page->index < end_index) in exofs_write_begin() 891 else if (page->index == end_index) in exofs_write_begin()
|
/fs/btrfs/ |
D | compression.c | 228 unsigned long end_index = (cb->start + cb->len - 1) >> PAGE_CACHE_SHIFT; in end_compressed_writeback() local 230 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() 519 if (page->index == end_index) { in add_ra_bio_pages()
|
D | extent_io.c | 1457 unsigned long end_index = end >> PAGE_CACHE_SHIFT; in extent_range_clear_dirty_for_io() local 1460 while (index <= end_index) { in extent_range_clear_dirty_for_io() 1473 unsigned long end_index = end >> PAGE_CACHE_SHIFT; in extent_range_redirty_for_io() local 1476 while (index <= end_index) { in extent_range_redirty_for_io() 1493 unsigned long end_index = end >> PAGE_CACHE_SHIFT; in set_range_writeback() local 1496 while (index <= end_index) { in set_range_writeback() 1653 unsigned long end_index = end >> PAGE_CACHE_SHIFT; in __unlock_for_delalloc() local 1654 unsigned long nr_pages = end_index - index + 1; in __unlock_for_delalloc() 1657 if (index == locked_page->index && end_index == index) in __unlock_for_delalloc() 1682 unsigned long end_index = delalloc_end >> PAGE_CACHE_SHIFT; in lock_delalloc_pages() local [all …]
|
/fs/ |
D | mpage.c | 509 unsigned long end_index; in __mpage_writepage() local 612 end_index = i_size >> PAGE_CACHE_SHIFT; in __mpage_writepage() 613 if (page->index >= end_index) { in __mpage_writepage() 624 if (page->index > end_index || !offset) in __mpage_writepage()
|
D | splice.c | 317 pgoff_t index, end_index; in __generic_file_splice_read() local 462 end_index = (isize - 1) >> PAGE_CACHE_SHIFT; in __generic_file_splice_read() 463 if (unlikely(!isize || index > end_index)) in __generic_file_splice_read() 470 if (end_index == index) { in __generic_file_splice_read()
|
D | buffer.c | 2689 const pgoff_t end_index = i_size >> PAGE_CACHE_SHIFT; in nobh_writepage() local 2694 if (page->index < end_index) in nobh_writepage() 2699 if (page->index >= end_index+1 || !offset) { in nobh_writepage() 2893 const pgoff_t end_index = i_size >> PAGE_CACHE_SHIFT; in block_write_full_page() local 2897 if (page->index < end_index) in block_write_full_page() 2903 if (page->index >= end_index+1 || !offset) { in block_write_full_page()
|
/fs/btrfs/tests/ |
D | extent-io-tests.c | 34 unsigned long end_index = end >> PAGE_CACHE_SHIFT; in process_page_range() local 35 unsigned long nr_pages = end_index - index + 1; in process_page_range()
|
/fs/nfs/ |
D | internal.h | 646 pgoff_t end_index = (i_size - 1) >> PAGE_CACHE_SHIFT; in nfs_page_length() local 647 if (page_index < end_index) in nfs_page_length() 649 if (page_index == end_index) in nfs_page_length()
|
D | write.c | 147 pgoff_t end_index; in nfs_grow_file() local 151 end_index = (i_size - 1) >> PAGE_CACHE_SHIFT; in nfs_grow_file() 152 if (i_size > 0 && page_file_index(page) < end_index) in nfs_grow_file()
|
/fs/hugetlbfs/ |
D | inode.c | 274 unsigned long end_index; in hugetlbfs_read_iter() local 287 end_index = (isize - 1) >> huge_page_shift(h); in hugetlbfs_read_iter() 288 if (index > end_index) in hugetlbfs_read_iter() 290 if (index == end_index) { in hugetlbfs_read_iter()
|
/fs/gfs2/ |
D | aops.c | 104 pgoff_t end_index = i_size >> PAGE_CACHE_SHIFT; in gfs2_writepage_common() local 113 if (page->index > end_index || (page->index == end_index && !offset)) { in gfs2_writepage_common()
|
/fs/ocfs2/ |
D | aops.c | 1504 unsigned long start, target_index, end_index, index; in ocfs2_grab_pages_for_write() local 1527 end_index = ((last_byte - 1) >> PAGE_CACHE_SHIFT) + 1; in ocfs2_grab_pages_for_write() 1528 if ((start + wc->w_num_pages) > end_index) in ocfs2_grab_pages_for_write() 1529 wc->w_num_pages = end_index - start; in ocfs2_grab_pages_for_write()
|
/fs/hostfs/ |
D | hostfs_kern.c | 414 int end_index = inode->i_size >> PAGE_CACHE_SHIFT; in hostfs_writepage() local 417 if (page->index >= end_index) in hostfs_writepage()
|
/fs/f2fs/ |
D | data.c | 1782 const pgoff_t end_index = ((unsigned long long) i_size) in __write_data_page() local 1814 if (page->index < end_index) in __write_data_page() 1822 if ((page->index >= end_index + 1) || !offset) in __write_data_page()
|
/fs/reiserfs/ |
D | inode.c | 2524 unsigned long end_index = inode->i_size >> PAGE_CACHE_SHIFT; in reiserfs_write_full_page() local 2560 if (page->index >= end_index) { in reiserfs_write_full_page() 2565 if (page->index >= end_index + 1 || !last_offset) { in reiserfs_write_full_page()
|