[Ocfs2-devel] [PATCH 3/5] ocfs2: Remove EXIT from masklog.
Joel Becker
Joel.Becker at oracle.com
Wed Nov 10 01:45:45 PST 2010
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.
Joel
--
Life's Little Instruction Book #69
"Whistle"
Joel Becker
Senior Development Manager
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
More information about the Ocfs2-devel
mailing list