summaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_format.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2016-10-03 09:11:52 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2016-10-05 16:26:31 -0700
commite54b5bf9d7aeb92d92c7f5115035e6a851d0f0c5 (patch)
treebb8475324ce9e718d2f16d79a18e6414fb97269d /fs/xfs/libxfs/xfs_format.h
parenta35eb41519ab8db90e87d375ee9362d6e080ca4c (diff)
downloadlinux-stable-e54b5bf9d7aeb92d92c7f5115035e6a851d0f0c5.tar.gz
linux-stable-e54b5bf9d7aeb92d92c7f5115035e6a851d0f0c5.tar.bz2
linux-stable-e54b5bf9d7aeb92d92c7f5115035e6a851d0f0c5.zip
xfs: recognize the reflink feature bit
Add the reflink feature flag to the set of recognized feature flags. This enables users to write to reflink filesystems. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/libxfs/xfs_format.h')
-rw-r--r--fs/xfs/libxfs/xfs_format.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_format.h b/fs/xfs/libxfs/xfs_format.h
index 5e04ea2aa902..f6547fc5e016 100644
--- a/fs/xfs/libxfs/xfs_format.h
+++ b/fs/xfs/libxfs/xfs_format.h
@@ -459,7 +459,8 @@ xfs_sb_has_compat_feature(
#define XFS_SB_FEAT_RO_COMPAT_REFLINK (1 << 2) /* reflinked files */
#define XFS_SB_FEAT_RO_COMPAT_ALL \
(XFS_SB_FEAT_RO_COMPAT_FINOBT | \
- XFS_SB_FEAT_RO_COMPAT_RMAPBT)
+ XFS_SB_FEAT_RO_COMPAT_RMAPBT | \
+ XFS_SB_FEAT_RO_COMPAT_REFLINK)
#define XFS_SB_FEAT_RO_COMPAT_UNKNOWN ~XFS_SB_FEAT_RO_COMPAT_ALL
static inline bool
xfs_sb_has_ro_compat_feature(