]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfef06221954b2c0ea5a448e644166caff350caef
tree01cb59d90f7bd7f13f58632e8346929dd94f8bee
parent203ac80c38c8486e2304969309fad30e0918ab53
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