diff options
-rw-r--r-- | fs/ocfs2/alloc.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c index bfead609f76c..85cd2adcc824 100644 --- a/fs/ocfs2/alloc.c +++ b/fs/ocfs2/alloc.c | |||
@@ -4879,10 +4879,9 @@ static void ocfs2_make_right_split_rec(struct super_block *sb, | |||
4879 | split_rec->e_flags = rec->e_flags; | 4879 | split_rec->e_flags = rec->e_flags; |
4880 | } | 4880 | } |
4881 | 4881 | ||
4882 | static int ocfs2_split_and_insert(struct inode *inode, | 4882 | static int ocfs2_split_and_insert(handle_t *handle, |
4883 | handle_t *handle, | ||
4884 | struct ocfs2_path *path, | ||
4885 | struct ocfs2_extent_tree *et, | 4883 | struct ocfs2_extent_tree *et, |
4884 | struct ocfs2_path *path, | ||
4886 | struct buffer_head **last_eb_bh, | 4885 | struct buffer_head **last_eb_bh, |
4887 | int split_index, | 4886 | int split_index, |
4888 | struct ocfs2_extent_rec *orig_split_rec, | 4887 | struct ocfs2_extent_rec *orig_split_rec, |
@@ -4944,8 +4943,8 @@ leftright: | |||
4944 | */ | 4943 | */ |
4945 | insert.ins_split = SPLIT_RIGHT; | 4944 | insert.ins_split = SPLIT_RIGHT; |
4946 | 4945 | ||
4947 | ocfs2_make_right_split_rec(inode->i_sb, &tmprec, insert_range, | 4946 | ocfs2_make_right_split_rec(ocfs2_metadata_cache_get_super(et->et_ci), |
4948 | &rec); | 4947 | &tmprec, insert_range, &rec); |
4949 | 4948 | ||
4950 | split_rec = tmprec; | 4949 | split_rec = tmprec; |
4951 | 4950 | ||
@@ -5100,7 +5099,7 @@ static int __ocfs2_mark_extent_written(struct inode *inode, | |||
5100 | path, el, | 5099 | path, el, |
5101 | split_index, split_rec); | 5100 | split_index, split_rec); |
5102 | else | 5101 | else |
5103 | ret = ocfs2_split_and_insert(inode, handle, path, et, | 5102 | ret = ocfs2_split_and_insert(handle, et, path, |
5104 | &last_eb_bh, split_index, | 5103 | &last_eb_bh, split_index, |
5105 | split_rec, meta_ac); | 5104 | split_rec, meta_ac); |
5106 | if (ret) | 5105 | if (ret) |