xfs: move xfs_inactive call to xfs_inode_mark_reclaimable
authorDarrick J. Wong <djwong@kernel.org>
Fri, 6 Aug 2021 18:05:38 +0000 (11:05 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 6 Aug 2021 18:05:38 +0000 (11:05 -0700)
commitc6c2066db3963e519a7ff8f432fcec956f4d23b4
tree5155116921fa1a7e875e117b5d98b062291d10e6
parent0ed17f01c85401abf1706d9825796fc6661c0889
xfs: move xfs_inactive call to xfs_inode_mark_reclaimable

Move the xfs_inactive call and all the other debugging checks and stats
updates into xfs_inode_mark_reclaimable because most of that are
implementation details about the inode cache.  This is preparation for
deferred inactivation that is coming up.  We also move it around
xfs_icache.c in preparation for deferred inactivation.

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