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()
677 struct ext4_group_desc *gdp; in recently_deleted() local
685 gdp = ext4_get_group_desc(sb, group, NULL); in recently_deleted()
686 if (unlikely(!gdp)) in recently_deleted()
689 bh = sb_find_get_block(sb, ext4_inode_table(sb, gdp) + in recently_deleted()
756 struct ext4_group_desc *gdp; in ext4_mark_inode_used() local
775 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in ext4_mark_inode_used()
776 if (!gdp || !group_desc_bh) { in ext4_mark_inode_used()
797 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 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_BLOCK_UNINIT); in ext4_mark_inode_used()
815 ext4_free_group_clusters_set(sb, gdp, in ext4_mark_inode_used()
816 ext4_free_clusters_after_init(sb, group, gdp)); in ext4_mark_inode_used()
817 ext4_block_bitmap_csum_set(sb, group, gdp, in ext4_mark_inode_used()
819 ext4_group_desc_csum_set(sb, group, gdp); in ext4_mark_inode_used()
836 ext4_itable_unused_count(sb, gdp); in ext4_mark_inode_used()
837 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT)) { in ext4_mark_inode_used()
838 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_INODE_UNINIT); in ext4_mark_inode_used()
848 ext4_itable_unused_set(sb, gdp, in ext4_mark_inode_used()
854 ext4_free_inodes_set(sb, gdp, ext4_free_inodes_count(sb, gdp) - 1); in ext4_mark_inode_used()
856 ext4_inode_bitmap_csum_set(sb, group, gdp, inode_bitmap_bh, in ext4_mark_inode_used()
858 ext4_group_desc_csum_set(sb, group, gdp); in ext4_mark_inode_used()
938 struct ext4_group_desc *gdp = NULL; in __ext4_new_inode() local
1035 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in __ext4_new_inode()
1036 if (!gdp) in __ext4_new_inode()
1042 if (ext4_free_inodes_count(sb, gdp) == 0) in __ext4_new_inode()
1142 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 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_BLOCK_UNINIT); in __ext4_new_inode()
1167 ext4_free_group_clusters_set(sb, gdp, in __ext4_new_inode()
1168 ext4_free_clusters_after_init(sb, group, gdp)); in __ext4_new_inode()
1169 ext4_block_bitmap_csum_set(sb, group, gdp, in __ext4_new_inode()
1171 ext4_group_desc_csum_set(sb, group, gdp); in __ext4_new_inode()
1196 ext4_itable_unused_count(sb, gdp); in __ext4_new_inode()
1197 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT)) { in __ext4_new_inode()
1198 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_INODE_UNINIT); in __ext4_new_inode()
1207 ext4_itable_unused_set(sb, gdp, in __ext4_new_inode()
1215 ext4_free_inodes_set(sb, gdp, ext4_free_inodes_count(sb, gdp) - 1); in __ext4_new_inode()
1217 ext4_used_dirs_set(sb, gdp, ext4_used_dirs_count(sb, gdp) + 1); in __ext4_new_inode()
1226 ext4_inode_bitmap_csum_set(sb, group, gdp, inode_bitmap_bh, in __ext4_new_inode()
1228 ext4_group_desc_csum_set(sb, group, gdp); in __ext4_new_inode()
1443 struct ext4_group_desc *gdp; in ext4_count_free_inodes() local
1453 gdp = NULL; in ext4_count_free_inodes()
1455 gdp = ext4_get_group_desc(sb, i, NULL); in ext4_count_free_inodes()
1456 if (!gdp) in ext4_count_free_inodes()
1458 desc_count += ext4_free_inodes_count(sb, gdp); in ext4_count_free_inodes()
1469 (unsigned long) i, ext4_free_inodes_count(sb, gdp), x); in ext4_count_free_inodes()
1480 gdp = ext4_get_group_desc(sb, i, NULL); in ext4_count_free_inodes()
1481 if (!gdp) in ext4_count_free_inodes()
1483 desc_count += ext4_free_inodes_count(sb, gdp); in ext4_count_free_inodes()
1497 struct ext4_group_desc *gdp = ext4_get_group_desc(sb, i, NULL); in ext4_count_dirs() local
1498 if (!gdp) in ext4_count_dirs()
1500 count += ext4_used_dirs_count(sb, gdp); in ext4_count_dirs()
1518 struct ext4_group_desc *gdp = NULL; in ext4_init_inode_table() local
1531 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in ext4_init_inode_table()
1532 if (!gdp) in ext4_init_inode_table()
1539 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_ZEROED)) in ext4_init_inode_table()
1554 if (!(gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT))) { in ext4_init_inode_table()
1556 ext4_itable_unused_count(sb, gdp); in ext4_init_inode_table()
1565 ext4_itable_unused_count(sb, gdp)); in ext4_init_inode_table()
1580 group, ext4_itable_unused_count(sb, gdp), in ext4_init_inode_table()
1587 blk = ext4_inode_table(sb, gdp) + used_blks; in ext4_init_inode_table()
1614 gdp->bg_flags |= cpu_to_le16(EXT4_BG_INODE_ZEROED); in ext4_init_inode_table()
1615 ext4_group_desc_csum_set(sb, group, gdp); in ext4_init_inode_table()