]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: use xas_for_each_marked in xfs_reclaim_inodes_count
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Aug 2024 04:08:41 +0000 (07:08 +0300)
committerChandan Babu R <chandanbabu@kernel.org>
Tue, 3 Sep 2024 04:37:46 +0000 (10:07 +0530)
commit866cf1dd3d5cc03e6544a9582ef9c79ecdfc92c0
treeb4f058db8fc198d757a389991343497298d416b5
parent32fa4059fe6776d7db1e9058f360e06b36c9f2ce
xfs: use xas_for_each_marked in xfs_reclaim_inodes_count

xfs_reclaim_inodes_count iterates over all AGs to sum up the reclaimable
inodes counts.  There is no point in grabbing a reference to the them or
unlock the RCU critical section for each iteration, so switch to the
more efficient xas_for_each_marked iterator.

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