xfs: set XFS_FEAT_NLINK correctly
While xfs_has_nlink() is not used in kernel, it is used in userspace (e.g. by xfs_db) so we need to set the XFS_FEAT_NLINK flag correctly in xfs_sb_version_to_features(). Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
parent
1eb70f54c4
commit
dd0d2f9755
|
@ -70,6 +70,8 @@ xfs_sb_version_to_features(
|
||||||
/* optional V4 features */
|
/* optional V4 features */
|
||||||
if (sbp->sb_rblocks > 0)
|
if (sbp->sb_rblocks > 0)
|
||||||
features |= XFS_FEAT_REALTIME;
|
features |= XFS_FEAT_REALTIME;
|
||||||
|
if (sbp->sb_versionnum & XFS_SB_VERSION_NLINKBIT)
|
||||||
|
features |= XFS_FEAT_NLINK;
|
||||||
if (sbp->sb_versionnum & XFS_SB_VERSION_ATTRBIT)
|
if (sbp->sb_versionnum & XFS_SB_VERSION_ATTRBIT)
|
||||||
features |= XFS_FEAT_ATTR;
|
features |= XFS_FEAT_ATTR;
|
||||||
if (sbp->sb_versionnum & XFS_SB_VERSION_QUOTABIT)
|
if (sbp->sb_versionnum & XFS_SB_VERSION_QUOTABIT)
|
||||||
|
|
Loading…
Reference in New Issue