OSDN Git Service

xfs: refactor the inode recycling code
authorDarrick J. Wong <djwong@kernel.org>
Fri, 18 Jun 2021 18:57:05 +0000 (11:57 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 21 Jun 2021 17:12:46 +0000 (10:12 -0700)
commitff7bebeb91f8cc2e26e7dabbf301da5ec0e9328c
tree7ed5bbb19136526ee007d13d6bdfe3c70d591b0d
parent956f6daa84bf50dd5bd13a64b57cae446bca3899
xfs: refactor the inode recycling code

Hoist the code in xfs_iget_cache_hit that restores the VFS inode state
to an xfs_inode that was previously vfs-destroyed.  The next patch will
add a new set of state flags, so we need the helper to avoid
duplication.

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