/fs/btrfs/ |
D | free-space-cache.c | 161 static void unlink_free_space(struct btrfs_block_group_cache *block_group, in unlink_free_space() argument 164 rb_erase(&info->offset_index, &block_group->free_space_offset); in unlink_free_space() 165 rb_erase(&info->bytes_index, &block_group->free_space_bytes); in unlink_free_space() 168 static int link_free_space(struct btrfs_block_group_cache *block_group, in link_free_space() argument 174 ret = tree_insert_offset(&block_group->free_space_offset, info->offset, in link_free_space() 179 ret = tree_insert_bytes(&block_group->free_space_bytes, info->bytes, in link_free_space() 187 static int __btrfs_add_free_space(struct btrfs_block_group_cache *block_group, in __btrfs_add_free_space() argument 205 right_info = tree_search_offset(&block_group->free_space_offset, in __btrfs_add_free_space() 207 left_info = tree_search_offset(&block_group->free_space_offset, in __btrfs_add_free_space() 211 unlink_free_space(block_group, right_info); in __btrfs_add_free_space() [all …]
|
D | transaction.h | 44 u64 block_group; member 66 trans->block_group = BTRFS_I(inode)->block_group; in btrfs_set_trans_block_group() 73 BTRFS_I(inode)->block_group = trans->block_group; in btrfs_update_inode_block_group()
|
D | extent-tree.c | 78 struct btrfs_block_group_cache *block_group) in btrfs_add_block_group_cache() argument 91 if (block_group->key.objectid < cache->key.objectid) { in btrfs_add_block_group_cache() 93 } else if (block_group->key.objectid > cache->key.objectid) { in btrfs_add_block_group_cache() 101 rb_link_node(&block_group->cache_node, parent, p); in btrfs_add_block_group_cache() 102 rb_insert_color(&block_group->cache_node, in btrfs_add_block_group_cache() 157 static int add_new_free_space(struct btrfs_block_group_cache *block_group, in add_new_free_space() argument 175 ret = btrfs_add_free_space(block_group, start, in add_new_free_space() 186 ret = btrfs_add_free_space(block_group, start, size); in add_new_free_space() 218 struct btrfs_block_group_cache *block_group) in cache_block_group() argument 227 if (!block_group) in cache_block_group() [all …]
|
D | btrfs_inode.h | 122 u64 block_group; member
|
D | ctree.h | 466 __le64 block_group; member 1185 BTRFS_SETGET_FUNCS(inode_block_group, struct btrfs_inode_item, block_group, 64); 2137 int btrfs_add_free_space(struct btrfs_block_group_cache *block_group, 2139 int btrfs_add_free_space_lock(struct btrfs_block_group_cache *block_group, 2141 int btrfs_remove_free_space(struct btrfs_block_group_cache *block_group, 2143 int btrfs_remove_free_space_lock(struct btrfs_block_group_cache *block_group, 2146 *block_group); 2148 *block_group, u64 offset, 2150 void btrfs_dump_free_space(struct btrfs_block_group_cache *block_group, 2152 u64 btrfs_block_group_free_space(struct btrfs_block_group_cache *block_group);
|
D | inode.c | 2016 BTRFS_I(inode)->block_group = btrfs_find_block_group(root, 0, in btrfs_read_locked_inode() 2088 btrfs_set_inode_block_group(leaf, item, BTRFS_I(inode)->block_group); in fill_inode_item() 3432 BTRFS_I(inode)->block_group = in btrfs_new_inode() 3590 BTRFS_I(dir)->block_group, mode, &index); in btrfs_mknod() 3652 objectid, BTRFS_I(dir)->block_group, mode, in btrfs_create() 3772 BTRFS_I(dir)->block_group, S_IFDIR | mode, in btrfs_mkdir() 4738 BTRFS_I(dir)->block_group, S_IFLNK|S_IRWXUGO, in btrfs_symlink()
|
D | transaction.c | 182 h->block_group = 0; in start_transaction()
|
D | ioctl.c | 180 BTRFS_I(dir)->block_group); in create_subvol()
|
/fs/ext4/ |
D | balloc.c | 48 ext4_group_t block_group) in ext4_block_in_group() argument 52 if (actual_group == block_group) in ext4_block_in_group() 58 ext4_group_t block_group) in ext4_group_used_meta_blocks() argument 69 gdp = ext4_get_group_desc(sb, block_group, &bh); in ext4_group_used_meta_blocks() 71 block_group)) in ext4_group_used_meta_blocks() 75 block_group)) in ext4_group_used_meta_blocks() 81 if (!ext4_block_in_group(sb, tmp, block_group)) in ext4_group_used_meta_blocks() 91 ext4_group_t block_group, struct ext4_group_desc *gdp) in ext4_init_block_bitmap() argument 102 if (!ext4_group_desc_csum_verify(sbi, block_group, gdp)) { in ext4_init_block_bitmap() 104 "Checksum bad for group %u", block_group); in ext4_init_block_bitmap() [all …]
|
D | ialloc.c | 67 ext4_group_t block_group, in ext4_init_inode_bitmap() argument 76 if (!ext4_group_desc_csum_verify(sbi, block_group, gdp)) { in ext4_init_inode_bitmap() 78 block_group); in ext4_init_inode_bitmap() 100 ext4_read_inode_bitmap(struct super_block *sb, ext4_group_t block_group) in ext4_read_inode_bitmap() argument 106 desc = ext4_get_group_desc(sb, block_group, NULL); in ext4_read_inode_bitmap() 115 block_group, bitmap_blk); in ext4_read_inode_bitmap() 126 spin_lock(sb_bgl_lock(EXT4_SB(sb), block_group)); in ext4_read_inode_bitmap() 128 ext4_init_inode_bitmap(sb, bh, block_group, desc); in ext4_read_inode_bitmap() 131 spin_unlock(sb_bgl_lock(EXT4_SB(sb), block_group)); in ext4_read_inode_bitmap() 135 spin_unlock(sb_bgl_lock(EXT4_SB(sb), block_group)); in ext4_read_inode_bitmap() [all …]
|
D | ext4_sb.h | 154 sb_bgl_lock(struct ext4_sb_info *sbi, unsigned int block_group) in sb_bgl_lock() argument 156 return bgl_lock_ptr(&sbi->s_blockgroup_lock, block_group); in sb_bgl_lock()
|
D | group.h | 17 ext4_group_t block_group);
|
D | mballoc.c | 4793 ext4_group_t block_group; in ext4_mb_free_blocks() local 4827 ext4_get_group_no_and_offset(sb, block, &block_group, &bit); in ext4_mb_free_blocks() 4837 bitmap_bh = ext4_read_block_bitmap(sb, block_group); in ext4_mb_free_blocks() 4842 gdp = ext4_get_group_desc(sb, block_group, &gd_bh); in ext4_mb_free_blocks() 4884 ac->ac_b_ex.fe_group = block_group; in ext4_mb_free_blocks() 4890 err = ext4_mb_load_buddy(sb, block_group, &e4b); in ext4_mb_free_blocks() 4901 new_entry->group = block_group; in ext4_mb_free_blocks() 4904 ext4_lock_group(sb, block_group); in ext4_mb_free_blocks() 4905 mb_clear_bits(sb_bgl_lock(sbi, block_group), bitmap_bh->b_data, in ext4_mb_free_blocks() 4908 ext4_unlock_group(sb, block_group); in ext4_mb_free_blocks() [all …]
|
D | ext4.h | 931 ext4_group_t block_group; member 1022 ext4_group_t block_group, 1236 ext4_group_t block_group) in ext4_flex_group() argument 1238 return block_group >> sbi->s_log_groups_per_flex; in ext4_flex_group()
|
D | super.c | 1624 __le16 ext4_group_desc_csum(struct ext4_sb_info *sbi, __u32 block_group, in ext4_group_desc_csum() argument 1632 __le32 le_group = cpu_to_le32(block_group); in ext4_group_desc_csum() 1650 int ext4_group_desc_csum_verify(struct ext4_sb_info *sbi, __u32 block_group, in ext4_group_desc_csum_verify() argument 1655 (gdp->bg_checksum != ext4_group_desc_csum(sbi, block_group, gdp))) in ext4_group_desc_csum_verify()
|
D | inode.c | 3993 iloc->block_group = (inode->i_ino - 1) / EXT4_INODES_PER_GROUP(sb); in __ext4_get_inode_loc() 3994 gdp = ext4_get_group_desc(sb, iloc->block_group, NULL); in __ext4_get_inode_loc() 4259 ei->i_block_group = iloc.block_group; in ext4_iget()
|
/fs/udf/ |
D | balloc.c | 105 unsigned int block_group) in __load_block_bitmap() argument 110 if (block_group >= nr_groups) { in __load_block_bitmap() 111 udf_debug("block_group (%d) > nr_groups (%d)\n", block_group, in __load_block_bitmap() 115 if (bitmap->s_block_bitmap[block_group]) { in __load_block_bitmap() 116 return block_group; in __load_block_bitmap() 118 retval = read_block_bitmap(sb, bitmap, block_group, in __load_block_bitmap() 119 block_group); in __load_block_bitmap() 122 return block_group; in __load_block_bitmap() 128 unsigned int block_group) in load_block_bitmap() argument 132 slot = __load_block_bitmap(sb, bitmap, block_group); in load_block_bitmap() [all …]
|
/fs/ext2/ |
D | balloc.c | 39 unsigned int block_group, in ext2_get_group_desc() argument 47 if (block_group >= sbi->s_groups_count) { in ext2_get_group_desc() 51 block_group, sbi->s_groups_count); in ext2_get_group_desc() 56 group_desc = block_group >> EXT2_DESC_PER_BLOCK_BITS(sb); in ext2_get_group_desc() 57 offset = block_group & (EXT2_DESC_PER_BLOCK(sb) - 1); in ext2_get_group_desc() 62 block_group, group_desc, offset); in ext2_get_group_desc() 74 unsigned int block_group, in ext2_valid_block_bitmap() argument 82 group_first_block = ext2_group_first_block_no(sb, block_group); in ext2_valid_block_bitmap() 112 block_group, bitmap_blk); in ext2_valid_block_bitmap() 123 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 140 block_group = (ino - 1) / EXT2_INODES_PER_GROUP(sb); in ext2_free_inode() 143 bitmap_bh = read_inode_bitmap(sb, block_group); in ext2_free_inode() 148 if (!ext2_clear_bit_atomic(sb_bgl_lock(EXT2_SB(sb), block_group), in ext2_free_inode() 153 ext2_release_inode(sb, block_group, is_directory); in ext2_free_inode() 175 unsigned long block_group; in ext2_preread_inode() local 187 block_group = (inode->i_ino - 1) / EXT2_INODES_PER_GROUP(inode->i_sb); in ext2_preread_inode() [all …]
|
D | ext2.h | 99 unsigned int block_group,
|
D | inode.c | 1116 unsigned long block_group; in ext2_get_inode() local 1126 block_group = (ino - 1) / EXT2_INODES_PER_GROUP(sb); in ext2_get_inode() 1127 gdp = ext2_get_group_desc(sb, block_group, NULL); in ext2_get_inode()
|
/fs/ext3/ |
D | ialloc.c | 54 read_inode_bitmap(struct super_block * sb, unsigned long block_group) in read_inode_bitmap() argument 59 desc = ext3_get_group_desc(sb, block_group, NULL); in read_inode_bitmap() 68 block_group, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap() 96 unsigned long block_group; in ext3_free_inode() local 142 block_group = (ino - 1) / EXT3_INODES_PER_GROUP(sb); in ext3_free_inode() 144 bitmap_bh = read_inode_bitmap(sb, block_group); in ext3_free_inode() 154 if (!ext3_clear_bit_atomic(sb_bgl_lock(sbi, block_group), in ext3_free_inode() 159 gdp = ext3_get_group_desc (sb, block_group, &bh2); in ext3_free_inode() 166 spin_lock(sb_bgl_lock(sbi, block_group)); in ext3_free_inode() 170 spin_unlock(sb_bgl_lock(sbi, block_group)); in ext3_free_inode() [all …]
|
D | balloc.c | 49 unsigned int block_group, in ext3_get_group_desc() argument 57 if (block_group >= sbi->s_groups_count) { in ext3_get_group_desc() 61 block_group, sbi->s_groups_count); in ext3_get_group_desc() 67 group_desc = block_group >> EXT3_DESC_PER_BLOCK_BITS(sb); in ext3_get_group_desc() 68 offset = block_group & (EXT3_DESC_PER_BLOCK(sb) - 1); in ext3_get_group_desc() 73 block_group, group_desc, offset); in ext3_get_group_desc() 85 unsigned int block_group, in ext3_valid_block_bitmap() argument 93 group_first_block = ext3_group_first_block_no(sb, block_group); in ext3_valid_block_bitmap() 123 block_group, bitmap_blk); in ext3_valid_block_bitmap() 138 read_block_bitmap(struct super_block *sb, unsigned int block_group) in read_block_bitmap() argument [all …]
|
D | inode.c | 2500 unsigned long block_group; in ext3_get_inode_block() local 2514 block_group = (ino - 1) / EXT3_INODES_PER_GROUP(sb); in ext3_get_inode_block() 2515 gdp = ext3_get_group_desc(sb, block_group, NULL); in ext3_get_inode_block() 2526 iloc->block_group = block_group; in ext3_get_inode_block() 2583 int block_group; in __ext3_get_inode_loc() local 2586 block_group = (inode->i_ino - 1) / in __ext3_get_inode_loc() 2596 block_group, NULL); in __ext3_get_inode_loc() 2776 ei->i_block_group = iloc.block_group; in ext3_iget()
|