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()
691 (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT) || in recently_deleted()
692 ino >= EXT4_INODES_PER_GROUP(sb) - ext4_itable_unused_count(sb, gdp))) in recently_deleted()
695 bh = sb_find_get_block(sb, ext4_inode_table(sb, gdp) + in recently_deleted()
763 struct ext4_group_desc *gdp; in ext4_mark_inode_used() local
782 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in ext4_mark_inode_used()
783 if (!gdp) { in ext4_mark_inode_used()
804 gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT)) { in ext4_mark_inode_used()
820 (gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT))) { in ext4_mark_inode_used()
821 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_BLOCK_UNINIT); in ext4_mark_inode_used()
822 ext4_free_group_clusters_set(sb, gdp, in ext4_mark_inode_used()
823 ext4_free_clusters_after_init(sb, group, gdp)); in ext4_mark_inode_used()
824 ext4_block_bitmap_csum_set(sb, gdp, block_bitmap_bh); in ext4_mark_inode_used()
825 ext4_group_desc_csum_set(sb, group, gdp); in ext4_mark_inode_used()
842 ext4_itable_unused_count(sb, gdp); in ext4_mark_inode_used()
843 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT)) { in ext4_mark_inode_used()
844 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_INODE_UNINIT); in ext4_mark_inode_used()
854 ext4_itable_unused_set(sb, gdp, in ext4_mark_inode_used()
860 ext4_free_inodes_set(sb, gdp, ext4_free_inodes_count(sb, gdp) - 1); in ext4_mark_inode_used()
862 ext4_inode_bitmap_csum_set(sb, gdp, inode_bitmap_bh); in ext4_mark_inode_used()
863 ext4_group_desc_csum_set(sb, group, gdp); in ext4_mark_inode_used()
944 struct ext4_group_desc *gdp = NULL; in __ext4_new_inode() local
1042 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in __ext4_new_inode()
1043 if (!gdp) in __ext4_new_inode()
1049 if (ext4_free_inodes_count(sb, gdp) == 0) in __ext4_new_inode()
1147 gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT)) { in __ext4_new_inode()
1170 (gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT))) { in __ext4_new_inode()
1171 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_BLOCK_UNINIT); in __ext4_new_inode()
1172 ext4_free_group_clusters_set(sb, gdp, in __ext4_new_inode()
1173 ext4_free_clusters_after_init(sb, group, gdp)); in __ext4_new_inode()
1174 ext4_block_bitmap_csum_set(sb, gdp, block_bitmap_bh); in __ext4_new_inode()
1175 ext4_group_desc_csum_set(sb, group, gdp); in __ext4_new_inode()
1204 ext4_itable_unused_count(sb, gdp); in __ext4_new_inode()
1205 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT)) { in __ext4_new_inode()
1206 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_INODE_UNINIT); in __ext4_new_inode()
1215 ext4_itable_unused_set(sb, gdp, in __ext4_new_inode()
1223 ext4_free_inodes_set(sb, gdp, ext4_free_inodes_count(sb, gdp) - 1); in __ext4_new_inode()
1225 ext4_used_dirs_set(sb, gdp, ext4_used_dirs_count(sb, gdp) + 1); in __ext4_new_inode()
1234 ext4_inode_bitmap_csum_set(sb, gdp, inode_bitmap_bh); in __ext4_new_inode()
1235 ext4_group_desc_csum_set(sb, group, gdp); in __ext4_new_inode()
1447 struct ext4_group_desc *gdp; in ext4_count_free_inodes() local
1457 gdp = NULL; in ext4_count_free_inodes()
1459 gdp = ext4_get_group_desc(sb, i, NULL); in ext4_count_free_inodes()
1460 if (!gdp) in ext4_count_free_inodes()
1462 desc_count += ext4_free_inodes_count(sb, gdp); in ext4_count_free_inodes()
1473 (unsigned long) i, ext4_free_inodes_count(sb, gdp), x); in ext4_count_free_inodes()
1484 gdp = ext4_get_group_desc(sb, i, NULL); in ext4_count_free_inodes()
1485 if (!gdp) in ext4_count_free_inodes()
1487 desc_count += ext4_free_inodes_count(sb, gdp); in ext4_count_free_inodes()
1501 struct ext4_group_desc *gdp = ext4_get_group_desc(sb, i, NULL); in ext4_count_dirs() local
1502 if (!gdp) in ext4_count_dirs()
1504 count += ext4_used_dirs_count(sb, gdp); in ext4_count_dirs()
1522 struct ext4_group_desc *gdp = NULL; in ext4_init_inode_table() local
1529 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in ext4_init_inode_table()
1530 if (!gdp || !grp) in ext4_init_inode_table()
1537 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_ZEROED)) in ext4_init_inode_table()
1552 if (!(gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT))) { in ext4_init_inode_table()
1554 ext4_itable_unused_count(sb, gdp); in ext4_init_inode_table()
1563 ext4_itable_unused_count(sb, gdp)); in ext4_init_inode_table()
1578 group, ext4_itable_unused_count(sb, gdp), in ext4_init_inode_table()
1585 blk = ext4_inode_table(sb, gdp) + used_blks; in ext4_init_inode_table()
1612 gdp->bg_flags |= cpu_to_le16(EXT4_BG_INODE_ZEROED); in ext4_init_inode_table()
1613 ext4_group_desc_csum_set(sb, group, gdp); in ext4_init_inode_table()