Lines Matching refs:bgd
978 struct ext2_block_group *bgd = NULL; in ext4fs_get_new_blk_no() local
979 bgd = ext4fs_get_group_descriptor(fs, i); in ext4fs_get_new_blk_no()
980 if (ext4fs_bg_get_free_blocks(bgd, fs)) { in ext4fs_get_new_blk_no()
981 uint16_t bg_flags = ext4fs_bg_get_flags(bgd); in ext4fs_get_new_blk_no()
983 ext4fs_bg_get_block_id(bgd, fs); in ext4fs_get_new_blk_no()
990 ext4fs_bg_set_flags(bgd, bg_flags); in ext4fs_get_new_blk_no()
1000 ext4fs_bg_free_blocks_dec(bgd, fs); in ext4fs_get_new_blk_no()
1036 struct ext2_block_group *bgd = NULL; in ext4fs_get_new_blk_no() local
1037 bgd = ext4fs_get_group_descriptor(fs, bg_idx); in ext4fs_get_new_blk_no()
1038 if (ext4fs_bg_get_free_blocks(bgd, fs) == 0) { in ext4fs_get_new_blk_no()
1046 uint16_t bg_flags = ext4fs_bg_get_flags(bgd); in ext4fs_get_new_blk_no()
1047 uint64_t b_bitmap_blk = ext4fs_bg_get_block_id(bgd, fs); in ext4fs_get_new_blk_no()
1053 ext4fs_bg_set_flags(bgd, bg_flags); in ext4fs_get_new_blk_no()
1075 ext4fs_bg_free_blocks_dec(bgd, fs); in ext4fs_get_new_blk_no()
1109 struct ext2_block_group *bgd = NULL; in ext4fs_get_new_inode_no() local
1110 bgd = ext4fs_get_group_descriptor(fs, i); in ext4fs_get_new_inode_no()
1111 free_inodes = ext4fs_bg_get_free_inodes(bgd, fs); in ext4fs_get_new_inode_no()
1113 uint16_t bg_flags = ext4fs_bg_get_flags(bgd); in ext4fs_get_new_inode_no()
1115 ext4fs_bg_get_inode_id(bgd, fs); in ext4fs_get_new_inode_no()
1117 bgd->bg_itable_unused = free_inodes; in ext4fs_get_new_inode_no()
1122 ext4fs_bg_set_flags(bgd, bg_flags); in ext4fs_get_new_inode_no()
1134 ext4fs_bg_free_inodes_dec(bgd, fs); in ext4fs_get_new_inode_no()
1136 ext4fs_bg_itable_unused_dec(bgd, fs); in ext4fs_get_new_inode_no()
1157 struct ext2_block_group *bgd = in ext4fs_get_new_inode_no() local
1159 uint16_t bg_flags = ext4fs_bg_get_flags(bgd); in ext4fs_get_new_inode_no()
1160 uint64_t i_bitmap_blk = ext4fs_bg_get_inode_id(bgd, fs); in ext4fs_get_new_inode_no()
1166 ext4fs_bg_set_flags(bgd, bg_flags); in ext4fs_get_new_inode_no()
1186 le32_to_cpu(bgd->inode_id))) in ext4fs_get_new_inode_no()
1190 ext4fs_bg_free_inodes_dec(bgd, fs); in ext4fs_get_new_inode_no()
1192 bgd->bg_itable_unused = bgd->free_inodes; in ext4fs_get_new_inode_no()