aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_sb.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_sb.h')
-rw-r--r--fs/xfs/xfs_sb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/xfs_sb.h b/fs/xfs/xfs_sb.h
index d904efe7f871..e3204a36a222 100644
--- a/fs/xfs/xfs_sb.h
+++ b/fs/xfs/xfs_sb.h
@@ -473,6 +473,13 @@ static inline void xfs_sb_version_addattr2(xfs_sb_t *sbp)
473 ((sbp)->sb_features2 | XFS_SB_VERSION2_ATTR2BIT))); 473 ((sbp)->sb_features2 | XFS_SB_VERSION2_ATTR2BIT)));
474} 474}
475 475
476static inline void xfs_sb_version_removeattr2(xfs_sb_t *sbp)
477{
478 sbp->sb_features2 &= ~XFS_SB_VERSION2_ATTR2BIT;
479 if (!sbp->sb_features2)
480 sbp->sb_versionnum &= ~XFS_SB_VERSION_MOREBITSBIT;
481}
482
476/* 483/*
477 * end of superblock version macros 484 * end of superblock version macros
478 */ 485 */