Lines Matching refs:gdp

244 	struct ext4_group_desc *gdp;  in ext4_free_inode()  local
308 gdp = ext4_get_group_desc(sb, block_group, &bh2); in ext4_free_inode()
309 if (gdp) { in ext4_free_inode()
320 count = ext4_free_inodes_count(sb, gdp) + 1; in ext4_free_inode()
321 ext4_free_inodes_set(sb, gdp, count); in ext4_free_inode()
323 count = ext4_used_dirs_count(sb, gdp) - 1; in ext4_free_inode()
324 ext4_used_dirs_set(sb, gdp, count); in ext4_free_inode()
328 ext4_inode_bitmap_csum_set(sb, block_group, gdp, bitmap_bh, in ext4_free_inode()
330 ext4_group_desc_csum_set(sb, block_group, gdp); in ext4_free_inode()
678 struct ext4_group_desc *gdp; in recently_deleted() local
686 gdp = ext4_get_group_desc(sb, group, NULL); in recently_deleted()
687 if (unlikely(!gdp)) in recently_deleted()
690 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 || !group_desc_bh) { 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, group, gdp, in ext4_mark_inode_used()
820 ext4_group_desc_csum_set(sb, group, gdp); in ext4_mark_inode_used()
837 ext4_itable_unused_count(sb, gdp); in ext4_mark_inode_used()
838 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT)) { in ext4_mark_inode_used()
839 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_INODE_UNINIT); in ext4_mark_inode_used()
849 ext4_itable_unused_set(sb, gdp, in ext4_mark_inode_used()
855 ext4_free_inodes_set(sb, gdp, ext4_free_inodes_count(sb, gdp) - 1); in ext4_mark_inode_used()
857 ext4_inode_bitmap_csum_set(sb, group, gdp, inode_bitmap_bh, in ext4_mark_inode_used()
859 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()
1140 gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT)) { in __ext4_new_inode()
1162 (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 ext4_free_group_clusters_set(sb, gdp, in __ext4_new_inode()
1165 ext4_free_clusters_after_init(sb, group, gdp)); in __ext4_new_inode()
1166 ext4_block_bitmap_csum_set(sb, group, gdp, in __ext4_new_inode()
1168 ext4_group_desc_csum_set(sb, group, gdp); in __ext4_new_inode()
1193 ext4_itable_unused_count(sb, gdp); in __ext4_new_inode()
1194 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT)) { in __ext4_new_inode()
1195 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_INODE_UNINIT); in __ext4_new_inode()
1204 ext4_itable_unused_set(sb, gdp, in __ext4_new_inode()
1212 ext4_free_inodes_set(sb, gdp, ext4_free_inodes_count(sb, gdp) - 1); in __ext4_new_inode()
1214 ext4_used_dirs_set(sb, gdp, ext4_used_dirs_count(sb, gdp) + 1); in __ext4_new_inode()
1223 ext4_inode_bitmap_csum_set(sb, group, gdp, inode_bitmap_bh, in __ext4_new_inode()
1225 ext4_group_desc_csum_set(sb, group, gdp); in __ext4_new_inode()
1440 struct ext4_group_desc *gdp; in ext4_count_free_inodes() local
1450 gdp = NULL; in ext4_count_free_inodes()
1452 gdp = ext4_get_group_desc(sb, i, NULL); in ext4_count_free_inodes()
1453 if (!gdp) in ext4_count_free_inodes()
1455 desc_count += ext4_free_inodes_count(sb, gdp); in ext4_count_free_inodes()
1466 (unsigned long) i, ext4_free_inodes_count(sb, gdp), x); in ext4_count_free_inodes()
1477 gdp = ext4_get_group_desc(sb, i, NULL); in ext4_count_free_inodes()
1478 if (!gdp) in ext4_count_free_inodes()
1480 desc_count += ext4_free_inodes_count(sb, gdp); in ext4_count_free_inodes()
1494 struct ext4_group_desc *gdp = ext4_get_group_desc(sb, i, NULL); in ext4_count_dirs() local
1495 if (!gdp) in ext4_count_dirs()
1497 count += ext4_used_dirs_count(sb, gdp); in ext4_count_dirs()
1515 struct ext4_group_desc *gdp = NULL; in ext4_init_inode_table() local
1528 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in ext4_init_inode_table()
1529 if (!gdp) in ext4_init_inode_table()
1536 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_ZEROED)) in ext4_init_inode_table()
1551 if (!(gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT))) { in ext4_init_inode_table()
1553 ext4_itable_unused_count(sb, gdp); in ext4_init_inode_table()
1562 ext4_itable_unused_count(sb, gdp)); in ext4_init_inode_table()
1577 group, ext4_itable_unused_count(sb, gdp), in ext4_init_inode_table()
1584 blk = ext4_inode_table(sb, gdp) + used_blks; in ext4_init_inode_table()
1611 gdp->bg_flags |= cpu_to_le16(EXT4_BG_INODE_ZEROED); in ext4_init_inode_table()
1612 ext4_group_desc_csum_set(sb, group, gdp); in ext4_init_inode_table()