• Home
  • Raw
  • Download

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()
675 struct ext4_group_desc *gdp; in recently_deleted() local
683 gdp = ext4_get_group_desc(sb, group, NULL); in recently_deleted()
684 if (unlikely(!gdp)) in recently_deleted()
687 bh = sb_find_get_block(sb, ext4_inode_table(sb, gdp) + in recently_deleted()
754 struct ext4_group_desc *gdp; in ext4_mark_inode_used() local
773 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in ext4_mark_inode_used()
774 if (!gdp || !group_desc_bh) { in ext4_mark_inode_used()
795 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 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_BLOCK_UNINIT); in ext4_mark_inode_used()
813 ext4_free_group_clusters_set(sb, gdp, in ext4_mark_inode_used()
814 ext4_free_clusters_after_init(sb, group, gdp)); in ext4_mark_inode_used()
815 ext4_block_bitmap_csum_set(sb, group, gdp, 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, group, gdp, inode_bitmap_bh, in ext4_mark_inode_used()
856 ext4_group_desc_csum_set(sb, group, gdp); in ext4_mark_inode_used()
935 struct ext4_group_desc *gdp = NULL; in __ext4_new_inode() local
1032 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in __ext4_new_inode()
1033 if (!gdp) in __ext4_new_inode()
1039 if (ext4_free_inodes_count(sb, gdp) == 0) in __ext4_new_inode()
1137 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 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_BLOCK_UNINIT); in __ext4_new_inode()
1161 ext4_free_group_clusters_set(sb, gdp, in __ext4_new_inode()
1162 ext4_free_clusters_after_init(sb, group, gdp)); in __ext4_new_inode()
1163 ext4_block_bitmap_csum_set(sb, group, gdp, in __ext4_new_inode()
1165 ext4_group_desc_csum_set(sb, group, gdp); in __ext4_new_inode()
1194 ext4_itable_unused_count(sb, gdp); in __ext4_new_inode()
1195 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT)) { in __ext4_new_inode()
1196 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_INODE_UNINIT); in __ext4_new_inode()
1205 ext4_itable_unused_set(sb, gdp, in __ext4_new_inode()
1213 ext4_free_inodes_set(sb, gdp, ext4_free_inodes_count(sb, gdp) - 1); in __ext4_new_inode()
1215 ext4_used_dirs_set(sb, gdp, ext4_used_dirs_count(sb, gdp) + 1); in __ext4_new_inode()
1224 ext4_inode_bitmap_csum_set(sb, group, gdp, inode_bitmap_bh, in __ext4_new_inode()
1226 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
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()