]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: simplify tagged perag iteration
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Aug 2024 04:08:39 +0000 (07:08 +0300)
committerChandan Babu R <chandanbabu@kernel.org>
Tue, 3 Sep 2024 04:37:44 +0000 (10:07 +0530)
commitf9ffd095c89a07a8877ca0669ac164f8a6994afc
tree7279ce9b3b3d0858110c2b9717cbbb07e89c746e
parentf48f0a8e00b67028d4492e7656b346fa0d806570
xfs: simplify tagged perag iteration

Pass the old perag structure to the tagged loop helpers so that they can
grab the old agno before releasing the reference.  This removes the need
to separately track the agno and the iterator macro, and thus also
obsoletes the for_each_perag_tag syntactic sugar.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/xfs_icache.c
fs/xfs/xfs_trace.h