Reset both inode btree block counters in the AGI when rebuilding the
metadata indexes.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
cpu_to_be32(btr_fino->newbt.afake.af_levels);
}
+ if (xfs_sb_version_hasinobtcounts(&mp->m_sb)) {
+ agi->agi_iblocks = cpu_to_be32(btr_ino->newbt.afake.af_blocks);
+ agi->agi_fblocks = cpu_to_be32(btr_fino->newbt.afake.af_blocks);
+ }
+
libxfs_buf_mark_dirty(agi_buf);
libxfs_buf_relse(agi_buf);
}