]> git.baikalelectronics.ru Git - kernel.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)
committerJoel Becker <jlbec@evilplan.org>
Wed, 4 Jul 2012 06:27:17 +0000 (23:27 -0700)
commit98ae23042fcd149370a47be5325bef6fc437f94f
tree946afa2ff636bcb7837fb50587f54077aacc0d3c
parent1d1e4a766d4206dc29c04bfbe447971cc70ecd58
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 db96c8fb (conversion of mlog_exit()
calls).

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Joel Becker <jlbec@evilplan.org>
fs/ocfs2/quota_global.c