diff options
author | Darrick J. Wong <djwong@kernel.org> | 2023-10-18 19:19:41 +0200 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2023-10-19 17:33:40 +0200 |
commit | 5b1d0ae9753f0654ab56c1e06155b3abf2919d71 (patch) | |
tree | 487e05a96d9401450c1005eafc4ded3ac8a03530 /fs/nls | |
parent | xfs: cache last bitmap block in realtime allocator (diff) | |
download | linux-5b1d0ae9753f0654ab56c1e06155b3abf2919d71.tar.xz linux-5b1d0ae9753f0654ab56c1e06155b3abf2919d71.zip |
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/nls')
0 files changed, 0 insertions, 0 deletions