xfs: separate primary inode selection criteria in xfs_iget_cache_hit
authorDarrick J. Wong <djwong@kernel.org>
Fri, 18 Jun 2021 18:57:06 +0000 (11:57 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 21 Jun 2021 17:12:46 +0000 (10:12 -0700)
commit77b4d2861e8381d00e4b9bd1be2a355dda99ff60
tree371b245493c10fa287b6bebcf6c12825745d19d3
parentff7bebeb91f8cc2e26e7dabbf301da5ec0e9328c
xfs: separate primary inode selection criteria in xfs_iget_cache_hit

During review of the v6 deferred inode inactivation patchset[1], Dave
commented that _cache_hit should have a clear separation between inode
selection criteria and actions performed on a selected inode.  Move a
hunk to make this true, and compact the shrink cases in the function.

[1] https://lore.kernel.org/linux-xfs/162310469340.3465262.504398465311182657.stgit@locust/T/#mca6d958521cb88bbc1bfe1a30767203328d410b5
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/xfs_icache.c