diff options
author | Long Li <leo.lilong@huawei.com> | 2024-07-03 14:42:26 +0800 |
---|---|---|
committer | Chandan Babu R <chandanbabu@kernel.org> | 2024-07-04 14:36:13 +0530 |
commit | 49cdc4e834e46d7c11a91d7adcfa04f56d19efaf (patch) | |
tree | c422b1bbc488404272972569993858bd15827a09 /fs/xfs/libxfs/xfs_inode_util.c | |
parent | f3f7ae68a4ea23aa9c49530733f1faaa6996b03a (diff) | |
download | linux-49cdc4e834e46d7c11a91d7adcfa04f56d19efaf.tar.gz linux-49cdc4e834e46d7c11a91d7adcfa04f56d19efaf.tar.bz2 linux-49cdc4e834e46d7c11a91d7adcfa04f56d19efaf.zip |
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 <leo.lilong@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Diffstat (limited to 'fs/xfs/libxfs/xfs_inode_util.c')
0 files changed, 0 insertions, 0 deletions