From: Tao Ma <tao.ma@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH 3/5] ocfs2: Remove EXIT from masklog.
Date: Wed, 10 Nov 2010 22:22:26 +0800 [thread overview]
Message-ID: <4CDAAAA2.1060501@oracle.com> (raw)
In-Reply-To: <20101110094545.GD31158@mail.oracle.com>
Joel Becker wrote:
> On Wed, Nov 10, 2010 at 10:52:21AM +0800, Tao Ma wrote:
>
>> mlog_exit is used to record the exit status of a function.
>> But because it is added in so many functions, if we enable it,
>> the system logs get filled up quickly and cause too much I/O.
>> So actually no one can open it for a production system or even
>> for a test.
>>
>> This patch just try to remove it. So in case of report error, a
>> mlog_errno is used while if all the errors in the function are
>> properly reported, mlog_exit is just removed.
>> for mlog_exit:
>> 1. if all the error paths already use mlog_errno, it is just removed.
>> Otherwise, it will be replaced by mlog_errno.
>> 2. if it is used to print some return value, it is replaced with
>> mlog(0,...).
>> mlog_exit_ptr is changed to mlog(0.
>>
>
> This one is great, except I would only select certain exit
> return codes to log. Most of them aren't very interesting.
>
Actually I have checked all of them to make sure that only the error
code is prompted.
But maybe I may miss something, so let us wait and see.
Regards,
Tao
next prev parent reply other threads:[~2010-11-10 14:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-10 2:51 [Ocfs2-devel] [PATCH 0/5] The first try of adding trace event to ocfs2 Tao Ma
2010-11-10 2:52 ` [Ocfs2-devel] [PATCH 1/5] ocfs2: Remove unused truncate function from alloc.c Tao Ma
2010-11-10 9:41 ` Joel Becker
2010-11-10 2:52 ` [Ocfs2-devel] [PATCH 2/5] ocfs2: Remove ENTRY from masklog Tao Ma
2010-11-10 9:43 ` Joel Becker
2010-11-10 14:19 ` Tao Ma
2010-11-10 2:52 ` [Ocfs2-devel] [PATCH 3/5] ocfs2: Remove EXIT " Tao Ma
2010-11-10 9:45 ` Joel Becker
2010-11-10 14:22 ` Tao Ma [this message]
2010-11-10 2:52 ` [Ocfs2-devel] [PATCH 4/5] ocfs2: Add ocfs2_trace.h Tao Ma
2010-11-10 9:48 ` Joel Becker
2010-11-10 14:33 ` Tao Ma
2010-11-10 22:19 ` Joel Becker
2010-11-10 2:52 ` [Ocfs2-devel] [PATCH 5/5] ocfs2: Remove mlog(0) from fs/ocfs2/alloc.c Tao Ma
2010-11-10 9:50 ` Joel Becker
2010-11-10 14:39 ` Tao Ma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CDAAAA2.1060501@oracle.com \
--to=tao.ma@oracle.com \
--cc=ocfs2-devel@oss.oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).