History

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).

Jan Kara committed 14 years ago

Commit a4564ea1 parent 65622e61 file · +0 −2Browse files

Unified · Split

fs/ocfs2/quota_global.c+0−2
@@ -399,8 +399,6 @@ int ocfs2_global_read_info(struct super_block *sb, int type) · 398 unmodified lines
399 msecs_to_jiffies(oinfo->dqi_syncms));399 msecs_to_jiffies(oinfo->dqi_syncms));
400 400
401out_err:401out_err:
402 if (status)
403 mlog_errno(status);
404 return status;402 return status;
405out_unlock:403out_unlock:
406 ocfs2_unlock_global_qf(oinfo, 0);404 ocfs2_unlock_global_qf(oinfo, 0);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t