]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit224cb4a0e741227fd87a2f0a5fe54be592d497e6
tree5155116921fa1a7e875e117b5d98b062291d10e6
parent5594c9de01ecd1ba646b8841d589dd6db00862cc
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