Lines Matching refs:bgd
974 struct ext2_block_group *bgd = NULL; in ext4fs_get_new_blk_no() local
975 bgd = ext4fs_get_group_descriptor(fs, i); in ext4fs_get_new_blk_no()
976 if (ext4fs_bg_get_free_blocks(bgd, fs)) { in ext4fs_get_new_blk_no()
977 uint16_t bg_flags = ext4fs_bg_get_flags(bgd); in ext4fs_get_new_blk_no()
979 ext4fs_bg_get_block_id(bgd, fs); in ext4fs_get_new_blk_no()
986 ext4fs_bg_set_flags(bgd, bg_flags); in ext4fs_get_new_blk_no()
996 ext4fs_bg_free_blocks_dec(bgd, fs); in ext4fs_get_new_blk_no()
1032 struct ext2_block_group *bgd = NULL; in ext4fs_get_new_blk_no() local
1033 bgd = ext4fs_get_group_descriptor(fs, bg_idx); in ext4fs_get_new_blk_no()
1034 if (ext4fs_bg_get_free_blocks(bgd, fs) == 0) { in ext4fs_get_new_blk_no()
1042 uint16_t bg_flags = ext4fs_bg_get_flags(bgd); in ext4fs_get_new_blk_no()
1043 uint64_t b_bitmap_blk = ext4fs_bg_get_block_id(bgd, fs); in ext4fs_get_new_blk_no()
1049 ext4fs_bg_set_flags(bgd, bg_flags); in ext4fs_get_new_blk_no()
1071 ext4fs_bg_free_blocks_dec(bgd, fs); in ext4fs_get_new_blk_no()
1105 struct ext2_block_group *bgd = NULL; in ext4fs_get_new_inode_no() local
1106 bgd = ext4fs_get_group_descriptor(fs, i); in ext4fs_get_new_inode_no()
1107 free_inodes = ext4fs_bg_get_free_inodes(bgd, fs); in ext4fs_get_new_inode_no()
1109 uint16_t bg_flags = ext4fs_bg_get_flags(bgd); in ext4fs_get_new_inode_no()
1111 ext4fs_bg_get_inode_id(bgd, fs); in ext4fs_get_new_inode_no()
1113 bgd->bg_itable_unused = free_inodes; in ext4fs_get_new_inode_no()
1118 ext4fs_bg_set_flags(bgd, bg_flags); in ext4fs_get_new_inode_no()
1130 ext4fs_bg_free_inodes_dec(bgd, fs); in ext4fs_get_new_inode_no()
1132 ext4fs_bg_itable_unused_dec(bgd, fs); in ext4fs_get_new_inode_no()
1153 struct ext2_block_group *bgd = in ext4fs_get_new_inode_no() local
1155 uint16_t bg_flags = ext4fs_bg_get_flags(bgd); in ext4fs_get_new_inode_no()
1156 uint64_t i_bitmap_blk = ext4fs_bg_get_inode_id(bgd, fs); in ext4fs_get_new_inode_no()
1162 ext4fs_bg_set_flags(bgd, bg_flags); in ext4fs_get_new_inode_no()
1182 le32_to_cpu(bgd->inode_id))) in ext4fs_get_new_inode_no()
1186 ext4fs_bg_free_inodes_dec(bgd, fs); in ext4fs_get_new_inode_no()
1188 bgd->bg_itable_unused = bgd->free_inodes; in ext4fs_get_new_inode_no()