aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/alloc.c
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2009-02-13 05:56:23 -0500
committerJoel Becker <joel.becker@oracle.com>2009-09-04 19:08:05 -0400
commitc38e52bb1c0187186bd3c4a2b318ffe69cd2fdf8 (patch)
tree16f8c548f3797822e1a2da68b902ef1a5f8fa8b3 /fs/ocfs2/alloc.c
parentd562862314a7b131a630f7b912490312387542fb (diff)
ocfs2: Give ocfs2_split_record() an extent_tree instead of an inode.
Another on the way to generic btree functions. Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/alloc.c')
-rw-r--r--fs/ocfs2/alloc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c
index ec9c2ce7bb0c..b57f976e62f9 100644
--- a/fs/ocfs2/alloc.c
+++ b/fs/ocfs2/alloc.c
@@ -4022,7 +4022,7 @@ out:
4022 return ret; 4022 return ret;
4023} 4023}
4024 4024
4025static void ocfs2_split_record(struct inode *inode, 4025static void ocfs2_split_record(struct ocfs2_extent_tree *et,
4026 struct ocfs2_path *left_path, 4026 struct ocfs2_path *left_path,
4027 struct ocfs2_path *right_path, 4027 struct ocfs2_path *right_path,
4028 struct ocfs2_extent_rec *split_rec, 4028 struct ocfs2_extent_rec *split_rec,
@@ -4095,7 +4095,8 @@ static void ocfs2_split_record(struct inode *inode,
4095 } 4095 }
4096 4096
4097 rec = &el->l_recs[index]; 4097 rec = &el->l_recs[index];
4098 ocfs2_subtract_from_rec(inode->i_sb, split, rec, split_rec); 4098 ocfs2_subtract_from_rec(ocfs2_metadata_cache_get_super(et->et_ci),
4099 split, rec, split_rec);
4099 ocfs2_rotate_leaf(insert_el, split_rec); 4100 ocfs2_rotate_leaf(insert_el, split_rec);
4100} 4101}
4101 4102
@@ -4158,7 +4159,7 @@ static int ocfs2_insert_path(struct inode *inode,
4158 * of splits, but it's easier to just let one separate 4159 * of splits, but it's easier to just let one separate
4159 * function sort it all out. 4160 * function sort it all out.
4160 */ 4161 */
4161 ocfs2_split_record(inode, left_path, right_path, 4162 ocfs2_split_record(et, left_path, right_path,
4162 insert_rec, insert->ins_split); 4163 insert_rec, insert->ins_split);
4163 4164
4164 /* 4165 /*