diff options
author | 2024-07-03 14:42:26 +0800 | |
---|---|---|
committer | 2024-07-04 14:36:13 +0530 | |
commit | 49cdc4e834e46d7c11a91d7adcfa04f56d19efaf (patch) | |
tree | c422b1bbc488404272972569993858bd15827a09 /scripts/generate_rust_analyzer.py | |
parent | xfs: skip flushing log items during push (diff) | |
download | wireguard-linux-49cdc4e834e46d7c11a91d7adcfa04f56d19efaf.tar.xz wireguard-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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions