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()
331 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()
757 struct ext4_group_desc *gdp; in ext4_mark_inode_used() local
776 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in ext4_mark_inode_used()
777 if (!gdp) { in ext4_mark_inode_used()
798 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 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_BLOCK_UNINIT); in ext4_mark_inode_used()
816 ext4_free_group_clusters_set(sb, gdp, in ext4_mark_inode_used()
817 ext4_free_clusters_after_init(sb, group, gdp)); in ext4_mark_inode_used()
818 ext4_block_bitmap_csum_set(sb, gdp, block_bitmap_bh); 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, gdp, inode_bitmap_bh); in ext4_mark_inode_used()
857 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
1036 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in __ext4_new_inode()
1037 if (!gdp) in __ext4_new_inode()
1043 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, gdp, block_bitmap_bh); in __ext4_new_inode()
1169 ext4_group_desc_csum_set(sb, group, gdp); in __ext4_new_inode()
1198 ext4_itable_unused_count(sb, gdp); in __ext4_new_inode()
1199 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT)) { in __ext4_new_inode()
1200 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_INODE_UNINIT); in __ext4_new_inode()
1209 ext4_itable_unused_set(sb, gdp, in __ext4_new_inode()
1217 ext4_free_inodes_set(sb, gdp, ext4_free_inodes_count(sb, gdp) - 1); in __ext4_new_inode()
1219 ext4_used_dirs_set(sb, gdp, ext4_used_dirs_count(sb, gdp) + 1); in __ext4_new_inode()
1228 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()
1441 struct ext4_group_desc *gdp; in ext4_count_free_inodes() local
1451 gdp = NULL; in ext4_count_free_inodes()
1453 gdp = ext4_get_group_desc(sb, i, NULL); in ext4_count_free_inodes()
1454 if (!gdp) in ext4_count_free_inodes()
1456 desc_count += ext4_free_inodes_count(sb, gdp); in ext4_count_free_inodes()
1467 (unsigned long) i, ext4_free_inodes_count(sb, gdp), x); in ext4_count_free_inodes()
1478 gdp = ext4_get_group_desc(sb, i, NULL); in ext4_count_free_inodes()
1479 if (!gdp) in ext4_count_free_inodes()
1481 desc_count += ext4_free_inodes_count(sb, gdp); in ext4_count_free_inodes()
1495 struct ext4_group_desc *gdp = ext4_get_group_desc(sb, i, NULL); in ext4_count_dirs() local
1496 if (!gdp) in ext4_count_dirs()
1498 count += ext4_used_dirs_count(sb, gdp); in ext4_count_dirs()
1516 struct ext4_group_desc *gdp = NULL; in ext4_init_inode_table() local
1523 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in ext4_init_inode_table()
1524 if (!gdp || !grp) in ext4_init_inode_table()
1531 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_ZEROED)) in ext4_init_inode_table()
1546 if (!(gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT))) { in ext4_init_inode_table()
1548 ext4_itable_unused_count(sb, gdp); in ext4_init_inode_table()
1557 ext4_itable_unused_count(sb, gdp)); in ext4_init_inode_table()
1572 group, ext4_itable_unused_count(sb, gdp), in ext4_init_inode_table()
1579 blk = ext4_inode_table(sb, gdp) + used_blks; in ext4_init_inode_table()
1606 gdp->bg_flags |= cpu_to_le16(EXT4_BG_INODE_ZEROED); in ext4_init_inode_table()
1607 ext4_group_desc_csum_set(sb, group, gdp); in ext4_init_inode_table()