Skip to content

Commit 973ac0e

Browse files
author
Chandan Babu R
committed
xfs: Add XFS_SB_FEAT_INCOMPAT_NREXT64 to the list of supported flags
This commit enables XFS module to work with fs instances having 64-bit per-inode extent counters by adding XFS_SB_FEAT_INCOMPAT_NREXT64 flag to the list of supported incompat feature flags. Reviewed-by: Darrick J. Wong <[email protected]> Reviewed-by: Dave Chinner <[email protected]> Signed-off-by: Chandan Babu R <[email protected]>
1 parent c3c4ecb commit 973ac0e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

fs/xfs/libxfs/xfs_format.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,8 @@ xfs_sb_has_ro_compat_feature(
378378
XFS_SB_FEAT_INCOMPAT_SPINODES| \
379379
XFS_SB_FEAT_INCOMPAT_META_UUID| \
380380
XFS_SB_FEAT_INCOMPAT_BIGTIME| \
381-
XFS_SB_FEAT_INCOMPAT_NEEDSREPAIR)
381+
XFS_SB_FEAT_INCOMPAT_NEEDSREPAIR| \
382+
XFS_SB_FEAT_INCOMPAT_NREXT64)
382383

383384
#define XFS_SB_FEAT_INCOMPAT_UNKNOWN ~XFS_SB_FEAT_INCOMPAT_ALL
384385
static inline bool

fs/xfs/xfs_super.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,6 +1639,10 @@ xfs_fs_fill_super(
16391639
goto out_filestream_unmount;
16401640
}
16411641

1642+
if (xfs_has_large_extent_counts(mp))
1643+
xfs_warn(mp,
1644+
"EXPERIMENTAL Large extent counts feature in use. Use at your own risk!");
1645+
16421646
error = xfs_mountfs(mp);
16431647
if (error)
16441648
goto out_filestream_unmount;

0 commit comments

Comments
 (0)