Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165096
b: refs/heads/master
c: d231129
h: refs/heads/master
v: v3
  • Loading branch information
Joel Becker committed Sep 4, 2009
1 parent da737ee commit 12b3ee8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dbdcf6a48a40e6c9d7081393d793c4f1c5bb4fcf
refs/heads/master: d231129f44e7ead14f5f496e664ff1e3883a7b25
11 changes: 5 additions & 6 deletions trunk/fs/ocfs2/alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4879,10 +4879,9 @@ static void ocfs2_make_right_split_rec(struct super_block *sb,
split_rec->e_flags = rec->e_flags;
}

static int ocfs2_split_and_insert(struct inode *inode,
handle_t *handle,
struct ocfs2_path *path,
static int ocfs2_split_and_insert(handle_t *handle,
struct ocfs2_extent_tree *et,
struct ocfs2_path *path,
struct buffer_head **last_eb_bh,
int split_index,
struct ocfs2_extent_rec *orig_split_rec,
Expand Down Expand Up @@ -4944,8 +4943,8 @@ static int ocfs2_split_and_insert(struct inode *inode,
*/
insert.ins_split = SPLIT_RIGHT;

ocfs2_make_right_split_rec(inode->i_sb, &tmprec, insert_range,
&rec);
ocfs2_make_right_split_rec(ocfs2_metadata_cache_get_super(et->et_ci),
&tmprec, insert_range, &rec);

split_rec = tmprec;

Expand Down Expand Up @@ -5100,7 +5099,7 @@ static int __ocfs2_mark_extent_written(struct inode *inode,
path, el,
split_index, split_rec);
else
ret = ocfs2_split_and_insert(inode, handle, path, et,
ret = ocfs2_split_and_insert(handle, et, path,
&last_eb_bh, split_index,
split_rec, meta_ac);
if (ret)
Expand Down

0 comments on commit 12b3ee8

Please sign in to comment.