All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH] ocfs2: Fix bogus error message from ocfs2_global_read_info
@ 2012-02-10  9:50 Jan Kara
  2012-07-04  7:33 ` Joel Becker
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kara @ 2012-02-10  9:50 UTC (permalink / raw)
  To: ocfs2-devel

'status' variable in ocfs2_global_read_info() is always != 0 when leaving the
function because it happens to contain number of read bytes. Thus we always log
error message although everything is OK. Since all error cases properly call
mlog_errno() before jumping to out_err, there's no reason to call mlog_errno()
on exit at all. This is a fallout of c1e8d35e (conversion of mlog_exit()
calls).

Signed-off-by: Jan Kara <jack@suse.cz>
---
 fs/ocfs2/quota_global.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/fs/ocfs2/quota_global.c b/fs/ocfs2/quota_global.c
index 92fcd57..0a86e30 100644
--- a/fs/ocfs2/quota_global.c
+++ b/fs/ocfs2/quota_global.c
@@ -399,8 +399,6 @@ int ocfs2_global_read_info(struct super_block *sb, int type)
 			      msecs_to_jiffies(oinfo->dqi_syncms));
 
 out_err:
-	if (status)
-		mlog_errno(status);
 	return status;
 out_unlock:
 	ocfs2_unlock_global_qf(oinfo, 0);
-- 
1.7.1

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

* [Ocfs2-devel] [PATCH] ocfs2: Fix bogus error message from ocfs2_global_read_info
  2012-02-10  9:50 [Ocfs2-devel] [PATCH] ocfs2: Fix bogus error message from ocfs2_global_read_info Jan Kara
@ 2012-07-04  7:33 ` Joel Becker
  0 siblings, 0 replies; 2+ messages in thread
From: Joel Becker @ 2012-07-04  7:33 UTC (permalink / raw)
  To: ocfs2-devel

On Fri, Feb 10, 2012 at 10:50:07AM +0100, Jan Kara wrote:
> 'status' variable in ocfs2_global_read_info() is always != 0 when leaving the
> function because it happens to contain number of read bytes. Thus we always log
> error message although everything is OK. Since all error cases properly call
> mlog_errno() before jumping to out_err, there's no reason to call mlog_errno()
> on exit at all. This is a fallout of c1e8d35e (conversion of mlog_exit()
> calls).
> 
> Signed-off-by: Jan Kara <jack@suse.cz>

This patch is (finally) now part of the 'fixes' branch of ocfs2.git.

Joel

> ---
>  fs/ocfs2/quota_global.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/fs/ocfs2/quota_global.c b/fs/ocfs2/quota_global.c
> index 92fcd57..0a86e30 100644
> --- a/fs/ocfs2/quota_global.c
> +++ b/fs/ocfs2/quota_global.c
> @@ -399,8 +399,6 @@ int ocfs2_global_read_info(struct super_block *sb, int type)
>  			      msecs_to_jiffies(oinfo->dqi_syncms));
>  
>  out_err:
> -	if (status)
> -		mlog_errno(status);
>  	return status;
>  out_unlock:
>  	ocfs2_unlock_global_qf(oinfo, 0);
> -- 
> 1.7.1
> 

-- 

"Here's something to think about:  How come you never see a headline
 like ``Psychic Wins Lottery''?"
	- Jay Leno

			http://www.jlbec.org/
			jlbec at evilplan.org

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

end of thread, other threads:[~2012-07-04  7:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-10  9:50 [Ocfs2-devel] [PATCH] ocfs2: Fix bogus error message from ocfs2_global_read_info Jan Kara
2012-07-04  7:33 ` Joel Becker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.