aboutsummaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_format.h
diff options
context:
space:
mode:
authorDarrick J. Wong2017-10-17 21:37:46 -0700
committerDarrick J. Wong2017-10-26 15:38:26 -0700
commit29b0767b8beb4c5e3fd94656d51413a4fe8d2d74 (patch)
tree0a1ceb60fe3073bae58d052f3a998b4095f668d0 /fs/xfs/libxfs/xfs_format.h
parent0f28b25731f76feda1ec71671754a2b7179ee1ef (diff)
xfs: scrub realtime bitmap/summary
Perform simple tests of the realtime bitmap and summary. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_format.h')
-rw-r--r--fs/xfs/libxfs/xfs_format.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_format.h b/fs/xfs/libxfs/xfs_format.h
index 154c3dd6499b..d4d9bef20c3a 100644
--- a/fs/xfs/libxfs/xfs_format.h
+++ b/fs/xfs/libxfs/xfs_format.h
@@ -315,6 +315,11 @@ static inline bool xfs_sb_good_version(struct xfs_sb *sbp)
return false;
}
+static inline bool xfs_sb_version_hasrealtime(struct xfs_sb *sbp)
+{
+ return sbp->sb_rblocks > 0;
+}
+
/*
* Detect a mismatched features2 field. Older kernels read/wrote
* this into the wrong slot, so to be safe we keep them in sync.