summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2016-08-02 22:20:57 -0400
committerDave Chinner <david@fromorbit.com>2016-08-02 22:20:57 -0400
commit1c0607ace9bd639d22ad1bd453ffeb7d55913f88 (patch)
tree85e2ada09958be2ab9e447a4dbf21e0beaf714a5
parent04f130605ff6fb01a93a0885607921df9c463eed (diff)
xfs: enable the rmap btree functionality
Originally-From: Dave Chinner <dchinner@redhat.com> Add the feature flag to the supported matrix so that the kernel can mount and use rmap btree enabled filesystems Signed-off-by: Dave Chinner <dchinner@redhat.com> [darrick.wong@oracle.com: move the experimental tag] Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
-rw-r--r--fs/xfs/libxfs/xfs_format.h3
-rw-r--r--fs/xfs/xfs_super.c4
2 files changed, 6 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_format.h b/fs/xfs/libxfs/xfs_format.h
index f6a0641e64c8..f814d42c73b2 100644
--- a/fs/xfs/libxfs/xfs_format.h
+++ b/fs/xfs/libxfs/xfs_format.h
@@ -457,7 +457,8 @@ xfs_sb_has_compat_feature(
457#define XFS_SB_FEAT_RO_COMPAT_FINOBT (1 << 0) /* free inode btree */ 457#define XFS_SB_FEAT_RO_COMPAT_FINOBT (1 << 0) /* free inode btree */
458#define XFS_SB_FEAT_RO_COMPAT_RMAPBT (1 << 1) /* reverse map btree */ 458#define XFS_SB_FEAT_RO_COMPAT_RMAPBT (1 << 1) /* reverse map btree */
459#define XFS_SB_FEAT_RO_COMPAT_ALL \ 459#define XFS_SB_FEAT_RO_COMPAT_ALL \
460 (XFS_SB_FEAT_RO_COMPAT_FINOBT) 460 (XFS_SB_FEAT_RO_COMPAT_FINOBT | \
461 XFS_SB_FEAT_RO_COMPAT_RMAPBT)
461#define XFS_SB_FEAT_RO_COMPAT_UNKNOWN ~XFS_SB_FEAT_RO_COMPAT_ALL 462#define XFS_SB_FEAT_RO_COMPAT_UNKNOWN ~XFS_SB_FEAT_RO_COMPAT_ALL
462static inline bool 463static inline bool
463xfs_sb_has_ro_compat_feature( 464xfs_sb_has_ro_compat_feature(
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
index 9f8090951f09..45773df1dd0b 100644
--- a/fs/xfs/xfs_super.c
+++ b/fs/xfs/xfs_super.c
@@ -1574,6 +1574,10 @@ xfs_fs_fill_super(
1574 } 1574 }
1575 } 1575 }
1576 1576
1577 if (xfs_sb_version_hasrmapbt(&mp->m_sb))
1578 xfs_alert(mp,
1579 "EXPERIMENTAL reverse mapping btree feature enabled. Use at your own risk!");
1580
1577 error = xfs_mountfs(mp); 1581 error = xfs_mountfs(mp);
1578 if (error) 1582 if (error)
1579 goto out_filestream_unmount; 1583 goto out_filestream_unmount;