From: Eric Sandeen Date: Fri, 11 Oct 2013 19:12:31 +0000 (-0500) Subject: xfs: don't emit corruption noise on fs probes X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=31625f28ad7be67701dc4cefcf52087addd88af4;p=openwrt%2Fstaging%2Fblogic.git xfs: don't emit corruption noise on fs probes If we get EWRONGFS due to probing of non-xfs filesystems, there's no need to issue the scary corruption error and backtrace. Signed-off-by: Eric Sandeen Reviewed-by: Mark Tinguely Reviewed-by: Christoph Hellwig Signed-off-by: Ben Myers --- diff --git a/fs/xfs/xfs_sb.c b/fs/xfs/xfs_sb.c index a89d0bcc7959..b4762279bb78 100644 --- a/fs/xfs/xfs_sb.c +++ b/fs/xfs/xfs_sb.c @@ -624,8 +624,9 @@ xfs_sb_read_verify( out_error: if (error) { - XFS_CORRUPTION_ERROR(__func__, XFS_ERRLEVEL_LOW, - mp, bp->b_addr); + if (error != EWRONGFS) + XFS_CORRUPTION_ERROR(__func__, XFS_ERRLEVEL_LOW, + mp, bp->b_addr); xfs_buf_ioerror(bp, error); } }