Home
last modified time | relevance | path

Searched refs:first_block (Results 1 – 17 of 17) sorted by relevance

/fs/udf/
Dballoc.c196 uint16_t partition, uint32_t first_block, in udf_bitmap_prealloc_blocks() argument
208 if (first_block >= part_len) in udf_bitmap_prealloc_blocks()
211 if (first_block + block_count > part_len) in udf_bitmap_prealloc_blocks()
212 block_count = part_len - first_block; in udf_bitmap_prealloc_blocks()
215 block = first_block + (sizeof(struct spaceBitmapDesc) << 3); in udf_bitmap_prealloc_blocks()
523 uint32_t first_block, uint32_t block_count) in udf_table_prealloc_blocks() argument
533 if (first_block >= sbi->s_partmaps[partition].s_partition_len) in udf_table_prealloc_blocks()
550 while (first_block != eloc.logicalBlockNum && in udf_table_prealloc_blocks()
553 eloc.logicalBlockNum, elen, first_block); in udf_table_prealloc_blocks()
557 if (first_block == eloc.logicalBlockNum) { in udf_table_prealloc_blocks()
[all …]
Dtruncate.c36 int first_block = (nelen + inode->i_sb->s_blocksize - 1) >> in extent_trunc() local
51 if (last_block > first_block) { in extent_trunc()
57 first_block, in extent_trunc()
58 last_block - first_block); in extent_trunc()
191 sector_t first_block = inode->i_size >> sb->s_blocksize_bits, offset; in udf_truncate_extents() local
203 etype = inode_bmap(inode, first_block, &epos, &eloc, &elen, &offset); in udf_truncate_extents()
Dinode.c628 sector_t first_block = newsize >> sb->s_blocksize_bits, offset; in udf_extend_file() local
649 etype = inode_bmap(inode, first_block, &epos, &eloc, &elen, &offset); in udf_extend_file()
/fs/ext4/
Dmigrate.c17 ext4_lblk_t first_block, last_block, curr_block; member
32 newext.ee_block = cpu_to_le32(lb->first_block); in finish_range()
33 newext.ee_len = cpu_to_le16(lb->last_block - lb->first_block + 1); in finish_range()
37 path = ext4_find_extent(inode, lb->first_block, NULL, 0); in finish_range()
51 lb->last_block - lb->first_block + 1, path); in finish_range()
105 lb->first_block = lb->last_block = lb->curr_block; in update_extent_range()
Dindirect.c529 ext4_fsblk_t first_block = 0; in ext4_ind_map_blocks() local
544 first_block = le32_to_cpu(chain[depth - 1].key); in ext4_ind_map_blocks()
552 if (blk == first_block + count) in ext4_ind_map_blocks()
Dsuper.c2576 ext4_fsblk_t first_block = le32_to_cpu(sbi->s_es->s_first_data_block); in ext4_check_descriptors() local
2596 last_block = first_block + in ext4_check_descriptors()
2619 if (block_bitmap < first_block || block_bitmap > last_block) { in ext4_check_descriptors()
2641 if (inode_bitmap < first_block || inode_bitmap > last_block) { in ext4_check_descriptors()
2663 if (inode_table < first_block || in ext4_check_descriptors()
2683 first_block += EXT4_BLOCKS_PER_GROUP(sb); in ext4_check_descriptors()
3552 ext4_fsblk_t first_block, last_block, b; in count_overhead() local
3562 first_block = le32_to_cpu(sbi->s_es->s_first_data_block) + in count_overhead()
3564 last_block = first_block + EXT4_BLOCKS_PER_GROUP(sb) - 1; in count_overhead()
3568 if (b >= first_block && b <= last_block) { in count_overhead()
[all …]
Dinode.c3496 unsigned long first_block, last_block; in ext4_iomap_begin() local
3503 first_block = offset >> blkbits; in ext4_iomap_begin()
3521 map.m_lblk = first_block; in ext4_iomap_begin()
3522 map.m_len = last_block - first_block + 1; in ext4_iomap_begin()
3591 if (!(flags & IOMAP_FAULT) && first_block + map.m_len > in ext4_iomap_begin()
3619 iomap->offset = (u64)first_block << blkbits; in ext4_iomap_begin()
4373 ext4_lblk_t first_block, stop_block; in ext4_punch_hole() local
4474 first_block = (offset + sb->s_blocksize - 1) >> in ext4_punch_hole()
4479 if (stop_block > first_block) { in ext4_punch_hole()
4484 ret = ext4_es_remove_extent(inode, first_block, in ext4_punch_hole()
[all …]
Dmballoc.c815 int first_block; in ext4_mb_init_cache() local
885 first_block = page->index * blocks_per_page; in ext4_mb_init_cache()
887 group = (first_block + i) >> 1; in ext4_mb_init_cache()
913 if ((first_block + i) & 1) { in ext4_mb_init_cache()
/fs/jbd2/
Dcommit.c379 unsigned long first_block; in jbd2_journal_commit_transaction() local
758 jbd2_journal_get_log_tail(journal, &first_tid, &first_block); in jbd2_journal_commit_transaction()
762 long freed = first_block - journal->j_tail; in jbd2_journal_commit_transaction()
764 if (first_block < journal->j_tail) in jbd2_journal_commit_transaction()
901 jbd2_update_log_tail(journal, first_tid, first_block); in jbd2_journal_commit_transaction()
/fs/nilfs2/
Dpage.c33 unsigned long first_block; in __nilfs_get_page_block() local
39 first_block = (unsigned long)index << (PAGE_SHIFT - blkbits); in __nilfs_get_page_block()
40 bh = nilfs_page_get_nth_block(page, block - first_block); in __nilfs_get_page_block()
Dmdt.c361 unsigned long first_block; in nilfs_mdt_forget_block() local
371 first_block = (unsigned long)index << in nilfs_mdt_forget_block()
376 bh = nilfs_page_get_nth_block(page, block - first_block); in nilfs_mdt_forget_block()
/fs/ext2/
Dinode.c638 ext2_fsblk_t first_block = 0; in ext2_get_blocks() local
650 first_block = le32_to_cpu(chain[depth - 1].key); in ext2_get_blocks()
669 if (blk == first_block + count) in ext2_get_blocks()
810 unsigned long first_block = offset >> blkbits; in ext2_iomap_begin() local
817 ret = ext2_get_blocks(inode, first_block, max_blocks, in ext2_iomap_begin()
824 iomap->offset = (u64)first_block << blkbits; in ext2_iomap_begin()
Dsuper.c703 ext2_fsblk_t first_block = ext2_group_first_block_no(sb, i); in ext2_check_descriptors() local
709 last_block = first_block + in ext2_check_descriptors()
712 if (le32_to_cpu(gdp->bg_block_bitmap) < first_block || in ext2_check_descriptors()
721 if (le32_to_cpu(gdp->bg_inode_bitmap) < first_block || in ext2_check_descriptors()
730 if (le32_to_cpu(gdp->bg_inode_table) < first_block || in ext2_check_descriptors()
/fs/f2fs/
Ddata.c3947 sector_t first_block; in check_swap_activate() local
3951 first_block = bmap(inode, probe_block); in check_swap_activate()
3952 if (first_block == 0) in check_swap_activate()
3958 if (first_block & (blocks_per_page - 1)) { in check_swap_activate()
3970 if (block != first_block + block_in_page) { in check_swap_activate()
3977 first_block >>= (PAGE_SHIFT - blkbits); in check_swap_activate()
3979 if (first_block < lowest_block) in check_swap_activate()
3980 lowest_block = first_block; in check_swap_activate()
3981 if (first_block > highest_block) in check_swap_activate()
3982 highest_block = first_block; in check_swap_activate()
[all …]
/fs/efs/
Dsuper.c240 sb->first_block = be32_to_cpu(super->fs_firstcg); in efs_validate_super()
Dinode.c83 block = sb->fs_start + sb->first_block + in efs_iget()
/fs/btrfs/
Dcheck-integrity.c944 struct btrfsic_block *const first_block, in btrfsic_process_metablock() argument
959 sf->block = first_block; in btrfsic_process_metablock()