/fs/ext4/ |
D | balloc.c | 27 ext4_group_t block_group); 53 ext4_group_t block_group) in ext4_block_in_group() argument 57 if (actual_group == block_group) in ext4_block_in_group() 66 ext4_group_t block_group, in ext4_num_overhead_clusters() argument 71 ext4_fsblk_t start = ext4_group_first_block_no(sb, block_group); in ext4_num_overhead_clusters() 78 num_clusters = ext4_num_base_meta_clusters(sb, block_group); in ext4_num_overhead_clusters() 92 if (ext4_block_in_group(sb, ext4_block_bitmap(sb, gdp), block_group)) { in ext4_num_overhead_clusters() 103 if (ext4_block_in_group(sb, ext4_inode_bitmap(sb, gdp), block_group)) { in ext4_num_overhead_clusters() 116 if (ext4_block_in_group(sb, itbl_blk + i, block_group)) { in ext4_num_overhead_clusters() 139 ext4_group_t block_group) in num_clusters_in_group() argument [all …]
|
D | ialloc.c | 70 ext4_group_t block_group, in ext4_init_inode_bitmap() argument 79 if (!ext4_group_desc_csum_verify(sbi, block_group, gdp)) { in ext4_init_inode_bitmap() 80 ext4_error(sb, "Checksum bad for group %u", block_group); in ext4_init_inode_bitmap() 112 ext4_read_inode_bitmap(struct super_block *sb, ext4_group_t block_group) in ext4_read_inode_bitmap() argument 118 desc = ext4_get_group_desc(sb, block_group, NULL); in ext4_read_inode_bitmap() 127 block_group, bitmap_blk); in ext4_read_inode_bitmap() 139 ext4_lock_group(sb, block_group); in ext4_read_inode_bitmap() 141 ext4_init_inode_bitmap(sb, bh, block_group, desc); in ext4_read_inode_bitmap() 144 ext4_unlock_group(sb, block_group); in ext4_read_inode_bitmap() 148 ext4_unlock_group(sb, block_group); in ext4_read_inode_bitmap() [all …]
|
D | mballoc.c | 2579 ext4_group_t block_group, ext4_grpblk_t cluster, int count, in ext4_issue_discard() argument 2585 ext4_group_first_block_no(sb, block_group)); in ext4_issue_discard() 4488 ext4_group_t block_group; in ext4_free_blocks() local 4574 ext4_get_group_no_and_offset(sb, block, &block_group, &bit); in ext4_free_blocks() 4586 bitmap_bh = ext4_read_block_bitmap(sb, block_group); in ext4_free_blocks() 4591 gdp = ext4_get_group_desc(sb, block_group, &gd_bh); in ext4_free_blocks() 4631 trace_ext4_mballoc_free(sb, inode, block_group, bit, count_clusters); in ext4_free_blocks() 4633 err = ext4_mb_load_buddy(sb, block_group, &e4b); in ext4_free_blocks() 4655 new_entry->efd_group = block_group; in ext4_free_blocks() 4659 ext4_lock_group(sb, block_group); in ext4_free_blocks() [all …]
|
D | ext4.h | 1641 ext4_group_t block_group; member 1805 ext4_group_t block_group, 1810 ext4_group_t block_group); 1812 ext4_group_t block_group, 1815 ext4_group_t block_group); 1821 ext4_group_t block_group, 1824 ext4_group_t block_group, 2114 ext4_group_t block_group) in ext4_flex_group() argument 2116 return block_group >> sbi->s_log_groups_per_flex; in ext4_flex_group()
|
D | super.c | 1924 __le16 ext4_group_desc_csum(struct ext4_sb_info *sbi, __u32 block_group, in ext4_group_desc_csum() argument 1932 __le32 le_group = cpu_to_le32(block_group); in ext4_group_desc_csum() 1950 int ext4_group_desc_csum_verify(struct ext4_sb_info *sbi, __u32 block_group, in ext4_group_desc_csum_verify() argument 1955 (gdp->bg_checksum != ext4_group_desc_csum(sbi, block_group, gdp))) in ext4_group_desc_csum_verify()
|
D | inode.c | 3450 iloc->block_group = (inode->i_ino - 1) / EXT4_INODES_PER_GROUP(sb); in __ext4_get_inode_loc() 3451 gdp = ext4_get_group_desc(sb, iloc->block_group, NULL); in __ext4_get_inode_loc() 3713 ei->i_block_group = iloc.block_group; in ext4_iget()
|
/fs/btrfs/ |
D | free-space-cache.c | 85 *block_group, struct btrfs_path *path) in lookup_free_space_inode() 90 spin_lock(&block_group->lock); in lookup_free_space_inode() 91 if (block_group->inode) in lookup_free_space_inode() 92 inode = igrab(block_group->inode); in lookup_free_space_inode() 93 spin_unlock(&block_group->lock); in lookup_free_space_inode() 98 block_group->key.objectid); in lookup_free_space_inode() 102 spin_lock(&block_group->lock); in lookup_free_space_inode() 107 block_group->disk_cache_state = BTRFS_DC_CLEAR; in lookup_free_space_inode() 110 if (!block_group->iref) { in lookup_free_space_inode() 111 block_group->inode = igrab(inode); in lookup_free_space_inode() [all …]
|
D | free-space-cache.h | 51 *block_group, struct btrfs_path *path); 54 struct btrfs_block_group_cache *block_group, 62 struct btrfs_block_group_cache *block_group); 65 struct btrfs_block_group_cache *block_group, 79 void btrfs_init_free_space_ctl(struct btrfs_block_group_cache *block_group); 83 btrfs_add_free_space(struct btrfs_block_group_cache *block_group, in btrfs_add_free_space() argument 86 return __btrfs_add_free_space(block_group->free_space_ctl, in btrfs_add_free_space() 89 int btrfs_remove_free_space(struct btrfs_block_group_cache *block_group, 93 *block_group); 94 u64 btrfs_find_space_for_alloc(struct btrfs_block_group_cache *block_group, [all …]
|
D | extent-tree.c | 136 struct btrfs_block_group_cache *block_group) in btrfs_add_block_group_cache() argument 149 if (block_group->key.objectid < cache->key.objectid) { in btrfs_add_block_group_cache() 151 } else if (block_group->key.objectid > cache->key.objectid) { in btrfs_add_block_group_cache() 159 rb_link_node(&block_group->cache_node, parent, p); in btrfs_add_block_group_cache() 160 rb_insert_color(&block_group->cache_node, in btrfs_add_block_group_cache() 304 static u64 add_new_free_space(struct btrfs_block_group_cache *block_group, in add_new_free_space() argument 322 ret = btrfs_add_free_space(block_group, start, in add_new_free_space() 334 ret = btrfs_add_free_space(block_group, start, size); in add_new_free_space() 343 struct btrfs_block_group_cache *block_group; in caching_thread() local 356 block_group = caching_ctl->block_group; in caching_thread() [all …]
|
D | relocation.c | 158 struct btrfs_block_group_cache *block_group; member 1484 struct btrfs_block_group_cache *block_group) argument 1486 if (bytenr >= block_group->key.objectid && 1487 bytenr < block_group->key.objectid + block_group->key.offset) 1586 if (!in_block_group(bytenr, rc->block_group)) 2669 in_block_group(node->bytenr, rc->block_group)) { 3582 last = rc->block_group->key.objectid + rc->block_group->key.offset; 3691 rc->search_start = rc->block_group->key.objectid; 3848 rc->block_group->flags); 4015 rc->block_group = btrfs_lookup_block_group(fs_info, group_start); [all …]
|
D | ioctl.c | 2798 struct btrfs_block_group_cache *block_group; in get_block_group_info() local 2803 list_for_each_entry(block_group, groups_list, list) { in get_block_group_info() 2804 space->flags = block_group->flags; in get_block_group_info() 2805 space->total_bytes += block_group->key.offset; in get_block_group_info() 2807 btrfs_block_group_used(&block_group->item); in get_block_group_info()
|
D | ctree.h | 660 __le64 block_group; member 945 struct btrfs_block_group_cache *block_group; member 974 struct btrfs_block_group_cache *block_group; member 1761 BTRFS_SETGET_FUNCS(inode_block_group, struct btrfs_inode_item, block_group, 64);
|
D | delayed-inode.c | 1686 block_group, 64);
|
/fs/udf/ |
D | balloc.c | 56 unsigned int block_group) in __load_block_bitmap() argument 61 if (block_group >= nr_groups) { in __load_block_bitmap() 63 block_group, nr_groups); in __load_block_bitmap() 66 if (bitmap->s_block_bitmap[block_group]) { in __load_block_bitmap() 67 return block_group; in __load_block_bitmap() 69 retval = read_block_bitmap(sb, bitmap, block_group, in __load_block_bitmap() 70 block_group); in __load_block_bitmap() 73 return block_group; in __load_block_bitmap() 79 unsigned int block_group) in load_block_bitmap() argument 83 slot = __load_block_bitmap(sb, bitmap, block_group); in load_block_bitmap() [all …]
|
/fs/ext2/ |
D | balloc.c | 40 unsigned int block_group, in ext2_get_group_desc() argument 48 if (block_group >= sbi->s_groups_count) { in ext2_get_group_desc() 52 block_group, sbi->s_groups_count); in ext2_get_group_desc() 57 group_desc = block_group >> EXT2_DESC_PER_BLOCK_BITS(sb); in ext2_get_group_desc() 58 offset = block_group & (EXT2_DESC_PER_BLOCK(sb) - 1); in ext2_get_group_desc() 63 block_group, group_desc, offset); in ext2_get_group_desc() 75 unsigned int block_group, in ext2_valid_block_bitmap() argument 83 group_first_block = ext2_group_first_block_no(sb, block_group); in ext2_valid_block_bitmap() 113 block_group, bitmap_blk); in ext2_valid_block_bitmap() 124 read_block_bitmap(struct super_block *sb, unsigned int block_group) in read_block_bitmap() argument [all …]
|
D | ialloc.c | 46 read_inode_bitmap(struct super_block * sb, unsigned long block_group) in read_inode_bitmap() argument 51 desc = ext2_get_group_desc(sb, block_group, NULL); in read_inode_bitmap() 60 block_group, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap() 110 unsigned long block_group; in ext2_free_inode() local 135 block_group = (ino - 1) / EXT2_INODES_PER_GROUP(sb); in ext2_free_inode() 137 bitmap_bh = read_inode_bitmap(sb, block_group); in ext2_free_inode() 142 if (!ext2_clear_bit_atomic(sb_bgl_lock(EXT2_SB(sb), block_group), in ext2_free_inode() 147 ext2_release_inode(sb, block_group, is_directory); in ext2_free_inode() 169 unsigned long block_group; in ext2_preread_inode() local 181 block_group = (inode->i_ino - 1) / EXT2_INODES_PER_GROUP(inode->i_sb); in ext2_preread_inode() [all …]
|
D | ext2.h | 117 sb_bgl_lock(struct ext2_sb_info *sbi, unsigned int block_group) in sb_bgl_lock() argument 119 return bgl_lock_ptr(sbi->s_blockgroup_lock, block_group); in sb_bgl_lock() 726 unsigned int block_group,
|
D | inode.c | 1213 unsigned long block_group; in ext2_get_inode() local 1223 block_group = (ino - 1) / EXT2_INODES_PER_GROUP(sb); in ext2_get_inode() 1224 gdp = ext2_get_group_desc(sb, block_group, NULL); in ext2_get_inode()
|
/fs/ext3/ |
D | ialloc.c | 44 read_inode_bitmap(struct super_block * sb, unsigned long block_group) in read_inode_bitmap() argument 49 desc = ext3_get_group_desc(sb, block_group, NULL); in read_inode_bitmap() 58 block_group, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap() 86 unsigned long block_group; in ext3_free_inode() local 121 block_group = (ino - 1) / EXT3_INODES_PER_GROUP(sb); in ext3_free_inode() 123 bitmap_bh = read_inode_bitmap(sb, block_group); in ext3_free_inode() 133 if (!ext3_clear_bit_atomic(sb_bgl_lock(sbi, block_group), in ext3_free_inode() 138 gdp = ext3_get_group_desc (sb, block_group, &bh2); in ext3_free_inode() 145 spin_lock(sb_bgl_lock(sbi, block_group)); in ext3_free_inode() 149 spin_unlock(sb_bgl_lock(sbi, block_group)); in ext3_free_inode() [all …]
|
D | balloc.c | 59 unsigned int block_group, in ext3_get_group_desc() argument 67 if (block_group >= sbi->s_groups_count) { in ext3_get_group_desc() 71 block_group, sbi->s_groups_count); in ext3_get_group_desc() 77 group_desc = block_group >> EXT3_DESC_PER_BLOCK_BITS(sb); in ext3_get_group_desc() 78 offset = block_group & (EXT3_DESC_PER_BLOCK(sb) - 1); in ext3_get_group_desc() 83 block_group, group_desc, offset); in ext3_get_group_desc() 95 unsigned int block_group, in ext3_valid_block_bitmap() argument 103 group_first_block = ext3_group_first_block_no(sb, block_group); in ext3_valid_block_bitmap() 133 block_group, bitmap_blk); in ext3_valid_block_bitmap() 148 read_block_bitmap(struct super_block *sb, unsigned int block_group) in read_block_bitmap() argument [all …]
|
D | ext3.h | 678 sb_bgl_lock(struct ext3_sb_info *sbi, unsigned int block_group) in sb_bgl_lock() argument 680 return bgl_lock_ptr(sbi->s_blockgroup_lock, block_group); in sb_bgl_lock() 938 unsigned long block_group; member 1001 unsigned int block_group,
|
D | inode.c | 2686 unsigned long block_group; in ext3_get_inode_block() local 2700 block_group = (ino - 1) / EXT3_INODES_PER_GROUP(sb); in ext3_get_inode_block() 2701 gdp = ext3_get_group_desc(sb, block_group, NULL); in ext3_get_inode_block() 2712 iloc->block_group = block_group; in ext3_get_inode_block() 2769 int block_group; in __ext3_get_inode_loc() local 2772 block_group = (inode->i_ino - 1) / in __ext3_get_inode_loc() 2782 block_group, NULL); in __ext3_get_inode_loc() 2961 ei->i_block_group = iloc.block_group; in ext3_iget()
|