Home
last modified time | relevance | path

Searched refs:last_byte (Results 1 – 8 of 8) sorted by relevance

/fs/ufs/
Ddir.c216 unsigned last_byte = inode->i_size; in ufs_last_byte() local
218 last_byte -= page_nr << PAGE_CACHE_SHIFT; in ufs_last_byte()
219 if (last_byte > PAGE_CACHE_SIZE) in ufs_last_byte()
220 last_byte = PAGE_CACHE_SIZE; in ufs_last_byte()
221 return last_byte; in ufs_last_byte()
/fs/ext2/
Ddir.c76 unsigned last_byte = inode->i_size; in ext2_last_byte() local
78 last_byte -= page_nr << PAGE_CACHE_SHIFT; in ext2_last_byte()
79 if (last_byte > PAGE_CACHE_SIZE) in ext2_last_byte()
80 last_byte = PAGE_CACHE_SIZE; in ext2_last_byte()
81 return last_byte; in ext2_last_byte()
/fs/minix/
Ddir.c41 unsigned last_byte = PAGE_CACHE_SIZE; in minix_last_byte() local
44 last_byte = inode->i_size & (PAGE_CACHE_SIZE - 1); in minix_last_byte()
45 return last_byte; in minix_last_byte()
/fs/xfs/
Dxfs_inode.c1246 xfs_fsize_t last_byte; in xfs_file_last_byte() local
1272 last_byte = XFS_FSB_TO_B(mp, last_block); in xfs_file_last_byte()
1273 if (last_byte < 0) { in xfs_file_last_byte()
1276 last_byte += (1 << mp->m_writeio_log); in xfs_file_last_byte()
1277 if (last_byte < 0) { in xfs_file_last_byte()
1280 return last_byte; in xfs_file_last_byte()
1356 xfs_fsize_t last_byte; in xfs_itruncate_start() local
1400 last_byte = xfs_file_last_byte(ip); in xfs_itruncate_start()
1402 last_byte); in xfs_itruncate_start()
1403 if (last_byte > toss_start) { in xfs_itruncate_start()
/fs/btrfs/
Dvolumes.c602 u64 last_byte = 0; in find_free_dev_extent() local
656 *start = last_byte > search_start ? in find_free_dev_extent()
657 last_byte : search_start; in find_free_dev_extent()
672 if (key.offset >= search_start && key.offset > last_byte && in find_free_dev_extent()
674 if (last_byte < search_start) in find_free_dev_extent()
675 last_byte = search_start; in find_free_dev_extent()
676 hole_size = key.offset - last_byte; in find_free_dev_extent()
677 if (key.offset > last_byte && in find_free_dev_extent()
679 *start = last_byte; in find_free_dev_extent()
688 last_byte = key.offset + btrfs_dev_extent_length(l, dev_extent); in find_free_dev_extent()
Dinode.c2779 u64 last_byte; in btrfs_cont_expand() local
2813 last_byte = min(extent_map_end(em), block_end); in btrfs_cont_expand()
2814 last_byte = (last_byte + mask) & ~mask; in btrfs_cont_expand()
2817 hole_size = last_byte - cur_offset; in btrfs_cont_expand()
2829 last_byte - 1, 0); in btrfs_cont_expand()
2832 cur_offset = last_byte; in btrfs_cont_expand()
4869 u64 last_byte; in btrfs_fallocate() local
4913 last_byte = min(extent_map_end(em), alloc_end); in btrfs_fallocate()
4914 last_byte = (last_byte + mask) & ~mask; in btrfs_fallocate()
4917 last_byte, alloc_hint, mode); in btrfs_fallocate()
[all …]
Dextent_io.c1951 u64 last_byte = i_size_read(inode); in __extent_read_full_page() local
1970 if (page->index == last_byte >> PAGE_CACHE_SHIFT) { in __extent_read_full_page()
1972 size_t zero_offset = last_byte & (PAGE_CACHE_SIZE - 1); in __extent_read_full_page()
1983 if (cur >= last_byte) { in __extent_read_full_page()
2066 unsigned long pnr = (last_byte >> PAGE_CACHE_SHIFT) + 1; in __extent_read_full_page()
2122 u64 last_byte = i_size_read(inode); in __extent_writepage() local
2213 if (last_byte <= start) { in __extent_writepage()
2227 if (cur >= last_byte) { in __extent_writepage()
Dextent-tree.c4870 u64 last_byte; in get_new_locations() local
4888 last_byte = extent_key->objectid + extent_key->offset; in get_new_locations()
4950 if (cur_pos + offset >= last_byte) in get_new_locations()
4960 BUG_ON(cur_pos + offset > last_byte); in get_new_locations()
4961 if (cur_pos + offset < last_byte) { in get_new_locations()