summaryrefslogtreecommitdiffstats
path: root/fs/befs/linuxvfs.c
diff options
context:
space:
mode:
authorLuis de Bethencourt2016-06-29 22:27:40 +0200
committerLuis de Bethencourt2016-10-08 11:01:13 +0200
commita64998504ebd766f07cf77f41334ccd8a60297ae (patch)
tree8a9f04dfd02879f70a989a2283d31c66c81a79b2 /fs/befs/linuxvfs.c
parentfs: befs: replace befs_bread by sb_bread (diff)
downloadkernel-qcow2-linux-a64998504ebd766f07cf77f41334ccd8a60297ae.tar.gz
kernel-qcow2-linux-a64998504ebd766f07cf77f41334ccd8a60297ae.tar.xz
kernel-qcow2-linux-a64998504ebd766f07cf77f41334ccd8a60297ae.zip
fs: befs: check silent flag before logging error
Log error only when silent flag is not set. Fixes: dbe6460388bc ("fs/befs/linuxvfs.c: check silent flag before logging errors") Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com> Acked-by: Salah Triki <salah.triki@gmail.com>
Diffstat (limited to 'fs/befs/linuxvfs.c')
-rw-r--r--fs/befs/linuxvfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
index 619b998e9a1e..9272f614d985 100644
--- a/fs/befs/linuxvfs.c
+++ b/fs/befs/linuxvfs.c
@@ -791,7 +791,8 @@ befs_fill_super(struct super_block *sb, void *data, int silent)
*/
blocksize = sb_min_blocksize(sb, 1024);
if (!blocksize) {
- befs_error(sb, "unable to set blocksize");
+ if (!silent)
+ befs_error(sb, "unable to set blocksize");
goto unacquire_priv_sbp;
}