summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_super.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2020-08-17 18:58:01 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2020-09-16 05:52:39 +0200
commit2a39946c984464e4aac82c556ba9915589be7323 (patch)
treee40f1c0e4a0ddf305426ae61e6f9561ff25d3232 /fs/xfs/xfs_super.c
parentxfs: reuse _xfs_buf_read for re-reading the superblock (diff)
downloadlinux-2a39946c984464e4aac82c556ba9915589be7323.tar.xz
linux-2a39946c984464e4aac82c556ba9915589be7323.zip
xfs: store inode btree block counts in AGI header
Add a btree block usage counters for both inode btrees to the AGI header so that we don't have to walk the entire finobt at mount time to create the per-AG reservations. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_super.c')
-rw-r--r--fs/xfs/xfs_super.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
index 68ec8db12cc7..e61199a4691c 100644
--- a/fs/xfs/xfs_super.c
+++ b/fs/xfs/xfs_super.c
@@ -1549,6 +1549,10 @@ xfs_fc_fill_super(
goto out_filestream_unmount;
}
+ if (xfs_sb_version_hasinobtcounts(&mp->m_sb))
+ xfs_warn(mp,
+ "EXPERIMENTAL inode btree counters feature in use. Use at your own risk!");
+
error = xfs_mountfs(mp);
if (error)
goto out_filestream_unmount;