diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-05-09 20:02:01 +0300 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-05-16 03:57:05 +0300 |
commit | 9d9c90286a74decf11caa9dd625f862ae0257ce0 (patch) | |
tree | 7ee3c2221cde32e2446e0a0614654b8d681d3fd8 /fs/xfs/scrub/common.h | |
parent | 08a3a692ef586cc82648b88856a97e0d173319e2 (diff) | |
download | linux-9d9c90286a74decf11caa9dd625f862ae0257ce0.tar.xz |
xfs: refactor scrub transaction allocation function
Since the transaction allocation helper is about to become more complex,
move it to common.c and remove the redundant parameters.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/scrub/common.h')
-rw-r--r-- | fs/xfs/scrub/common.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/fs/xfs/scrub/common.h b/fs/xfs/scrub/common.h index deaf60400981..c95c30c986b7 100644 --- a/fs/xfs/scrub/common.h +++ b/fs/xfs/scrub/common.h @@ -38,19 +38,7 @@ xfs_scrub_should_terminate( return false; } -/* - * Grab an empty transaction so that we can re-grab locked buffers if - * one of our btrees turns out to be cyclic. - */ -static inline int -xfs_scrub_trans_alloc( - struct xfs_scrub_metadata *sm, - struct xfs_mount *mp, - struct xfs_trans **tpp) -{ - return xfs_trans_alloc_empty(mp, tpp); -} - +int xfs_scrub_trans_alloc(struct xfs_scrub_context *sc); bool xfs_scrub_process_error(struct xfs_scrub_context *sc, xfs_agnumber_t agno, xfs_agblock_t bno, int *error); bool xfs_scrub_fblock_process_error(struct xfs_scrub_context *sc, int whichfork, |