提交 a6499850 编写于 作者: L Luis de Bethencourt

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: NLuis de Bethencourt <luisbg@osg.samsung.com>
Acked-by: NSalah Triki <salah.triki@gmail.com>
上级 f7f67540
...@@ -791,6 +791,7 @@ befs_fill_super(struct super_block *sb, void *data, int silent) ...@@ -791,6 +791,7 @@ befs_fill_super(struct super_block *sb, void *data, int silent)
*/ */
blocksize = sb_min_blocksize(sb, 1024); blocksize = sb_min_blocksize(sb, 1024);
if (!blocksize) { if (!blocksize) {
if (!silent)
befs_error(sb, "unable to set blocksize"); befs_error(sb, "unable to set blocksize");
goto unacquire_priv_sbp; goto unacquire_priv_sbp;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册