aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_alloc.h
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_alloc.h
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_alloc.h')
-rw-r--r--fs/xfs/libxfs/xfs_alloc.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/xfs/libxfs/xfs_alloc.h b/fs/xfs/libxfs/xfs_alloc.h
index 1651d924aaf1..e716c993ac4c 100644
--- a/fs/xfs/libxfs/xfs_alloc.h
+++ b/fs/xfs/libxfs/xfs_alloc.h
@@ -242,10 +242,6 @@ int xfs_alloc_query_range(struct xfs_btree_cur *cur,
242 xfs_alloc_query_range_fn fn, void *priv); 242 xfs_alloc_query_range_fn fn, void *priv);
243int xfs_alloc_query_all(struct xfs_btree_cur *cur, xfs_alloc_query_range_fn fn, 243int xfs_alloc_query_all(struct xfs_btree_cur *cur, xfs_alloc_query_range_fn fn,
244 void *priv); 244 void *priv);
245xfs_agblock_t xfs_ag_block_count(struct xfs_mount *mp, xfs_agnumber_t agno);
246bool xfs_verify_agbno(struct xfs_mount *mp, xfs_agnumber_t agno,
247 xfs_agblock_t agbno);
248bool xfs_verify_fsbno(struct xfs_mount *mp, xfs_fsblock_t fsbno);
249 245
250int xfs_alloc_has_record(struct xfs_btree_cur *cur, xfs_agblock_t bno, 246int xfs_alloc_has_record(struct xfs_btree_cur *cur, xfs_agblock_t bno,
251 xfs_extlen_t len, bool *exist); 247 xfs_extlen_t len, bool *exist);