]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ocfs2: Fix bogus error message from ocfs2_global_read_info
authorJan Kara <jack@suse.cz>
Fri, 10 Feb 2012 09:50:07 +0000 (10:50 +0100)
committerXiaowei.Hu <xiaowei.hu@oracle.com>
Wed, 29 Aug 2012 06:11:05 +0000 (14:11 +0800)
commit3785e901e10764418991b7bb7f3a62023cbc10f0
treedb295baf2a527dfc17a027b27ad522c6ae3b2f6d
parentfc257b7c9cda873293941c3464d3ccea269ff5a4
ocfs2: Fix bogus error message from ocfs2_global_read_info

'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>
Signed-off-by: Joel Becker <jlbec@evilplan.org>
(cherry picked from commit a4564ead763a9264edbec6d4e72aa273f05eb39c)

Signed-off-by: Xiaowei.Hu <xiaowei.hu@oracle.com>
fs/ocfs2/quota_global.c