/linux-2.6.39/fs/btrfs/ |
D | free-space-cache.c | 33 *block_group); 34 static int link_free_space(struct btrfs_block_group_cache *block_group, 39 *block_group, struct btrfs_path *path) in lookup_free_space_inode() 49 spin_lock(&block_group->lock); in lookup_free_space_inode() 50 if (block_group->inode) in lookup_free_space_inode() 51 inode = igrab(block_group->inode); in lookup_free_space_inode() 52 spin_unlock(&block_group->lock); in lookup_free_space_inode() 57 key.offset = block_group->key.objectid; in lookup_free_space_inode() 87 spin_lock(&block_group->lock); in lookup_free_space_inode() 89 block_group->inode = igrab(inode); in lookup_free_space_inode() [all …]
|
D | free-space-cache.h | 32 *block_group, struct btrfs_path *path); 35 struct btrfs_block_group_cache *block_group, 43 struct btrfs_block_group_cache *block_group); 46 struct btrfs_block_group_cache *block_group, 48 int btrfs_add_free_space(struct btrfs_block_group_cache *block_group, 50 int btrfs_remove_free_space(struct btrfs_block_group_cache *block_group, 53 *block_group); 54 u64 btrfs_find_space_for_alloc(struct btrfs_block_group_cache *block_group, 56 void btrfs_dump_free_space(struct btrfs_block_group_cache *block_group, 58 u64 btrfs_block_group_free_space(struct btrfs_block_group_cache *block_group); [all …]
|
D | extent-tree.c | 117 struct btrfs_block_group_cache *block_group) in btrfs_add_block_group_cache() argument 130 if (block_group->key.objectid < cache->key.objectid) { in btrfs_add_block_group_cache() 132 } else if (block_group->key.objectid > cache->key.objectid) { in btrfs_add_block_group_cache() 140 rb_link_node(&block_group->cache_node, parent, p); in btrfs_add_block_group_cache() 141 rb_insert_color(&block_group->cache_node, in btrfs_add_block_group_cache() 285 static u64 add_new_free_space(struct btrfs_block_group_cache *block_group, in add_new_free_space() argument 303 ret = btrfs_add_free_space(block_group, start, in add_new_free_space() 315 ret = btrfs_add_free_space(block_group, start, size); in add_new_free_space() 324 struct btrfs_block_group_cache *block_group = data; in caching_kthread() local 325 struct btrfs_fs_info *fs_info = block_group->fs_info; in caching_kthread() [all …]
|
D | transaction.h | 48 u64 block_group; member 72 trans->block_group = BTRFS_I(inode)->block_group; in btrfs_set_trans_block_group() 79 BTRFS_I(inode)->block_group = trans->block_group; in btrfs_update_inode_block_group()
|
D | relocation.c | 157 struct btrfs_block_group_cache *block_group; member 1448 struct btrfs_block_group_cache *block_group) argument 1450 if (bytenr >= block_group->key.objectid && 1451 bytenr < block_group->key.objectid + block_group->key.offset) 1550 if (!in_block_group(bytenr, rc->block_group)) 2622 in_block_group(node->bytenr, rc->block_group)) { 3527 last = rc->block_group->key.objectid + rc->block_group->key.offset; 3637 rc->search_start = rc->block_group->key.objectid; 3794 rc->block_group->flags); 3961 rc->block_group = btrfs_lookup_block_group(fs_info, group_start); [all …]
|
D | btrfs_inode.h | 124 u64 block_group; member
|
D | inode.c | 2550 BTRFS_I(inode)->block_group = btrfs_find_block_group(root, 0, in btrfs_read_locked_inode() 2631 btrfs_set_inode_block_group(leaf, item, BTRFS_I(inode)->block_group); in fill_inode_item() 4568 BTRFS_I(inode)->block_group = in btrfs_new_inode() 4734 BTRFS_I(dir)->block_group, mode, &index); in btrfs_mknod() 4796 BTRFS_I(dir)->block_group, mode, &index); in btrfs_create() 4922 BTRFS_I(dir)->block_group, S_IFDIR | mode, in btrfs_mkdir() 6838 struct btrfs_block_group_cache *block_group; in btrfs_destroy_inode() local 6840 block_group = btrfs_lookup_block_group(root->fs_info, in btrfs_destroy_inode() 6841 BTRFS_I(inode)->block_group); in btrfs_destroy_inode() 6842 if (block_group && block_group->inode == inode) { in btrfs_destroy_inode() [all …]
|
D | ioctl.c | 417 BTRFS_I(dir)->block_group); in create_subvol() 2277 struct btrfs_block_group_cache *block_group; in get_block_group_info() local 2282 list_for_each_entry(block_group, groups_list, list) { in get_block_group_info() 2283 space->flags = block_group->flags; in get_block_group_info() 2284 space->total_bytes += block_group->key.offset; in get_block_group_info() 2286 btrfs_block_group_used(&block_group->item); in get_block_group_info()
|
/linux-2.6.39/fs/ext4/ |
D | balloc.c | 49 ext4_group_t block_group) in ext4_block_in_group() argument 53 if (actual_group == block_group) in ext4_block_in_group() 59 ext4_group_t block_group, in ext4_group_used_meta_blocks() argument 69 block_group)) in ext4_group_used_meta_blocks() 73 block_group)) in ext4_group_used_meta_blocks() 79 if (!ext4_block_in_group(sb, tmp, block_group)) in ext4_group_used_meta_blocks() 89 ext4_group_t block_group, struct ext4_group_desc *gdp) in ext4_init_block_bitmap() argument 101 if (!ext4_group_desc_csum_verify(sbi, block_group, gdp)) { in ext4_init_block_bitmap() 103 block_group); in ext4_init_block_bitmap() 114 bit_max = ext4_bg_has_super(sb, block_group); in ext4_init_block_bitmap() [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() 102 ext4_read_inode_bitmap(struct super_block *sb, ext4_group_t block_group) in ext4_read_inode_bitmap() argument 108 desc = ext4_get_group_desc(sb, block_group, NULL); in ext4_read_inode_bitmap() 117 block_group, bitmap_blk); in ext4_read_inode_bitmap() 129 ext4_lock_group(sb, block_group); in ext4_read_inode_bitmap() 131 ext4_init_inode_bitmap(sb, bh, block_group, desc); in ext4_read_inode_bitmap() 134 ext4_unlock_group(sb, block_group); in ext4_read_inode_bitmap() 138 ext4_unlock_group(sb, block_group); in ext4_read_inode_bitmap() [all …]
|
D | mballoc.c | 2643 ext4_group_t block_group, ext4_grpblk_t block, int count) in ext4_issue_discard() argument 2647 discard_block = block + ext4_group_first_block_no(sb, block_group); in ext4_issue_discard() 4523 ext4_group_t block_group; in ext4_free_blocks() local 4576 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); in ext4_free_blocks() 4633 err = ext4_mb_load_buddy(sb, block_group, &e4b); in ext4_free_blocks() 4649 new_entry->group = block_group; in ext4_free_blocks() 4653 ext4_lock_group(sb, block_group); in ext4_free_blocks() [all …]
|
D | ext4.h | 1541 ext4_group_t block_group; member 1648 ext4_group_t block_group, 1652 ext4_group_t block_group); 1918 ext4_group_t block_group) in ext4_flex_group() argument 1920 return block_group >> sbi->s_log_groups_per_flex; in ext4_flex_group()
|
D | inode.c | 497 ext4_group_t block_group; in ext4_find_near() local 514 block_group = ei->i_block_group; in ext4_find_near() 516 block_group &= ~(flex_size-1); in ext4_find_near() 518 block_group++; in ext4_find_near() 520 bg_start = ext4_group_first_block_no(inode->i_sb, block_group); in ext4_find_near() 4612 iloc->block_group = (inode->i_ino - 1) / EXT4_INODES_PER_GROUP(sb); in __ext4_get_inode_loc() 4613 gdp = ext4_get_group_desc(sb, iloc->block_group, NULL); in __ext4_get_inode_loc() 4875 ei->i_block_group = iloc.block_group; in ext4_iget()
|
/linux-2.6.39/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() 62 udf_debug("block_group (%d) > nr_groups (%d)\n", block_group, 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 …]
|
/linux-2.6.39/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 | 95 unsigned int block_group,
|
D | inode.c | 1216 unsigned long block_group; in ext2_get_inode() local 1226 block_group = (ino - 1) / EXT2_INODES_PER_GROUP(sb); in ext2_get_inode() 1227 gdp = ext2_get_group_desc(sb, block_group, NULL); in ext2_get_inode()
|
/linux-2.6.39/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 130 block_group = (ino - 1) / EXT3_INODES_PER_GROUP(sb); in ext3_free_inode() 132 bitmap_bh = read_inode_bitmap(sb, block_group); in ext3_free_inode() 142 if (!ext3_clear_bit_atomic(sb_bgl_lock(sbi, block_group), in ext3_free_inode() 147 gdp = ext3_get_group_desc (sb, block_group, &bh2); in ext3_free_inode() 154 spin_lock(sb_bgl_lock(sbi, block_group)); in ext3_free_inode() 158 spin_unlock(sb_bgl_lock(sbi, block_group)); in ext3_free_inode() [all …]
|
D | balloc.c | 66 unsigned int block_group, in ext3_get_group_desc() argument 74 if (block_group >= sbi->s_groups_count) { in ext3_get_group_desc() 78 block_group, sbi->s_groups_count); in ext3_get_group_desc() 84 group_desc = block_group >> EXT3_DESC_PER_BLOCK_BITS(sb); in ext3_get_group_desc() 85 offset = block_group & (EXT3_DESC_PER_BLOCK(sb) - 1); in ext3_get_group_desc() 90 block_group, group_desc, offset); in ext3_get_group_desc() 102 unsigned int block_group, in ext3_valid_block_bitmap() argument 110 group_first_block = ext3_group_first_block_no(sb, block_group); in ext3_valid_block_bitmap() 140 block_group, bitmap_blk); in ext3_valid_block_bitmap() 155 read_block_bitmap(struct super_block *sb, unsigned int block_group) in read_block_bitmap() argument [all …]
|
D | inode.c | 2613 unsigned long block_group; in ext3_get_inode_block() local 2627 block_group = (ino - 1) / EXT3_INODES_PER_GROUP(sb); in ext3_get_inode_block() 2628 gdp = ext3_get_group_desc(sb, block_group, NULL); in ext3_get_inode_block() 2639 iloc->block_group = block_group; in ext3_get_inode_block() 2696 int block_group; in __ext3_get_inode_loc() local 2699 block_group = (inode->i_ino - 1) / in __ext3_get_inode_loc() 2709 block_group, NULL); in __ext3_get_inode_loc() 2887 ei->i_block_group = iloc.block_group; in ext3_iget()
|
/linux-2.6.39/include/linux/ |
D | blockgroup_lock.h | 57 bgl_lock_ptr(struct blockgroup_lock *bgl, unsigned int block_group) in bgl_lock_ptr() argument 59 return &bgl->locks[(block_group) & (NR_BG_LOCKS-1)].lock; in bgl_lock_ptr()
|
D | ext2_fs_sb.h | 121 sb_bgl_lock(struct ext2_sb_info *sbi, unsigned int block_group) in sb_bgl_lock() argument 123 return bgl_lock_ptr(sbi->s_blockgroup_lock, block_group); in sb_bgl_lock()
|
D | ext3_fs_sb.h | 90 sb_bgl_lock(struct ext3_sb_info *sbi, unsigned int block_group) in sb_bgl_lock() argument 92 return bgl_lock_ptr(sbi->s_blockgroup_lock, block_group); in sb_bgl_lock()
|
D | ext3_fs.h | 800 unsigned long block_group; member 863 unsigned int block_group,
|