diff options
Diffstat (limited to 'fs/ocfs2/buffer_head_io.c')
-rw-r--r-- | fs/ocfs2/buffer_head_io.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/ocfs2/buffer_head_io.c b/fs/ocfs2/buffer_head_io.c index 024bd45b7a48..c23846dbfc8f 100644 --- a/fs/ocfs2/buffer_head_io.c +++ b/fs/ocfs2/buffer_head_io.c | |||
@@ -66,6 +66,7 @@ int ocfs2_write_block(struct ocfs2_super *osb, struct buffer_head *bh, | |||
66 | * can get modified during recovery even if read-only. */ | 66 | * can get modified during recovery even if read-only. */ |
67 | if (ocfs2_is_hard_readonly(osb)) { | 67 | if (ocfs2_is_hard_readonly(osb)) { |
68 | ret = -EROFS; | 68 | ret = -EROFS; |
69 | mlog_errno(ret); | ||
69 | goto out; | 70 | goto out; |
70 | } | 71 | } |
71 | 72 | ||
@@ -91,11 +92,11 @@ int ocfs2_write_block(struct ocfs2_super *osb, struct buffer_head *bh, | |||
91 | * uptodate. */ | 92 | * uptodate. */ |
92 | ret = -EIO; | 93 | ret = -EIO; |
93 | put_bh(bh); | 94 | put_bh(bh); |
95 | mlog_errno(ret); | ||
94 | } | 96 | } |
95 | 97 | ||
96 | ocfs2_metadata_cache_io_unlock(ci); | 98 | ocfs2_metadata_cache_io_unlock(ci); |
97 | out: | 99 | out: |
98 | mlog_exit(ret); | ||
99 | return ret; | 100 | return ret; |
100 | } | 101 | } |
101 | 102 | ||
@@ -374,7 +375,6 @@ int ocfs2_read_blocks(struct ocfs2_caching_info *ci, u64 block, int nr, | |||
374 | 375 | ||
375 | bail: | 376 | bail: |
376 | 377 | ||
377 | mlog_exit(status); | ||
378 | return status; | 378 | return status; |
379 | } | 379 | } |
380 | 380 | ||
@@ -413,6 +413,7 @@ int ocfs2_write_super_or_backup(struct ocfs2_super *osb, | |||
413 | 413 | ||
414 | if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) { | 414 | if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) { |
415 | ret = -EROFS; | 415 | ret = -EROFS; |
416 | mlog_errno(ret); | ||
416 | goto out; | 417 | goto out; |
417 | } | 418 | } |
418 | 419 | ||
@@ -432,9 +433,9 @@ int ocfs2_write_super_or_backup(struct ocfs2_super *osb, | |||
432 | if (!buffer_uptodate(bh)) { | 433 | if (!buffer_uptodate(bh)) { |
433 | ret = -EIO; | 434 | ret = -EIO; |
434 | put_bh(bh); | 435 | put_bh(bh); |
436 | mlog_errno(ret); | ||
435 | } | 437 | } |
436 | 438 | ||
437 | out: | 439 | out: |
438 | mlog_exit(ret); | ||
439 | return ret; | 440 | return ret; |
440 | } | 441 | } |