OSDN Git Service

xfs: don't emit corruption noise on fs probes
authorEric Sandeen <sandeen@sandeen.net>
Fri, 11 Oct 2013 19:12:31 +0000 (14:12 -0500)
committerBen Myers <bpm@sgi.com>
Thu, 17 Oct 2013 18:31:25 +0000 (13:31 -0500)
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 <sandeen@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_sb.c

index a89d0bc..b476227 100644 (file)
@@ -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);
        }
 }