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.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/fs/xfs/xfs_sb.h b/fs/xfs/xfs_sb.h
index f7b2fe77c5a5..950d1ea058b2 100644
--- a/fs/xfs/xfs_sb.h
+++ b/fs/xfs/xfs_sb.h
@@ -587,7 +587,9 @@ xfs_sb_has_compat_feature(
587 return (sbp->sb_features_compat & feature) != 0; 587 return (sbp->sb_features_compat & feature) != 0;
588} 588}
589 589
590#define XFS_SB_FEAT_RO_COMPAT_ALL 0 590#define XFS_SB_FEAT_RO_COMPAT_FINOBT (1 << 0) /* free inode btree */
591#define XFS_SB_FEAT_RO_COMPAT_ALL \
592 (XFS_SB_FEAT_RO_COMPAT_FINOBT)
591#define XFS_SB_FEAT_RO_COMPAT_UNKNOWN ~XFS_SB_FEAT_RO_COMPAT_ALL 593#define XFS_SB_FEAT_RO_COMPAT_UNKNOWN ~XFS_SB_FEAT_RO_COMPAT_ALL
592static inline bool 594static inline bool
593xfs_sb_has_ro_compat_feature( 595xfs_sb_has_ro_compat_feature(
@@ -641,6 +643,12 @@ static inline int xfs_sb_version_hasftype(struct xfs_sb *sbp)
641 (sbp->sb_features2 & XFS_SB_VERSION2_FTYPE)); 643 (sbp->sb_features2 & XFS_SB_VERSION2_FTYPE));
642} 644}
643 645
646static inline int xfs_sb_version_hasfinobt(xfs_sb_t *sbp)
647{
648 return (XFS_SB_VERSION_NUM(sbp) == XFS_SB_VERSION_5) &&
649 (sbp->sb_features_ro_compat & XFS_SB_FEAT_RO_COMPAT_FINOBT);
650}
651
644/* 652/*
645 * end of superblock version macros 653 * end of superblock version macros
646 */ 654 */