]> git.ipfire.org Git - thirdparty/kernel/stable.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)
commit23ffa52cc792813bda35fd7bbaa87df8540d4bcb
tree52b60f0a7626e98214f74859569b2aafd9d42160
parentf2fc16a3d7c12224d4c19055fef40ca6379b2045
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