diff options
Diffstat (limited to 'fs/ocfs2/alloc.c')
-rw-r--r-- | fs/ocfs2/alloc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c index 412a2888a3ed..a0c8667caa72 100644 --- a/fs/ocfs2/alloc.c +++ b/fs/ocfs2/alloc.c | |||
@@ -2417,6 +2417,8 @@ out_add: | |||
2417 | status = ocfs2_do_insert_extent(inode, handle, fe_bh, &rec, &insert); | 2417 | status = ocfs2_do_insert_extent(inode, handle, fe_bh, &rec, &insert); |
2418 | if (status < 0) | 2418 | if (status < 0) |
2419 | mlog_errno(status); | 2419 | mlog_errno(status); |
2420 | else | ||
2421 | ocfs2_extent_map_insert_rec(inode, &rec); | ||
2420 | 2422 | ||
2421 | bail: | 2423 | bail: |
2422 | if (bh) | 2424 | if (bh) |
@@ -3640,6 +3642,9 @@ int ocfs2_commit_truncate(struct ocfs2_super *osb, | |||
3640 | mlog_errno(status); | 3642 | mlog_errno(status); |
3641 | goto bail; | 3643 | goto bail; |
3642 | } | 3644 | } |
3645 | |||
3646 | ocfs2_extent_map_trunc(inode, new_highest_cpos); | ||
3647 | |||
3643 | start: | 3648 | start: |
3644 | /* | 3649 | /* |
3645 | * Check that we still have allocation to delete. | 3650 | * Check that we still have allocation to delete. |