mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
956f6daa84
commit
ff7bebeb91
2 changed files with 83 additions and 64 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue