/fs/fat/ |
D | cache.c | 311 sector_t last_block, in fat_get_mapped_cluster() argument 326 if (*mapped_blocks > last_block - sector) in fat_get_mapped_cluster() 327 *mapped_blocks = last_block - sector; in fat_get_mapped_cluster() 334 sector_t *last_block, int create) in is_exceed_eof() argument 340 *last_block = (i_size_read(inode) + (blocksize - 1)) >> blocksize_bits; in is_exceed_eof() 341 if (sector >= *last_block) { in is_exceed_eof() 349 *last_block = (MSDOS_I(inode)->mmu_private + (blocksize - 1)) in is_exceed_eof() 351 if (sector >= *last_block) in is_exceed_eof() 362 sector_t last_block; in fat_bmap() local 375 if (is_exceed_eof(inode, sector, &last_block, create)) in fat_bmap() [all …]
|
D | inode.c | 125 sector_t phys, last_block; in __fat_get_block() local 145 last_block = inode->i_blocks >> (sb->s_blocksize_bits - 9); in __fat_get_block() 152 if (!offset && !(iblock < last_block)) { in __fat_get_block() 171 (unsigned long long)last_block); in __fat_get_block()
|
D | fat.h | 318 sector_t last_block,
|
/fs/erofs/ |
D | data.c | 130 erofs_off_t *last_block, in erofs_read_raw_page() argument 149 *last_block + 1 != current_block) { in erofs_read_raw_page() 235 *last_block = current_block; in erofs_read_raw_page() 268 erofs_off_t last_block; in erofs_raw_access_readpage() local 274 page, &last_block, 1, false); in erofs_raw_access_readpage() 288 erofs_off_t last_block; in erofs_raw_access_readpages() local 303 &last_block, nr_pages, true); in erofs_raw_access_readpages()
|
/fs/ |
D | mpage.c | 201 sector_t last_block; in do_mpage_readpage() local 226 last_block = block_in_file + args->nr_pages * blocks_per_page; in do_mpage_readpage() 228 if (last_block > last_block_in_file) in do_mpage_readpage() 229 last_block = last_block_in_file; in do_mpage_readpage() 265 if (block_in_file < last_block) { in do_mpage_readpage() 266 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage() 542 sector_t last_block; in __mpage_writepage() local 612 last_block = (i_size - 1) >> blkbits; in __mpage_writepage() 633 if (block_in_file == last_block) in __mpage_writepage()
|
D | buffer.c | 1676 sector_t last_block; in __block_write_full_page() local 1700 last_block = (i_size_read(inode) - 1) >> bbits; in __block_write_full_page() 1707 if (block > last_block) { in __block_write_full_page()
|
/fs/ext4/ |
D | readpage.c | 264 sector_t last_block; in ext4_mpage_readpages() local 297 last_block = block_in_file + nr_pages * blocks_per_page; in ext4_mpage_readpages() 300 if (last_block > last_block_in_file) in ext4_mpage_readpages() 301 last_block = last_block_in_file; in ext4_mpage_readpages() 333 if (block_in_file < last_block) { in ext4_mpage_readpages() 335 map.m_len = last_block - block_in_file; in ext4_mpage_readpages()
|
D | migrate.c | 17 ext4_lblk_t first_block, last_block, curr_block; member 33 newext.ee_len = cpu_to_le16(lb->last_block - lb->first_block + 1); in finish_range() 51 lb->last_block - lb->first_block + 1, path); in finish_range() 94 (lb->last_block+1 == lb->curr_block)) { in update_extent_range() 96 lb->last_block = lb->curr_block; in update_extent_range() 105 lb->first_block = lb->last_block = lb->curr_block; in update_extent_range()
|
D | indirect.c | 1105 ext4_lblk_t last_block, max_block; in ext4_ind_truncate() local 1108 last_block = (inode->i_size + blocksize-1) in ext4_ind_truncate() 1113 if (last_block != max_block) { in ext4_ind_truncate() 1114 n = ext4_block_to_path(inode, last_block, offsets, NULL); in ext4_ind_truncate() 1119 ext4_es_remove_extent(inode, last_block, EXT_MAX_BLOCKS - last_block); in ext4_ind_truncate() 1130 if (last_block == max_block) { in ext4_ind_truncate()
|
D | balloc.c | 869 ext4_fsblk_t last_block; in ext4_inode_to_goal_block() local 886 last_block = ext4_blocks_count(EXT4_SB(inode->i_sb)->s_es) - 1; in ext4_inode_to_goal_block() 895 if (bg_start + EXT4_BLOCKS_PER_GROUP(inode->i_sb) <= last_block) in ext4_inode_to_goal_block() 899 colour = (current->pid % 16) * ((last_block - bg_start) / 16); in ext4_inode_to_goal_block()
|
D | super.c | 2496 ext4_fsblk_t last_block; in ext4_check_descriptors() local 2513 last_block = ext4_blocks_count(sbi->s_es) - 1; in ext4_check_descriptors() 2515 last_block = first_block + in ext4_check_descriptors() 2538 if (block_bitmap < first_block || block_bitmap > last_block) { in ext4_check_descriptors() 2560 if (inode_bitmap < first_block || inode_bitmap > last_block) { in ext4_check_descriptors() 2583 inode_table + sbi->s_itb_per_group - 1 > last_block) { in ext4_check_descriptors() 3473 ext4_fsblk_t first_block, last_block, b; in count_overhead() local 3483 last_block = first_block + EXT4_BLOCKS_PER_GROUP(sb) - 1; in count_overhead() 3487 if (b >= first_block && b <= last_block) { in count_overhead() 3492 if (b >= first_block && b <= last_block) { in count_overhead() [all …]
|
D | extents.c | 4572 ext4_lblk_t last_block; in ext4_ext_truncate() local 4587 last_block = (inode->i_size + sb->s_blocksize - 1) in ext4_ext_truncate() 4590 err = ext4_es_remove_extent(inode, last_block, in ext4_ext_truncate() 4591 EXT_MAX_BLOCKS - last_block); in ext4_ext_truncate() 4599 return ext4_ext_remove_space(inode, last_block, EXT_MAX_BLOCKS - 1); in ext4_ext_truncate()
|
D | inode.c | 3447 unsigned long first_block, last_block; in ext4_iomap_begin() local 3455 last_block = min_t(loff_t, (offset + length - 1) >> blkbits, in ext4_iomap_begin() 3473 map.m_len = last_block - first_block + 1; in ext4_iomap_begin()
|
/fs/udf/ |
D | truncate.c | 34 int last_block = (elen + inode->i_sb->s_blocksize - 1) >> in extent_trunc() local 42 last_block); in extent_trunc() 51 if (last_block > first_block) { in extent_trunc() 58 last_block - first_block); in extent_trunc()
|
/fs/ecryptfs/ |
D | crypto.c | 1778 unsigned char last_block[3]; in ecryptfs_encode_for_filename() local 1786 memcpy(last_block, (&src[src_size - 3]), 3); in ecryptfs_encode_for_filename() 1789 last_block[2] = 0x00; in ecryptfs_encode_for_filename() 1792 last_block[0] = src[src_size - 1]; in ecryptfs_encode_for_filename() 1793 last_block[1] = 0x00; in ecryptfs_encode_for_filename() 1796 last_block[0] = src[src_size - 2]; in ecryptfs_encode_for_filename() 1797 last_block[1] = src[src_size - 1]; in ecryptfs_encode_for_filename() 1808 src_block = last_block; in ecryptfs_encode_for_filename()
|
/fs/f2fs/ |
D | data.c | 716 if (bio && (!page_is_mergeable(fio->sbi, bio, *fio->last_block, in f2fs_merge_page_bio() 740 *fio->last_block = fio->new_blkaddr; in f2fs_merge_page_bio() 1817 sector_t last_block; in f2fs_read_single_page() local 1823 last_block = block_in_file + nr_pages; in f2fs_read_single_page() 1826 if (last_block > last_block_in_file) in f2fs_read_single_page() 1827 last_block = last_block_in_file; in f2fs_read_single_page() 1830 if (block_in_file >= last_block) in f2fs_read_single_page() 1845 map->m_len = last_block - block_in_file; in f2fs_read_single_page() 2251 sector_t *last_block, in __write_data_page() argument 2278 .last_block = last_block, in __write_data_page() [all …]
|
D | f2fs.h | 1071 sector_t *last_block; /* last block number in bio */ member
|
/fs/ext2/ |
D | super.c | 705 ext2_fsblk_t last_block; in ext2_check_descriptors() local 708 last_block = le32_to_cpu(sbi->s_es->s_blocks_count) - 1; in ext2_check_descriptors() 710 last_block = first_block + in ext2_check_descriptors() 714 le32_to_cpu(gdp->bg_block_bitmap) > last_block) in ext2_check_descriptors() 723 le32_to_cpu(gdp->bg_inode_bitmap) > last_block) in ext2_check_descriptors() 733 last_block) in ext2_check_descriptors()
|
D | balloc.c | 781 ext2_fsblk_t last_block) in find_next_reservable_window() argument 808 if (cur > last_block) in find_next_reservable_window()
|
/fs/xfs/libxfs/ |
D | xfs_bmap.h | 194 xfs_fileoff_t *last_block, int whichfork);
|
D | xfs_bmap.c | 1361 xfs_fileoff_t *last_block, /* last block */ in xfs_bmap_last_before() argument 1371 *last_block = 0; in xfs_bmap_last_before() 1386 if (!xfs_iext_lookup_extent_before(ip, ifp, last_block, &icur, &got)) in xfs_bmap_last_before() 1387 *last_block = 0; in xfs_bmap_last_before() 1464 xfs_fileoff_t *last_block, in xfs_bmap_last_offset() argument 1471 *last_block = 0; in xfs_bmap_last_offset() 1484 *last_block = rec.br_startoff + rec.br_blockcount; in xfs_bmap_last_offset()
|
/fs/xfs/ |
D | xfs_inode.c | 1516 xfs_fileoff_t last_block; in xfs_itruncate_extents_flags() local 1544 last_block = XFS_B_TO_FSB(mp, mp->m_super->s_maxbytes); in xfs_itruncate_extents_flags() 1545 if (first_unmap_block == last_block) in xfs_itruncate_extents_flags() 1548 ASSERT(first_unmap_block < last_block); in xfs_itruncate_extents_flags() 1549 unmap_len = last_block - first_unmap_block + 1; in xfs_itruncate_extents_flags() 1573 first_unmap_block, last_block, true); in xfs_itruncate_extents_flags()
|
/fs/btrfs/ |
D | ctree.c | 1598 u64 last_block = 0; in btrfs_realloc_node() local 1636 if (last_block == 0) in btrfs_realloc_node() 1637 last_block = blocknr; in btrfs_realloc_node() 1648 last_block = blocknr; in btrfs_realloc_node() 1678 search_start = last_block; in btrfs_realloc_node() 1692 last_block = cur->start; in btrfs_realloc_node()
|
/fs/reiserfs/ |
D | inode.c | 2534 sector_t last_block; in reiserfs_write_full_page() local 2580 last_block = (i_size_read(inode) - 1) >> inode->i_blkbits; in reiserfs_write_full_page() 2583 if (block > last_block) { in reiserfs_write_full_page()
|
/fs/gfs2/ |
D | rgrp.c | 642 u64 last_block = gfs2_rbm_to_block(&rs->rs_rbm) + in __rs_deltree() local 656 if (gfs2_rbm_from_block(&last_rbm, last_block)) in __rs_deltree()
|