diff options
author | Joel Becker <joel.becker@oracle.com> | 2009-02-13 05:57:58 -0500 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-09-04 19:08:05 -0400 |
commit | 3505bec01829a8f690259517add55c7941a4d3d5 (patch) | |
tree | 981a67f2b16e1aaa03339e9920252b1e6ba173c8 /fs/ocfs2/alloc.c | |
parent | c38e52bb1c0187186bd3c4a2b318ffe69cd2fdf8 (diff) |
ocfs2: ocfs2_do_insert_extent() and ocfs2_insert_path() no longer need an inode.
They aren't using it, so remove it from their parameter lists.
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/alloc.c')
-rw-r--r-- | fs/ocfs2/alloc.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c index b57f976e62f9..cced1766a9ea 100644 --- a/fs/ocfs2/alloc.c +++ b/fs/ocfs2/alloc.c | |||
@@ -4108,8 +4108,7 @@ static void ocfs2_split_record(struct ocfs2_extent_tree *et, | |||
4108 | * in. left_path should only be passed in if we need to update that | 4108 | * in. left_path should only be passed in if we need to update that |
4109 | * portion of the tree after an edge insert. | 4109 | * portion of the tree after an edge insert. |
4110 | */ | 4110 | */ |
4111 | static int ocfs2_insert_path(struct inode *inode, | 4111 | static int ocfs2_insert_path(handle_t *handle, |
4112 | handle_t *handle, | ||
4113 | struct ocfs2_extent_tree *et, | 4112 | struct ocfs2_extent_tree *et, |
4114 | struct ocfs2_path *left_path, | 4113 | struct ocfs2_path *left_path, |
4115 | struct ocfs2_path *right_path, | 4114 | struct ocfs2_path *right_path, |
@@ -4198,8 +4197,7 @@ out: | |||
4198 | return ret; | 4197 | return ret; |
4199 | } | 4198 | } |
4200 | 4199 | ||
4201 | static int ocfs2_do_insert_extent(struct inode *inode, | 4200 | static int ocfs2_do_insert_extent(handle_t *handle, |
4202 | handle_t *handle, | ||
4203 | struct ocfs2_extent_tree *et, | 4201 | struct ocfs2_extent_tree *et, |
4204 | struct ocfs2_extent_rec *insert_rec, | 4202 | struct ocfs2_extent_rec *insert_rec, |
4205 | struct ocfs2_insert_type *type) | 4203 | struct ocfs2_insert_type *type) |
@@ -4290,7 +4288,7 @@ static int ocfs2_do_insert_extent(struct inode *inode, | |||
4290 | } | 4288 | } |
4291 | } | 4289 | } |
4292 | 4290 | ||
4293 | ret = ocfs2_insert_path(inode, handle, et, left_path, right_path, | 4291 | ret = ocfs2_insert_path(handle, et, left_path, right_path, |
4294 | insert_rec, type); | 4292 | insert_rec, type); |
4295 | if (ret) { | 4293 | if (ret) { |
4296 | mlog_errno(ret); | 4294 | mlog_errno(ret); |
@@ -4718,7 +4716,7 @@ int ocfs2_insert_extent(struct ocfs2_super *osb, | |||
4718 | } | 4716 | } |
4719 | 4717 | ||
4720 | /* Finally, we can add clusters. This might rotate the tree for us. */ | 4718 | /* Finally, we can add clusters. This might rotate the tree for us. */ |
4721 | status = ocfs2_do_insert_extent(inode, handle, et, &rec, &insert); | 4719 | status = ocfs2_do_insert_extent(handle, et, &rec, &insert); |
4722 | if (status < 0) | 4720 | if (status < 0) |
4723 | mlog_errno(status); | 4721 | mlog_errno(status); |
4724 | else if (et->et_ops == &ocfs2_dinode_et_ops) | 4722 | else if (et->et_ops == &ocfs2_dinode_et_ops) |
@@ -4933,7 +4931,7 @@ leftright: | |||
4933 | do_leftright = 1; | 4931 | do_leftright = 1; |
4934 | } | 4932 | } |
4935 | 4933 | ||
4936 | ret = ocfs2_do_insert_extent(inode, handle, et, &split_rec, &insert); | 4934 | ret = ocfs2_do_insert_extent(handle, et, &split_rec, &insert); |
4937 | if (ret) { | 4935 | if (ret) { |
4938 | mlog_errno(ret); | 4936 | mlog_errno(ret); |
4939 | goto out; | 4937 | goto out; |
@@ -5237,7 +5235,7 @@ static int ocfs2_split_tree(struct inode *inode, struct ocfs2_extent_tree *et, | |||
5237 | insert.ins_split = SPLIT_RIGHT; | 5235 | insert.ins_split = SPLIT_RIGHT; |
5238 | insert.ins_tree_depth = depth; | 5236 | insert.ins_tree_depth = depth; |
5239 | 5237 | ||
5240 | ret = ocfs2_do_insert_extent(inode, handle, et, &split_rec, &insert); | 5238 | ret = ocfs2_do_insert_extent(handle, et, &split_rec, &insert); |
5241 | if (ret) | 5239 | if (ret) |
5242 | mlog_errno(ret); | 5240 | mlog_errno(ret); |
5243 | 5241 | ||