浏览代码

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 <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>
Eric Sandeen 12 年之前
父节点
当前提交
31625f28ad
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      fs/xfs/xfs_sb.c

+ 3 - 2
fs/xfs/xfs_sb.c

@@ -624,8 +624,9 @@ xfs_sb_read_verify(
 
 
 out_error:
 out_error:
 	if (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);
 		xfs_buf_ioerror(bp, error);
 	}
 	}
 }
 }