xfs: clean up inode state flag tests in xfs_blockgc_igrab
authorDarrick J. Wong <djwong@kernel.org>
Wed, 2 Jun 2021 06:01:44 +0000 (23:01 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 3 Jun 2021 22:56:03 +0000 (15:56 -0700)
commitd20d5edcf941e70e03cdbda2f8df93e3969c31a2
treec64fed29b42f1e30b794bfdb9723751067c26de2
parentf427cf5c6236acdf72b4d8564b2e18937c4cc8d8
xfs: clean up inode state flag tests in xfs_blockgc_igrab

Clean up the definition of which inode states are not eligible for
speculative preallocation garbage collecting by creating a private
#define.  The deferred inactivation patchset will add two new entries to
the set of flags-to-ignore, so we want the definition not to end up a
cluttered mess.

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