xfs: don't clobber inobt/finobt cursors when xref with rmap
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 23 Jan 2018 19:17:47 +0000 (11:17 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 29 Jan 2018 15:27:23 +0000 (07:27 -0800)
commitc47b74fb2dba46642fc9c2581a28893b42a42815
tree01cb59d90f7bd7f13f58632e8346929dd94f8bee
parent70c57dcd606f218b507372a05e633b23351258f0
xfs: don't clobber inobt/finobt cursors when xref with rmap

Even if we can't use the inobt/finobt cursors to count the number of
inode btree blocks, we are never allowed to clobber the cursor of the
btree being checked, so don't do this.  Found by fuzzing level = ones
in xfs/364.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/ialloc.c