diff options
author | Eric Sandeen <sandeen@sandeen.net> | 2013-10-11 14:12:31 -0500 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-07-04 10:06:55 +0200 |
commit | 22a16208d5e73c9b84629790c28df0df4183bba4 (patch) | |
tree | b74c724ac0153389135605de7e0325c2148133c2 /fs | |
parent | 192fedc5d3840a89a2d31f0f9cb7195f52a11b9d (diff) |
xfs: don't emit corruption noise on fs probes
commit 31625f28ad7be67701dc4cefcf52087addd88af4 upstream.
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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_sb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/xfs/xfs_sb.c b/fs/xfs/xfs_sb.c index 039708122038..38b7df67ba7c 100644 --- a/fs/xfs/xfs_sb.c +++ b/fs/xfs/xfs_sb.c @@ -633,8 +633,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); } } |