summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_super.c
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2015-08-19 10:32:14 +1000
committerDave Chinner <david@fromorbit.com>2015-08-19 10:32:14 +1000
commit1b867d3ab562b6b03e46113fad3e87b05fbfbb85 (patch)
tree44f2daef4dcd407b59e9515438158064467cc4fc /fs/xfs/xfs_super.c
parent928634514bc53f66631a731bf623157c913b145e (diff)
downloadlinux-1b867d3ab562b6b03e46113fad3e87b05fbfbb85.tar.gz
linux-1b867d3ab562b6b03e46113fad3e87b05fbfbb85.tar.bz2
linux-1b867d3ab562b6b03e46113fad3e87b05fbfbb85.zip
xfs: relocate sparse inode mount warning
The sparse inodes feature is currently considered experimental. We warn at mount time from xfs_mount_validate_sb(). This function is part of the superblock verifier codepath, however, which means it could be invoked repeatedly on superblock reads or writes. This is currently only noticeable from userspace, where mkfs produces multiple warnings at format time. As mkfs warnings were not the intent of this change, relocate the mount time warning to xfs_fs_fill_super(), which is only invoked once and only in kernel space. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.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 1fb16562c159..f98ce83b7bc4 100644
--- a/fs/xfs/xfs_super.c
+++ b/fs/xfs/xfs_super.c
@@ -1528,6 +1528,10 @@ xfs_fs_fill_super(
}
}
+ if (xfs_sb_version_hassparseinodes(&mp->m_sb))
+ xfs_alert(mp,
+ "EXPERIMENTAL sparse inode feature enabled. Use at your own risk!");
+
error = xfs_mountfs(mp);
if (error)
goto out_filestream_unmount;