Commit cb5bc855 authored by wangyan's avatar wangyan Committed by Linus Torvalds

ocfs2: there is no need to log twice in several functions

There is no need to log twice in several functions.
Signed-off-by: default avatarYan Wang <wangyan122@huawei.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Reviewed-by: default avatarJun Piao <piaojun@huawei.com>
Acked-by: default avatarJoseph Qi <joseph.qi@linux.alibaba.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Gang He <ghe@suse.com>
Link: http://lkml.kernel.org/r/77eec86a-f634-5b98-4f7d-0cd15185a37b@huawei.comSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent e0369873
...@@ -1060,7 +1060,6 @@ static int ocfs2_create_new_meta_bhs(handle_t *handle, ...@@ -1060,7 +1060,6 @@ static int ocfs2_create_new_meta_bhs(handle_t *handle,
brelse(bhs[i]); brelse(bhs[i]);
bhs[i] = NULL; bhs[i] = NULL;
} }
mlog_errno(status);
} }
return status; return status;
} }
......
...@@ -2509,9 +2509,6 @@ static int _ocfs2_free_suballoc_bits(handle_t *handle, ...@@ -2509,9 +2509,6 @@ static int _ocfs2_free_suballoc_bits(handle_t *handle,
bail: bail:
brelse(group_bh); brelse(group_bh);
if (status)
mlog_errno(status);
return status; return status;
} }
...@@ -2582,8 +2579,6 @@ static int _ocfs2_free_clusters(handle_t *handle, ...@@ -2582,8 +2579,6 @@ static int _ocfs2_free_clusters(handle_t *handle,
num_clusters); num_clusters);
out: out:
if (status)
mlog_errno(status);
return status; return status;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment