Lines Matching refs:gdp
244 struct ext4_group_desc *gdp; in ext4_free_inode() local
309 gdp = ext4_get_group_desc(sb, block_group, &bh2); in ext4_free_inode()
310 if (gdp) { in ext4_free_inode()
322 count = ext4_free_inodes_count(sb, gdp) + 1; in ext4_free_inode()
323 ext4_free_inodes_set(sb, gdp, count); in ext4_free_inode()
325 count = ext4_used_dirs_count(sb, gdp) - 1; in ext4_free_inode()
326 ext4_used_dirs_set(sb, gdp, count); in ext4_free_inode()
330 ext4_inode_bitmap_csum_set(sb, block_group, gdp, bitmap_bh, in ext4_free_inode()
332 ext4_group_desc_csum_set(sb, block_group, gdp); in ext4_free_inode()
676 struct ext4_group_desc *gdp; in recently_deleted() local
684 gdp = ext4_get_group_desc(sb, group, NULL); in recently_deleted()
685 if (unlikely(!gdp)) in recently_deleted()
688 bh = sb_find_get_block(sb, ext4_inode_table(sb, gdp) + in recently_deleted()
755 struct ext4_group_desc *gdp; in ext4_mark_inode_used() local
774 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in ext4_mark_inode_used()
775 if (!gdp || !group_desc_bh) { in ext4_mark_inode_used()
796 gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT)) { in ext4_mark_inode_used()
812 (gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT))) { in ext4_mark_inode_used()
813 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_BLOCK_UNINIT); in ext4_mark_inode_used()
814 ext4_free_group_clusters_set(sb, gdp, in ext4_mark_inode_used()
815 ext4_free_clusters_after_init(sb, group, gdp)); in ext4_mark_inode_used()
816 ext4_block_bitmap_csum_set(sb, group, gdp, in ext4_mark_inode_used()
818 ext4_group_desc_csum_set(sb, group, gdp); in ext4_mark_inode_used()
835 ext4_itable_unused_count(sb, gdp); in ext4_mark_inode_used()
836 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT)) { in ext4_mark_inode_used()
837 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_INODE_UNINIT); in ext4_mark_inode_used()
847 ext4_itable_unused_set(sb, gdp, in ext4_mark_inode_used()
853 ext4_free_inodes_set(sb, gdp, ext4_free_inodes_count(sb, gdp) - 1); in ext4_mark_inode_used()
855 ext4_inode_bitmap_csum_set(sb, group, gdp, inode_bitmap_bh, in ext4_mark_inode_used()
857 ext4_group_desc_csum_set(sb, group, gdp); in ext4_mark_inode_used()
937 struct ext4_group_desc *gdp = NULL; in __ext4_new_inode() local
1034 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in __ext4_new_inode()
1035 if (!gdp) in __ext4_new_inode()
1041 if (ext4_free_inodes_count(sb, gdp) == 0) in __ext4_new_inode()
1141 gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT)) { in __ext4_new_inode()
1164 (gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT))) { in __ext4_new_inode()
1165 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_BLOCK_UNINIT); in __ext4_new_inode()
1166 ext4_free_group_clusters_set(sb, gdp, in __ext4_new_inode()
1167 ext4_free_clusters_after_init(sb, group, gdp)); in __ext4_new_inode()
1168 ext4_block_bitmap_csum_set(sb, group, gdp, in __ext4_new_inode()
1170 ext4_group_desc_csum_set(sb, group, gdp); in __ext4_new_inode()
1195 ext4_itable_unused_count(sb, gdp); in __ext4_new_inode()
1196 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT)) { in __ext4_new_inode()
1197 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_INODE_UNINIT); in __ext4_new_inode()
1206 ext4_itable_unused_set(sb, gdp, in __ext4_new_inode()
1214 ext4_free_inodes_set(sb, gdp, ext4_free_inodes_count(sb, gdp) - 1); in __ext4_new_inode()
1216 ext4_used_dirs_set(sb, gdp, ext4_used_dirs_count(sb, gdp) + 1); in __ext4_new_inode()
1225 ext4_inode_bitmap_csum_set(sb, group, gdp, inode_bitmap_bh, in __ext4_new_inode()
1227 ext4_group_desc_csum_set(sb, group, gdp); in __ext4_new_inode()
1442 struct ext4_group_desc *gdp; in ext4_count_free_inodes() local
1452 gdp = NULL; in ext4_count_free_inodes()
1454 gdp = ext4_get_group_desc(sb, i, NULL); in ext4_count_free_inodes()
1455 if (!gdp) in ext4_count_free_inodes()
1457 desc_count += ext4_free_inodes_count(sb, gdp); in ext4_count_free_inodes()
1468 (unsigned long) i, ext4_free_inodes_count(sb, gdp), x); in ext4_count_free_inodes()
1479 gdp = ext4_get_group_desc(sb, i, NULL); in ext4_count_free_inodes()
1480 if (!gdp) in ext4_count_free_inodes()
1482 desc_count += ext4_free_inodes_count(sb, gdp); in ext4_count_free_inodes()
1496 struct ext4_group_desc *gdp = ext4_get_group_desc(sb, i, NULL); in ext4_count_dirs() local
1497 if (!gdp) in ext4_count_dirs()
1499 count += ext4_used_dirs_count(sb, gdp); in ext4_count_dirs()
1517 struct ext4_group_desc *gdp = NULL; in ext4_init_inode_table() local
1530 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in ext4_init_inode_table()
1531 if (!gdp) in ext4_init_inode_table()
1538 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_ZEROED)) in ext4_init_inode_table()
1553 if (!(gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT))) { in ext4_init_inode_table()
1555 ext4_itable_unused_count(sb, gdp); in ext4_init_inode_table()
1564 ext4_itable_unused_count(sb, gdp)); in ext4_init_inode_table()
1579 group, ext4_itable_unused_count(sb, gdp), in ext4_init_inode_table()
1586 blk = ext4_inode_table(sb, gdp) + used_blks; in ext4_init_inode_table()
1613 gdp->bg_flags |= cpu_to_le16(EXT4_BG_INODE_ZEROED); in ext4_init_inode_table()
1614 ext4_group_desc_csum_set(sb, group, gdp); in ext4_init_inode_table()