Searched refs:last_byte (Results 1 – 10 of 10) sorted by relevance
38 unsigned long last_byte = inode->i_size; in last_entry() local39 last_byte -= page_nr << PAGE_SHIFT; in last_entry()40 if (last_byte > PAGE_SIZE) in last_entry()41 last_byte = PAGE_SIZE; in last_entry()42 return last_byte / QNX6_DIR_ENTRY_SIZE; in last_entry()
79 unsigned int last_byte = inode->i_size; in nilfs_last_byte() local81 last_byte -= page_nr << PAGE_SHIFT; in nilfs_last_byte()82 if (last_byte > PAGE_SIZE) in nilfs_last_byte()83 last_byte = PAGE_SIZE; in nilfs_last_byte()84 return last_byte; in nilfs_last_byte()
82 unsigned last_byte = inode->i_size; in ext2_last_byte() local84 last_byte -= page_nr << PAGE_SHIFT; in ext2_last_byte()85 if (last_byte > PAGE_SIZE) in ext2_last_byte()86 last_byte = PAGE_SIZE; in ext2_last_byte()87 return last_byte; in ext2_last_byte()
50 loff_t last_byte = inode->i_size; in exofs_last_byte() local52 last_byte -= page_nr << PAGE_SHIFT; in exofs_last_byte()53 if (last_byte > PAGE_SIZE) in exofs_last_byte()54 last_byte = PAGE_SIZE; in exofs_last_byte()55 return last_byte; in exofs_last_byte()
214 unsigned last_byte = inode->i_size; in ufs_last_byte() local216 last_byte -= page_nr << PAGE_SHIFT; in ufs_last_byte()217 if (last_byte > PAGE_SIZE) in ufs_last_byte()218 last_byte = PAGE_SIZE; in ufs_last_byte()219 return last_byte; in ufs_last_byte()
42 unsigned last_byte = PAGE_SIZE; in minix_last_byte() local45 last_byte = inode->i_size & (PAGE_SIZE - 1); in minix_last_byte()46 return last_byte; in minix_last_byte()
3056 u64 last_byte; in btrfs_fallocate() local3178 last_byte = min(extent_map_end(em), alloc_end); in btrfs_fallocate()3180 last_byte = ALIGN(last_byte, blocksize); in btrfs_fallocate()3185 last_byte - cur_offset); in btrfs_fallocate()3191 cur_offset, last_byte - cur_offset); in btrfs_fallocate()3193 cur_offset = last_byte; in btrfs_fallocate()3204 cur_offset, last_byte - cur_offset); in btrfs_fallocate()3207 cur_offset = last_byte; in btrfs_fallocate()
2916 u64 last_byte = i_size_read(inode); in __do_readpage() local2939 if (page->index == last_byte >> PAGE_SHIFT) { in __do_readpage()2941 size_t zero_offset = last_byte & (PAGE_SIZE - 1); in __do_readpage()2955 if (cur >= last_byte) { in __do_readpage()
5123 u64 last_byte; in btrfs_cont_expand() local5164 last_byte = min(extent_map_end(em), block_end); in btrfs_cont_expand()5165 last_byte = ALIGN(last_byte, fs_info->sectorsize); in btrfs_cont_expand()5168 hole_size = last_byte - cur_offset; in btrfs_cont_expand()5210 cur_offset = last_byte; in btrfs_cont_expand()
1058 loff_t last_byte; in ocfs2_grab_pages_for_write() local1077 last_byte = max(user_pos + user_len, i_size_read(inode)); in ocfs2_grab_pages_for_write()1078 BUG_ON(last_byte < 1); in ocfs2_grab_pages_for_write()1079 end_index = ((last_byte - 1) >> PAGE_SHIFT) + 1; in ocfs2_grab_pages_for_write()