]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: refactor unlinked list search and mapping to a separate function
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 7 Feb 2019 18:37:15 +0000 (10:37 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 12 Feb 2019 00:07:01 +0000 (16:07 -0800)
commit5876577c64a2eb17f111dcabafc4251e71fb41b5
tree52b60f0a7626e98214f74859569b2aafd9d42160
parent14d502d6d9548042ab6d4f81608f8909c464c974
xfs: refactor unlinked list search and mapping to a separate function

There's a loop that searches an unlinked bucket list to find the inode
that points to a given inode.  Hoist this into a separate function;
later we'll use our iunlink backref cache to bypass the slow list
operation.  No functional changes.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/xfs_inode.c