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>
This commit is contained in:
parent
f7f675406b
commit
a64998504e
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue