xfs: refactor per-AG inode tagging functions
authorDarrick J. Wong <djwong@kernel.org>
Mon, 31 May 2021 18:32:02 +0000 (11:32 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 3 Jun 2021 22:56:04 +0000 (15:56 -0700)
commitc076ae7a9361b87624900c722012a837fee0b1b3
treeef35f6c150c752124e6483b43cbfae53319169d5
parentf1bc5c5630f90b83b339e8970dcf6d03abba5bd5
xfs: refactor per-AG inode tagging functions

In preparation for adding another incore inode tree tag, refactor the
code that sets and clears tags from the per-AG inode tree and the tree
of per-AG structures, and remove the open-coded versions used by the
blockgc code.

Note: For reclaim, we now rely on the radix tree tags instead of the
reclaimable inode count more heavily than we used to.  The conversion
should be fine, but the logic isn't 100% identical.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/xfs_icache.c
fs/xfs/xfs_icache.h
fs/xfs/xfs_super.c
fs/xfs/xfs_trace.h