mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
xfs: don't iunlock unlocked inodes
Don't iunlock an unlocked inode, which can happen if the parent pointer scrubber bails out with sc->ip unlocked while trying to grab the parent directory inode. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
This commit is contained in:
parent
cf1b0b8b1a
commit
638a717489
1 changed files with 2 additions and 1 deletions
|
@ -159,6 +159,7 @@ xfs_scrub_teardown(
|
|||
sc->tp = NULL;
|
||||
}
|
||||
if (sc->ip) {
|
||||
if (sc->ilock_flags)
|
||||
xfs_iunlock(sc->ip, sc->ilock_flags);
|
||||
if (sc->ip != ip_in &&
|
||||
!xfs_internal_inum(sc->mp, sc->ip->i_ino))
|
||||
|
|
Loading…
Reference in a new issue