diff options
author | Long Li <[email protected]> | 2024-07-03 14:42:26 +0800 |
---|---|---|
committer | Chandan Babu R <[email protected]> | 2024-07-04 14:36:13 +0530 |
commit | 49cdc4e834e46d7c11a91d7adcfa04f56d19efaf (patch) | |
tree | c422b1bbc488404272972569993858bd15827a09 /scripts/rustdoc_test_builder.rs | |
parent | f3f7ae68a4ea23aa9c49530733f1faaa6996b03a (diff) |
xfs: get rid of xfs_ag_resv_rmapbt_alloc
The pag in xfs_ag_resv_rmapbt_alloc() is already held when the struct
xfs_btree_cur is initialized in xfs_rmapbt_init_cursor(), so there is no
need to get pag again.
On the other hand, in xfs_rmapbt_free_block(), the similar function
xfs_ag_resv_rmapbt_free() was removed in commit 92a005448f6f ("xfs: get
rid of unnecessary xfs_perag_{get,put} pairs"), xfs_ag_resv_rmapbt_alloc()
was left because scrub used it, but now scrub has removed it. Therefore,
we could get rid of xfs_ag_resv_rmapbt_alloc() just like the rmap free
block, make the code cleaner.
Signed-off-by: Long Li <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Chandan Babu R <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions