Lines Matching refs:bgd
975 struct ext2_block_group *bgd = NULL; in ext4fs_get_new_blk_no() local
976 bgd = ext4fs_get_group_descriptor(fs, i); in ext4fs_get_new_blk_no()
977 if (ext4fs_bg_get_free_blocks(bgd, fs)) { in ext4fs_get_new_blk_no()
978 uint16_t bg_flags = ext4fs_bg_get_flags(bgd); in ext4fs_get_new_blk_no()
980 ext4fs_bg_get_block_id(bgd, fs); in ext4fs_get_new_blk_no()
987 ext4fs_bg_set_flags(bgd, bg_flags); in ext4fs_get_new_blk_no()
997 ext4fs_bg_free_blocks_dec(bgd, fs); in ext4fs_get_new_blk_no()
1033 struct ext2_block_group *bgd = NULL; in ext4fs_get_new_blk_no() local
1034 bgd = ext4fs_get_group_descriptor(fs, bg_idx); in ext4fs_get_new_blk_no()
1035 if (ext4fs_bg_get_free_blocks(bgd, fs) == 0) { in ext4fs_get_new_blk_no()
1043 uint16_t bg_flags = ext4fs_bg_get_flags(bgd); in ext4fs_get_new_blk_no()
1044 uint64_t b_bitmap_blk = ext4fs_bg_get_block_id(bgd, fs); in ext4fs_get_new_blk_no()
1050 ext4fs_bg_set_flags(bgd, bg_flags); in ext4fs_get_new_blk_no()
1072 ext4fs_bg_free_blocks_dec(bgd, fs); in ext4fs_get_new_blk_no()
1106 struct ext2_block_group *bgd = NULL; in ext4fs_get_new_inode_no() local
1107 bgd = ext4fs_get_group_descriptor(fs, i); in ext4fs_get_new_inode_no()
1108 free_inodes = ext4fs_bg_get_free_inodes(bgd, fs); in ext4fs_get_new_inode_no()
1110 uint16_t bg_flags = ext4fs_bg_get_flags(bgd); in ext4fs_get_new_inode_no()
1112 ext4fs_bg_get_inode_id(bgd, fs); in ext4fs_get_new_inode_no()
1114 bgd->bg_itable_unused = free_inodes; in ext4fs_get_new_inode_no()
1119 ext4fs_bg_set_flags(bgd, bg_flags); in ext4fs_get_new_inode_no()
1131 ext4fs_bg_free_inodes_dec(bgd, fs); in ext4fs_get_new_inode_no()
1133 ext4fs_bg_itable_unused_dec(bgd, fs); in ext4fs_get_new_inode_no()
1154 struct ext2_block_group *bgd = in ext4fs_get_new_inode_no() local
1156 uint16_t bg_flags = ext4fs_bg_get_flags(bgd); in ext4fs_get_new_inode_no()
1157 uint64_t i_bitmap_blk = ext4fs_bg_get_inode_id(bgd, fs); in ext4fs_get_new_inode_no()
1163 ext4fs_bg_set_flags(bgd, bg_flags); in ext4fs_get_new_inode_no()
1183 le32_to_cpu(bgd->inode_id))) in ext4fs_get_new_inode_no()
1187 ext4fs_bg_free_inodes_dec(bgd, fs); in ext4fs_get_new_inode_no()
1189 bgd->bg_itable_unused = bgd->free_inodes; in ext4fs_get_new_inode_no()