diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-06-18 21:57:05 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-06-21 20:12:46 +0300 |
commit | ff7bebeb91f8cc2e26e7dabbf301da5ec0e9328c (patch) | |
tree | 7ed5bbb19136526ee007d13d6bdfe3c70d591b0d /fs/xfs/xfs_trace.h | |
parent | 956f6daa84bf50dd5bd13a64b57cae446bca3899 (diff) | |
download | linux-ff7bebeb91f8cc2e26e7dabbf301da5ec0e9328c.tar.xz |
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>
Diffstat (limited to 'fs/xfs/xfs_trace.h')
-rw-r--r-- | fs/xfs/xfs_trace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_trace.h b/fs/xfs/xfs_trace.h index 28d570742000..a442bc4dfdc4 100644 --- a/fs/xfs/xfs_trace.h +++ b/fs/xfs/xfs_trace.h @@ -631,8 +631,8 @@ DEFINE_EVENT(xfs_inode_class, name, \ TP_PROTO(struct xfs_inode *ip), \ TP_ARGS(ip)) DEFINE_INODE_EVENT(xfs_iget_skip); -DEFINE_INODE_EVENT(xfs_iget_reclaim); -DEFINE_INODE_EVENT(xfs_iget_reclaim_fail); +DEFINE_INODE_EVENT(xfs_iget_recycle); +DEFINE_INODE_EVENT(xfs_iget_recycle_fail); DEFINE_INODE_EVENT(xfs_iget_hit); DEFINE_INODE_EVENT(xfs_iget_miss); |