public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] fs: befs: check silent flag before logging error
@ 2016-06-29 20:27 Luis de Bethencourt
  2016-06-29 20:27 ` [PATCH 2/2] fs: befs: remove comment that confuses kernel-doc Luis de Bethencourt
  2016-07-28  0:09 ` [PATCH 1/2] fs: befs: check silent flag before logging error Salah Triki
  0 siblings, 2 replies; 3+ messages in thread
From: Luis de Bethencourt @ 2016-06-29 20:27 UTC (permalink / raw)
  To: linux-kernel
  Cc: akpm, salah.triki, viro, mhocko, vdavydov, Luis de Bethencourt

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>
---

Hi,

Reading the backlog of latest patches to befs, I noticed that Salah's patch
missed one call to befs_error() when setting all to only be used when the
silent argument is false.

Thanks,
Luis

 fs/befs/linuxvfs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
index b700645..bf5658d 100644
--- a/fs/befs/linuxvfs.c
+++ b/fs/befs/linuxvfs.c
@@ -790,7 +790,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;
 	}
 
-- 
2.5.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] fs: befs: remove comment that confuses kernel-doc
  2016-06-29 20:27 [PATCH 1/2] fs: befs: check silent flag before logging error Luis de Bethencourt
@ 2016-06-29 20:27 ` Luis de Bethencourt
  2016-07-28  0:09 ` [PATCH 1/2] fs: befs: check silent flag before logging error Salah Triki
  1 sibling, 0 replies; 3+ messages in thread
From: Luis de Bethencourt @ 2016-06-29 20:27 UTC (permalink / raw)
  To: linux-kernel
  Cc: akpm, salah.triki, viro, mhocko, vdavydov, Luis de Bethencourt

This comment with a mysterious unfinished line confuses the kernel-doc
system since, because it starts with /**, it thinks it is documenting a
function.

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
---
 fs/befs/linuxvfs.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
index bf5658d..0a97fad 100644
--- a/fs/befs/linuxvfs.c
+++ b/fs/befs/linuxvfs.c
@@ -632,10 +632,6 @@ befs_nls2utf(struct super_block *sb, const char *in,
 	return -EILSEQ;
 }
 
-/**
- * Use the
- *
- */
 enum {
 	Opt_uid, Opt_gid, Opt_charset, Opt_debug, Opt_err,
 };
-- 
2.5.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] fs: befs: check silent flag before logging error
  2016-06-29 20:27 [PATCH 1/2] fs: befs: check silent flag before logging error Luis de Bethencourt
  2016-06-29 20:27 ` [PATCH 2/2] fs: befs: remove comment that confuses kernel-doc Luis de Bethencourt
@ 2016-07-28  0:09 ` Salah Triki
  1 sibling, 0 replies; 3+ messages in thread
From: Salah Triki @ 2016-07-28  0:09 UTC (permalink / raw)
  To: Luis de Bethencourt
  Cc: linux-kernel, akpm, viro, mhocko, vdavydov, linux-fsdevel

On Wed, Jun 29, 2016 at 09:27:40PM +0100, Luis de Bethencourt wrote:
> 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>
> ---
> 
> Hi,
> 
> Reading the backlog of latest patches to befs, I noticed that Salah's patch
> missed one call to befs_error() when setting all to only be used when the
> silent argument is false.
> 
> Thanks,
> Luis
> 
>  fs/befs/linuxvfs.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
> index b700645..bf5658d 100644
> --- a/fs/befs/linuxvfs.c
> +++ b/fs/befs/linuxvfs.c
> @@ -790,7 +790,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;
>  	}
>  
> -- 
> 2.5.1
> 

Acked-by: Salah Triki <salah.triki@gmail.com>

regards,
salah

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-07-28  0:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-29 20:27 [PATCH 1/2] fs: befs: check silent flag before logging error Luis de Bethencourt
2016-06-29 20:27 ` [PATCH 2/2] fs: befs: remove comment that confuses kernel-doc Luis de Bethencourt
2016-07-28  0:09 ` [PATCH 1/2] fs: befs: check silent flag before logging error Salah Triki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox