diff options
author | Darrick J. Wong <djwong@kernel.org> | 2023-10-18 10:19:41 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2023-10-19 08:33:40 -0700 |
commit | 5b1d0ae9753f0654ab56c1e06155b3abf2919d71 (patch) | |
tree | 487e05a96d9401450c1005eafc4ded3ac8a03530 /fs/xfs/xfs_message.h | |
parent | e94b53ff699c2674a9ec083342a5254866210ade (diff) |
xfs: simplify xfs_rtbuf_get calling conventions
Now that xfs_rtalloc_args holds references to the last-read bitmap and
summary blocks, we don't need to pass the buffer pointer out of
xfs_rtbuf_get.
Callers no longer have to xfs_trans_brelse on their own, though they are
required to call xfs_rtbuf_cache_relse before the xfs_rtalloc_args goes
out of scope.
While we're at it, create some trivial helpers so that we don't have to
remember if "0" means "bitmap" and "1" means "summary".
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_message.h')
0 files changed, 0 insertions, 0 deletions