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()
327 ext4_inode_bitmap_csum_set(sb, block_group, gdp, bitmap_bh, in ext4_free_inode()
329 ext4_group_desc_csum_set(sb, block_group, gdp); in ext4_free_inode()
674 struct ext4_group_desc *gdp; in recently_deleted() local
682 gdp = ext4_get_group_desc(sb, group, NULL); in recently_deleted()
683 if (unlikely(!gdp)) in recently_deleted()
686 bh = sb_find_get_block(sb, ext4_inode_table(sb, gdp) + in recently_deleted()
753 struct ext4_group_desc *gdp; in ext4_mark_inode_used() local
772 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in ext4_mark_inode_used()
773 if (!gdp || !group_desc_bh) { in ext4_mark_inode_used()
794 gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT)) { in ext4_mark_inode_used()
810 (gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT))) { in ext4_mark_inode_used()
811 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_BLOCK_UNINIT); in ext4_mark_inode_used()
812 ext4_free_group_clusters_set(sb, gdp, in ext4_mark_inode_used()
813 ext4_free_clusters_after_init(sb, group, gdp)); in ext4_mark_inode_used()
814 ext4_block_bitmap_csum_set(sb, group, gdp, in ext4_mark_inode_used()
816 ext4_group_desc_csum_set(sb, group, gdp); in ext4_mark_inode_used()
833 ext4_itable_unused_count(sb, gdp); in ext4_mark_inode_used()
834 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT)) { in ext4_mark_inode_used()
835 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_INODE_UNINIT); in ext4_mark_inode_used()
845 ext4_itable_unused_set(sb, gdp, in ext4_mark_inode_used()
851 ext4_free_inodes_set(sb, gdp, ext4_free_inodes_count(sb, gdp) - 1); in ext4_mark_inode_used()
853 ext4_inode_bitmap_csum_set(sb, group, gdp, inode_bitmap_bh, in ext4_mark_inode_used()
855 ext4_group_desc_csum_set(sb, group, gdp); in ext4_mark_inode_used()
934 struct ext4_group_desc *gdp = NULL; in __ext4_new_inode() local
1031 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in __ext4_new_inode()
1032 if (!gdp) in __ext4_new_inode()
1038 if (ext4_free_inodes_count(sb, gdp) == 0) in __ext4_new_inode()
1136 gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT)) { in __ext4_new_inode()
1158 (gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT))) { in __ext4_new_inode()
1159 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_BLOCK_UNINIT); in __ext4_new_inode()
1160 ext4_free_group_clusters_set(sb, gdp, in __ext4_new_inode()
1161 ext4_free_clusters_after_init(sb, group, gdp)); in __ext4_new_inode()
1162 ext4_block_bitmap_csum_set(sb, group, gdp, in __ext4_new_inode()
1164 ext4_group_desc_csum_set(sb, group, gdp); in __ext4_new_inode()
1189 ext4_itable_unused_count(sb, gdp); in __ext4_new_inode()
1190 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT)) { in __ext4_new_inode()
1191 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_INODE_UNINIT); in __ext4_new_inode()
1200 ext4_itable_unused_set(sb, gdp, in __ext4_new_inode()
1208 ext4_free_inodes_set(sb, gdp, ext4_free_inodes_count(sb, gdp) - 1); in __ext4_new_inode()
1210 ext4_used_dirs_set(sb, gdp, ext4_used_dirs_count(sb, gdp) + 1); in __ext4_new_inode()
1219 ext4_inode_bitmap_csum_set(sb, group, gdp, inode_bitmap_bh, in __ext4_new_inode()
1221 ext4_group_desc_csum_set(sb, group, gdp); in __ext4_new_inode()
1435 struct ext4_group_desc *gdp; in ext4_count_free_inodes() local
1445 gdp = NULL; in ext4_count_free_inodes()
1447 gdp = ext4_get_group_desc(sb, i, NULL); in ext4_count_free_inodes()
1448 if (!gdp) in ext4_count_free_inodes()
1450 desc_count += ext4_free_inodes_count(sb, gdp); in ext4_count_free_inodes()
1461 (unsigned long) i, ext4_free_inodes_count(sb, gdp), x); in ext4_count_free_inodes()
1472 gdp = ext4_get_group_desc(sb, i, NULL); in ext4_count_free_inodes()
1473 if (!gdp) in ext4_count_free_inodes()
1475 desc_count += ext4_free_inodes_count(sb, gdp); in ext4_count_free_inodes()
1489 struct ext4_group_desc *gdp = ext4_get_group_desc(sb, i, NULL); in ext4_count_dirs() local
1490 if (!gdp) in ext4_count_dirs()
1492 count += ext4_used_dirs_count(sb, gdp); in ext4_count_dirs()
1510 struct ext4_group_desc *gdp = NULL; in ext4_init_inode_table() local
1522 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in ext4_init_inode_table()
1523 if (!gdp) in ext4_init_inode_table()
1530 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_ZEROED)) in ext4_init_inode_table()
1545 if (!(gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT))) in ext4_init_inode_table()
1547 ext4_itable_unused_count(sb, gdp)), in ext4_init_inode_table()
1552 ext4_itable_unused_count(sb, gdp)) < in ext4_init_inode_table()
1558 ext4_itable_unused_count(sb, gdp)); in ext4_init_inode_table()
1563 blk = ext4_inode_table(sb, gdp) + used_blks; in ext4_init_inode_table()
1590 gdp->bg_flags |= cpu_to_le16(EXT4_BG_INODE_ZEROED); in ext4_init_inode_table()
1591 ext4_group_desc_csum_set(sb, group, gdp); in ext4_init_inode_table()