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, 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, gdp, block_bitmap_bh); in ext4_mark_inode_used()
817 ext4_group_desc_csum_set(sb, group, gdp); in ext4_mark_inode_used()
834 ext4_itable_unused_count(sb, gdp); in ext4_mark_inode_used()
835 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT)) { in ext4_mark_inode_used()
836 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_INODE_UNINIT); in ext4_mark_inode_used()
846 ext4_itable_unused_set(sb, gdp, in ext4_mark_inode_used()
852 ext4_free_inodes_set(sb, gdp, ext4_free_inodes_count(sb, gdp) - 1); in ext4_mark_inode_used()
854 ext4_inode_bitmap_csum_set(sb, gdp, inode_bitmap_bh, in ext4_mark_inode_used()
856 ext4_group_desc_csum_set(sb, group, gdp); in ext4_mark_inode_used()
936 struct ext4_group_desc *gdp = NULL; in __ext4_new_inode() local
1033 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in __ext4_new_inode()
1034 if (!gdp) in __ext4_new_inode()
1040 if (ext4_free_inodes_count(sb, gdp) == 0) in __ext4_new_inode()
1140 gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT)) { in __ext4_new_inode()
1163 (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 ext4_free_group_clusters_set(sb, gdp, in __ext4_new_inode()
1166 ext4_free_clusters_after_init(sb, group, gdp)); in __ext4_new_inode()
1167 ext4_block_bitmap_csum_set(sb, gdp, block_bitmap_bh); in __ext4_new_inode()
1168 ext4_group_desc_csum_set(sb, group, gdp); in __ext4_new_inode()
1197 ext4_itable_unused_count(sb, gdp); in __ext4_new_inode()
1198 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT)) { in __ext4_new_inode()
1199 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_INODE_UNINIT); in __ext4_new_inode()
1208 ext4_itable_unused_set(sb, gdp, in __ext4_new_inode()
1216 ext4_free_inodes_set(sb, gdp, ext4_free_inodes_count(sb, gdp) - 1); in __ext4_new_inode()
1218 ext4_used_dirs_set(sb, gdp, ext4_used_dirs_count(sb, gdp) + 1); in __ext4_new_inode()
1227 ext4_inode_bitmap_csum_set(sb, gdp, inode_bitmap_bh, in __ext4_new_inode()
1229 ext4_group_desc_csum_set(sb, group, gdp); in __ext4_new_inode()
1444 struct ext4_group_desc *gdp; in ext4_count_free_inodes() local
1454 gdp = NULL; in ext4_count_free_inodes()
1456 gdp = ext4_get_group_desc(sb, i, NULL); in ext4_count_free_inodes()
1457 if (!gdp) in ext4_count_free_inodes()
1459 desc_count += ext4_free_inodes_count(sb, gdp); in ext4_count_free_inodes()
1470 (unsigned long) i, ext4_free_inodes_count(sb, gdp), x); in ext4_count_free_inodes()
1481 gdp = ext4_get_group_desc(sb, i, NULL); in ext4_count_free_inodes()
1482 if (!gdp) in ext4_count_free_inodes()
1484 desc_count += ext4_free_inodes_count(sb, gdp); in ext4_count_free_inodes()
1498 struct ext4_group_desc *gdp = ext4_get_group_desc(sb, i, NULL); in ext4_count_dirs() local
1499 if (!gdp) in ext4_count_dirs()
1501 count += ext4_used_dirs_count(sb, gdp); in ext4_count_dirs()
1519 struct ext4_group_desc *gdp = NULL; in ext4_init_inode_table() local
1526 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in ext4_init_inode_table()
1527 if (!gdp || !grp) in ext4_init_inode_table()
1534 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_ZEROED)) in ext4_init_inode_table()
1549 if (!(gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT))) { in ext4_init_inode_table()
1551 ext4_itable_unused_count(sb, gdp); in ext4_init_inode_table()
1560 ext4_itable_unused_count(sb, gdp)); in ext4_init_inode_table()
1575 group, ext4_itable_unused_count(sb, gdp), in ext4_init_inode_table()
1582 blk = ext4_inode_table(sb, gdp) + used_blks; in ext4_init_inode_table()
1609 gdp->bg_flags |= cpu_to_le16(EXT4_BG_INODE_ZEROED); in ext4_init_inode_table()
1610 ext4_group_desc_csum_set(sb, group, gdp); in ext4_init_inode_table()