Files
linux/fs/xfs
Dave Chinner f5edb04b45 xfs: fix superblock inprogress check
commit f3d7ebdeb2 upstream.

From inspection, the superblock sb_inprogress check is done in the
verifier and triggered only for the primary superblock via a
"bp->b_bn == XFS_SB_DADDR" check.

Unfortunately, the primary superblock is an uncached buffer, and
hence it is configured by xfs_buf_read_uncached() with:

	bp->b_bn = XFS_BUF_DADDR_NULL;  /* always null for uncached buffers */

And so this check never triggers. Fix it.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-09-15 08:27:52 +02:00
..
2014-07-30 09:12:05 +10:00
2015-11-10 10:09:45 +11:00
2015-11-10 10:09:45 +11:00
2015-06-22 09:44:02 +10:00
2015-03-04 16:06:38 +01:00
2015-02-23 21:22:31 +11:00