xfs: don't iunlock unlocked inodes
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 17 Jan 2018 02:53:57 +0000 (18:53 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 18 Jan 2018 05:00:46 +0000 (21:00 -0800)
commit638a7174894c8f2195430990b614615ef16e3912
treea9a8ab5b8e6b9b5e7fdc326d9a10531ed9eb0a0a
parentcf1b0b8b1a43102cdc0189d76d1c05915c4e16a6
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>
fs/xfs/scrub/scrub.c