aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_rtbitmap.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2018-06-07 10:53:33 -0400
committerDarrick J. Wong <darrick.wong@oracle.com>2018-06-08 13:07:51 -0400
commit86210fbebae6e60b1158ccd6b47ee7ae1abf5b2c (patch)
tree4d705bbf018694eb4ad9c8ba9a19721d8a5e2fdf /fs/xfs/libxfs/xfs_rtbitmap.c
parent4a2d01b076d231afebbea04647373644e767b453 (diff)
xfs: move various type verifiers to common file
New verification functions like xfs_verify_fsbno() and xfs_verify_agino() are spread across multiple files and different header files. They really don't fit cleanly into the places they've been put, and have wider scope than the current header includes. Move the type verifiers to a new file in libxfs (xfs-types.c) and the prototypes to xfs_types.h where they will be visible to all the code that uses the types. Signed-Off-By: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_rtbitmap.c')
-rw-r--r--fs/xfs/libxfs/xfs_rtbitmap.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/xfs/libxfs/xfs_rtbitmap.c b/fs/xfs/libxfs/xfs_rtbitmap.c
index ffc72075a44e..65fc4ed2e9a1 100644
--- a/fs/xfs/libxfs/xfs_rtbitmap.c
+++ b/fs/xfs/libxfs/xfs_rtbitmap.c
@@ -1080,18 +1080,6 @@ xfs_rtalloc_query_all(
1080 return xfs_rtalloc_query_range(tp, &keys[0], &keys[1], fn, priv); 1080 return xfs_rtalloc_query_range(tp, &keys[0], &keys[1], fn, priv);
1081} 1081}
1082 1082
1083/*
1084 * Verify that an realtime block number pointer doesn't point off the
1085 * end of the realtime device.
1086 */
1087bool
1088xfs_verify_rtbno(
1089 struct xfs_mount *mp,
1090 xfs_rtblock_t rtbno)
1091{
1092 return rtbno < mp->m_sb.sb_rblocks;
1093}
1094
1095/* Is the given extent all free? */ 1083/* Is the given extent all free? */
1096int 1084int
1097xfs_rtalloc_extent_is_free( 1085xfs_rtalloc_extent_is_free(