]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: track the iunlink list pointer in the xfs_inode
authorDave Chinner <dchinner@redhat.com>
Thu, 14 Jul 2022 01:38:54 +0000 (11:38 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 14 Jul 2022 01:38:54 +0000 (11:38 +1000)
commit015f90686de9c8e4576561cf26529b92a89aca7e
tree159a75489e7ad91d14ae8bf0cd4d1fc9496a3bb3
parenteb18cd1143af70d69638112daf87a07318f29aa8
xfs: track the iunlink list pointer in the xfs_inode

Having direct access to the i_next_unlinked pointer in unlinked
inodes greatly simplifies the processing of inodes on the unlinked
list. We no longer need to look up the inode buffer just to find
next inode in the list if the xfs_inode is in memory. These
improvements will be realised over upcoming patches as other
dependencies on the inode buffer for unlinked list processing are
removed.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_inode_buf.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_log_recover.c