aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/alloc.c')
-rw-r--r--fs/ocfs2/alloc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c
index 592fae5007d1..8ec418dd9e36 100644
--- a/fs/ocfs2/alloc.c
+++ b/fs/ocfs2/alloc.c
@@ -5858,6 +5858,7 @@ int ocfs2_truncate_log_append(struct ocfs2_super *osb,
5858 5858
5859 ocfs2_journal_dirty(handle, tl_bh); 5859 ocfs2_journal_dirty(handle, tl_bh);
5860 5860
5861 osb->truncated_clusters += num_clusters;
5861bail: 5862bail:
5862 mlog_exit(status); 5863 mlog_exit(status);
5863 return status; 5864 return status;
@@ -5929,6 +5930,8 @@ static int ocfs2_replay_truncate_records(struct ocfs2_super *osb,
5929 i--; 5930 i--;
5930 } 5931 }
5931 5932
5933 osb->truncated_clusters = 0;
5934
5932bail: 5935bail:
5933 mlog_exit(status); 5936 mlog_exit(status);
5934 return status; 5937 return status;