Searched refs:last_byte (Results 1 – 10 of 10) sorted by relevance
42 unsigned long last_byte = inode->i_size; in last_entry() local43 last_byte -= page_nr << PAGE_CACHE_SHIFT; in last_entry()44 if (last_byte > PAGE_CACHE_SIZE) in last_entry()45 last_byte = PAGE_CACHE_SIZE; in last_entry()46 return last_byte / QNX6_DIR_ENTRY_SIZE; in last_entry()
75 unsigned last_byte = inode->i_size; in nilfs_last_byte() local77 last_byte -= page_nr << PAGE_CACHE_SHIFT; in nilfs_last_byte()78 if (last_byte > PAGE_CACHE_SIZE) in nilfs_last_byte()79 last_byte = PAGE_CACHE_SIZE; in nilfs_last_byte()80 return last_byte; in nilfs_last_byte()
55 loff_t last_byte = inode->i_size; in exofs_last_byte() local57 last_byte -= page_nr << PAGE_CACHE_SHIFT; in exofs_last_byte()58 if (last_byte > PAGE_CACHE_SIZE) in exofs_last_byte()59 last_byte = PAGE_CACHE_SIZE; in exofs_last_byte()60 return last_byte; in exofs_last_byte()
215 unsigned last_byte = inode->i_size; in ufs_last_byte() local217 last_byte -= page_nr << PAGE_CACHE_SHIFT; in ufs_last_byte()218 if (last_byte > PAGE_CACHE_SIZE) in ufs_last_byte()219 last_byte = PAGE_CACHE_SIZE; in ufs_last_byte()220 return last_byte; in ufs_last_byte()
85 unsigned last_byte = inode->i_size; in ext2_last_byte() local87 last_byte -= page_nr << PAGE_CACHE_SHIFT; in ext2_last_byte()88 if (last_byte > PAGE_CACHE_SIZE) in ext2_last_byte()89 last_byte = PAGE_CACHE_SIZE; in ext2_last_byte()90 return last_byte; in ext2_last_byte()
41 unsigned last_byte = PAGE_CACHE_SIZE; in minix_last_byte() local44 last_byte = inode->i_size & (PAGE_CACHE_SIZE - 1); in minix_last_byte()45 return last_byte; in minix_last_byte()
2146 u64 last_byte; in btrfs_fallocate() local2240 last_byte = min(extent_map_end(em), alloc_end); in btrfs_fallocate()2242 last_byte = ALIGN(last_byte, blocksize); in btrfs_fallocate()2248 last_byte - cur_offset, in btrfs_fallocate()2270 cur_offset = last_byte; in btrfs_fallocate()
2720 u64 last_byte = i_size_read(inode); in __extent_read_full_page() local2755 if (page->index == last_byte >> PAGE_CACHE_SHIFT) { in __extent_read_full_page()2757 size_t zero_offset = last_byte & (PAGE_CACHE_SIZE - 1); in __extent_read_full_page()2768 unsigned long pnr = (last_byte >> PAGE_CACHE_SHIFT) + 1; in __extent_read_full_page()2770 if (cur >= last_byte) { in __extent_read_full_page()2925 u64 last_byte = i_size_read(inode); in __extent_writepage() local3068 if (last_byte <= start) { in __extent_writepage()3078 if (cur >= last_byte) { in __extent_writepage()
4393 u64 last_byte; in btrfs_cont_expand() local4424 last_byte = min(extent_map_end(em), block_end); in btrfs_cont_expand()4425 last_byte = ALIGN(last_byte , root->sectorsize); in btrfs_cont_expand()4428 hole_size = last_byte - cur_offset; in btrfs_cont_expand()4492 cur_offset = last_byte; in btrfs_cont_expand()
1132 loff_t last_byte; in ocfs2_grab_pages_for_write() local1151 last_byte = max(user_pos + user_len, i_size_read(inode)); in ocfs2_grab_pages_for_write()1152 BUG_ON(last_byte < 1); in ocfs2_grab_pages_for_write()1153 end_index = ((last_byte - 1) >> PAGE_CACHE_SHIFT) + 1; in ocfs2_grab_pages_for_write()