diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-10-18 07:37:46 +0300 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-10-27 01:38:26 +0300 |
commit | 29b0767b8beb4c5e3fd94656d51413a4fe8d2d74 (patch) | |
tree | 0a1ceb60fe3073bae58d052f3a998b4095f668d0 /fs/xfs/libxfs/xfs_format.h | |
parent | 0f28b25731f76feda1ec71671754a2b7179ee1ef (diff) | |
download | linux-29b0767b8beb4c5e3fd94656d51413a4fe8d2d74.tar.xz |
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.h | 5 |
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. |