aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/refcounttree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/refcounttree.c')
-rw-r--r--fs/ocfs2/refcounttree.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/fs/ocfs2/refcounttree.c b/fs/ocfs2/refcounttree.c
index 29405f2ff616..4b0b4eb79352 100644
--- a/fs/ocfs2/refcounttree.c
+++ b/fs/ocfs2/refcounttree.c
@@ -1269,9 +1269,7 @@ static int ocfs2_change_refcount_rec(handle_t *handle,
1269 } else if (merge) 1269 } else if (merge)
1270 ocfs2_refcount_rec_merge(rb, index); 1270 ocfs2_refcount_rec_merge(rb, index);
1271 1271
1272 ret = ocfs2_journal_dirty(handle, ref_leaf_bh); 1272 ocfs2_journal_dirty(handle, ref_leaf_bh);
1273 if (ret)
1274 mlog_errno(ret);
1275out: 1273out:
1276 return ret; 1274 return ret;
1277} 1275}
@@ -1803,11 +1801,7 @@ static int ocfs2_insert_refcount_rec(handle_t *handle,
1803 if (merge) 1801 if (merge)
1804 ocfs2_refcount_rec_merge(rb, index); 1802 ocfs2_refcount_rec_merge(rb, index);
1805 1803
1806 ret = ocfs2_journal_dirty(handle, ref_leaf_bh); 1804 ocfs2_journal_dirty(handle, ref_leaf_bh);
1807 if (ret) {
1808 mlog_errno(ret);
1809 goto out;
1810 }
1811 1805
1812 if (index == 0) { 1806 if (index == 0) {
1813 ret = ocfs2_adjust_refcount_rec(handle, ci, 1807 ret = ocfs2_adjust_refcount_rec(handle, ci,
@@ -1978,9 +1972,7 @@ static int ocfs2_split_refcount_rec(handle_t *handle,
1978 ocfs2_refcount_rec_merge(rb, index); 1972 ocfs2_refcount_rec_merge(rb, index);
1979 } 1973 }
1980 1974
1981 ret = ocfs2_journal_dirty(handle, ref_leaf_bh); 1975 ocfs2_journal_dirty(handle, ref_leaf_bh);
1982 if (ret)
1983 mlog_errno(ret);
1984 1976
1985out: 1977out:
1986 brelse(new_bh); 1978 brelse(new_bh);
@@ -3041,11 +3033,7 @@ static int ocfs2_duplicate_clusters_by_jbd(handle_t *handle,
3041 } 3033 }
3042 3034
3043 memcpy(new_bh->b_data, old_bh->b_data, sb->s_blocksize); 3035 memcpy(new_bh->b_data, old_bh->b_data, sb->s_blocksize);
3044 ret = ocfs2_journal_dirty(handle, new_bh); 3036 ocfs2_journal_dirty(handle, new_bh);
3045 if (ret) {
3046 mlog_errno(ret);
3047 break;
3048 }
3049 3037
3050 brelse(new_bh); 3038 brelse(new_bh);
3051 brelse(old_bh); 3039 brelse(old_bh);