Home
last modified time | relevance | path

Searched refs:last_block (Results 1 – 21 of 21) sorted by relevance

/fs/fat/
Dcache.c302 sector_t last_block; in fat_bmap() local
315 last_block = (i_size_read(inode) + (blocksize - 1)) >> blocksize_bits; in fat_bmap()
316 if (sector >= last_block) { in fat_bmap()
324 last_block = (MSDOS_I(inode)->mmu_private + (blocksize - 1)) in fat_bmap()
326 if (sector >= last_block) in fat_bmap()
338 if (*mapped_blocks > last_block - sector) in fat_bmap()
339 *mapped_blocks = last_block - sector; in fat_bmap()
/fs/
Dmpage.c178 sector_t last_block; in do_mpage_readpage() local
193 last_block = block_in_file + nr_pages * blocks_per_page; in do_mpage_readpage()
195 if (last_block > last_block_in_file) in do_mpage_readpage()
196 last_block = last_block_in_file; in do_mpage_readpage()
231 if (block_in_file < last_block) { in do_mpage_readpage()
232 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage()
452 sector_t last_block; in __mpage_writepage() local
521 last_block = (i_size - 1) >> blkbits; in __mpage_writepage()
543 if (block_in_file == last_block) in __mpage_writepage()
Dbuffer.c1713 sector_t last_block; in __block_write_full_page() local
1720 last_block = (i_size_read(inode) - 1) >> inode->i_blkbits; in __block_write_full_page()
1746 if (block > last_block) { in __block_write_full_page()
/fs/ext4/
Dmigrate.c24 ext4_lblk_t first_block, last_block; member
40 newext.ee_len = cpu_to_le16(lb->last_block - lb->first_block + 1); in finish_range()
57 lb->last_block - lb->first_block + 1, path); in finish_range()
98 (lb->last_block+1 == blk_num)) { in update_extent_range()
100 lb->last_block = blk_num; in update_extent_range()
108 lb->first_block = lb->last_block = blk_num; in update_extent_range()
Dextents.c153 ext4_fsblk_t last_block; in ext4_ext_find_goal() local
175 last_block = ext4_blocks_count(EXT4_SB(inode->i_sb)->s_es) - 1; in ext4_ext_find_goal()
177 if (bg_start + EXT4_BLOCKS_PER_GROUP(inode->i_sb) <= last_block) in ext4_ext_find_goal()
181 colour = (current->pid % 16) * ((last_block - bg_start) / 16); in ext4_ext_find_goal()
2911 ext4_lblk_t last_block; in ext4_ext_truncate() local
2944 last_block = (inode->i_size + sb->s_blocksize - 1) in ext4_ext_truncate()
2946 err = ext4_ext_remove_space(inode, last_block); in ext4_ext_truncate()
Dsuper.c1666 ext4_fsblk_t last_block; in ext4_check_descriptors() local
1682 last_block = ext4_blocks_count(sbi->s_es) - 1; in ext4_check_descriptors()
1684 last_block = first_block + in ext4_check_descriptors()
1688 if (block_bitmap < first_block || block_bitmap > last_block) { in ext4_check_descriptors()
1695 if (inode_bitmap < first_block || inode_bitmap > last_block) { in ext4_check_descriptors()
1703 inode_table + sbi->s_itb_per_group - 1 > last_block) { in ext4_check_descriptors()
Dinode.c460 ext4_fsblk_t last_block; in ext4_find_near() local
478 last_block = ext4_blocks_count(EXT4_SB(inode->i_sb)->s_es) - 1; in ext4_find_near()
480 if (bg_start + EXT4_BLOCKS_PER_GROUP(inode->i_sb) <= last_block) in ext4_find_near()
484 colour = (current->pid % 16) * ((last_block - bg_start) / 16); in ext4_find_near()
3835 ext4_lblk_t last_block; in ext4_truncate() local
3850 last_block = (inode->i_size + blocksize-1) in ext4_truncate()
3857 n = ext4_block_to_path(inode, last_block, offsets, NULL); in ext4_truncate()
/fs/udf/
Dtruncate.c35 int last_block = (elen + inode->i_sb->s_blocksize - 1) >> in extent_trunc() local
43 last_block); in extent_trunc()
52 if (last_block - first_block > 0) { in extent_trunc()
59 last_block - first_block); in extent_trunc()
Dinode.c474 static sector_t last_block; in inode_getblk() local
563 last_block = block; in inode_getblk()
/fs/xfs/
Dxfs_iomap.c702 xfs_fileoff_t offset_fsb, last_block; in xfs_iomap_write_allocate() local
789 error = xfs_bmap_last_offset(NULL, ip, &last_block, in xfs_iomap_write_allocate()
794 last_block = XFS_FILEOFF_MAX(last_block, end_fsb); in xfs_iomap_write_allocate()
795 if ((map_start_fsb + count_fsb) > last_block) { in xfs_iomap_write_allocate()
796 count_fsb = last_block - map_start_fsb; in xfs_iomap_write_allocate()
Dxfs_inode.c1247 xfs_fileoff_t last_block; in xfs_file_last_byte() local
1261 error = xfs_bmap_last_offset(NULL, ip, &last_block, in xfs_file_last_byte()
1264 last_block = 0; in xfs_file_last_byte()
1267 last_block = 0; in xfs_file_last_byte()
1270 last_block = XFS_FILEOFF_MAX(last_block, size_last_block); in xfs_file_last_byte()
1272 last_byte = XFS_FSB_TO_B(mp, last_block); in xfs_file_last_byte()
1477 xfs_fileoff_t last_block; in xfs_itruncate_finish() local
1595 last_block = XFS_B_TO_FSB(mp, (xfs_ufsize_t)XFS_MAXIOFFSET(mp)); in xfs_itruncate_finish()
1596 ASSERT(first_unmap_block <= last_block); in xfs_itruncate_finish()
1598 if (last_block == first_unmap_block) { in xfs_itruncate_finish()
[all …]
Dxfs_bmap.h230 xfs_fileoff_t *last_block, /* last block */
Dxfs_bmap.c4419 xfs_fileoff_t *last_block, /* last block */ in xfs_bmap_last_before() argument
4436 *last_block = 0; in xfs_bmap_last_before()
4443 bno = *last_block - 1; in xfs_bmap_last_before()
4448 *last_block = 0; in xfs_bmap_last_before()
4450 *last_block = prev.br_startoff + prev.br_blockcount; in xfs_bmap_last_before()
4467 xfs_fileoff_t *last_block, /* last block */ in xfs_bmap_last_offset() argument
4480 *last_block = 0; in xfs_bmap_last_offset()
4489 *last_block = 0; in xfs_bmap_last_offset()
4493 *last_block = xfs_bmbt_get_startoff(ep) + xfs_bmbt_get_blockcount(ep); in xfs_bmap_last_offset()
/fs/ecryptfs/
Dcrypto.c1981 unsigned char last_block[3]; in ecryptfs_encode_for_filename() local
1989 memcpy(last_block, (&src[src_size - 3]), 3); in ecryptfs_encode_for_filename()
1992 last_block[2] = 0x00; in ecryptfs_encode_for_filename()
1995 last_block[0] = src[src_size - 1]; in ecryptfs_encode_for_filename()
1996 last_block[1] = 0x00; in ecryptfs_encode_for_filename()
1999 last_block[0] = src[src_size - 2]; in ecryptfs_encode_for_filename()
2000 last_block[1] = src[src_size - 1]; in ecryptfs_encode_for_filename()
2011 src_block = last_block; in ecryptfs_encode_for_filename()
/fs/ext2/
Dsuper.c632 ext2_fsblk_t last_block; in ext2_check_descriptors() local
635 last_block = le32_to_cpu(sbi->s_es->s_blocks_count) - 1; in ext2_check_descriptors()
637 last_block = first_block + in ext2_check_descriptors()
641 le32_to_cpu(gdp->bg_block_bitmap) > last_block) in ext2_check_descriptors()
650 le32_to_cpu(gdp->bg_inode_bitmap) > last_block) in ext2_check_descriptors()
660 last_block) in ext2_check_descriptors()
Dballoc.c789 ext2_fsblk_t last_block) in find_next_reservable_window() argument
816 if (cur > last_block) in find_next_reservable_window()
/fs/ext3/
Dsuper.c1319 ext3_fsblk_t last_block; in ext3_check_descriptors() local
1322 last_block = le32_to_cpu(sbi->s_es->s_blocks_count) - 1; in ext3_check_descriptors()
1324 last_block = first_block + in ext3_check_descriptors()
1328 le32_to_cpu(gdp->bg_block_bitmap) > last_block) in ext3_check_descriptors()
1338 le32_to_cpu(gdp->bg_inode_bitmap) > last_block) in ext3_check_descriptors()
1349 last_block) in ext3_check_descriptors()
Dballoc.c982 ext3_fsblk_t last_block) in find_next_reservable_window() argument
1009 if (cur > last_block) in find_next_reservable_window()
Dinode.c2342 long last_block; in ext3_truncate() local
2374 last_block = (inode->i_size + blocksize-1) in ext3_truncate()
2380 n = ext3_block_to_path(inode, last_block, offsets, NULL); in ext3_truncate()
/fs/btrfs/
Dctree.c526 u64 last_block = 0; in btrfs_realloc_node() local
574 if (last_block == 0) in btrfs_realloc_node()
575 last_block = blocknr; in btrfs_realloc_node()
586 last_block = blocknr; in btrfs_realloc_node()
613 search_start = last_block; in btrfs_realloc_node()
627 last_block = cur->start; in btrfs_realloc_node()
/fs/reiserfs/
Dinode.c2327 sector_t last_block; in reiserfs_write_full_page() local
2371 last_block = (i_size_read(inode) - 1) >> inode->i_blkbits; in reiserfs_write_full_page()
2374 if (block > last_block) { in reiserfs_write_full_page()