aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2009-02-12 22:02:36 -0500
committerJoel Becker <joel.becker@oracle.com>2009-09-04 19:07:54 -0400
commit4619c73e7c9bd10bac6b60925fa28d5a2eeaf6ed (patch)
tree1e280a72eac74615bd298574d747ca543051b766
parent6641b0ce3274d979338cb67b2f562189dcbc1c28 (diff)
ocfs2: ocfs2_complete_edge_insert() doesn't need struct inode at all.
Completely unused argument. Get rid of it. Signed-off-by: Joel Becker <joel.becker@oracle.com>
-rw-r--r--fs/ocfs2/alloc.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c
index 18762f5ebda8..4a8e9717f961 100644
--- a/fs/ocfs2/alloc.c
+++ b/fs/ocfs2/alloc.c
@@ -1984,7 +1984,7 @@ static void ocfs2_adjust_root_records(struct ocfs2_extent_list *root_el,
1984 * - When we've adjusted the last extent record in the left path leaf and the 1984 * - When we've adjusted the last extent record in the left path leaf and the
1985 * 1st extent record in the right path leaf during cross extent block merge. 1985 * 1st extent record in the right path leaf during cross extent block merge.
1986 */ 1986 */
1987static void ocfs2_complete_edge_insert(struct inode *inode, handle_t *handle, 1987static void ocfs2_complete_edge_insert(handle_t *handle,
1988 struct ocfs2_path *left_path, 1988 struct ocfs2_path *left_path,
1989 struct ocfs2_path *right_path, 1989 struct ocfs2_path *right_path,
1990 int subtree_index) 1990 int subtree_index)
@@ -2161,8 +2161,8 @@ static int ocfs2_rotate_subtree_right(struct inode *inode,
2161 goto out; 2161 goto out;
2162 } 2162 }
2163 2163
2164 ocfs2_complete_edge_insert(inode, handle, left_path, right_path, 2164 ocfs2_complete_edge_insert(handle, left_path, right_path,
2165 subtree_index); 2165 subtree_index);
2166 2166
2167out: 2167out:
2168 return ret; 2168 return ret;
@@ -2772,7 +2772,7 @@ static int ocfs2_rotate_subtree_left(struct inode *inode, handle_t *handle,
2772 2772
2773 *deleted = 1; 2773 *deleted = 1;
2774 } else 2774 } else
2775 ocfs2_complete_edge_insert(inode, handle, left_path, right_path, 2775 ocfs2_complete_edge_insert(handle, left_path, right_path,
2776 subtree_index); 2776 subtree_index);
2777 2777
2778out: 2778out:
@@ -3430,8 +3430,8 @@ static int ocfs2_merge_rec_right(struct inode *inode,
3430 if (ret) 3430 if (ret)
3431 mlog_errno(ret); 3431 mlog_errno(ret);
3432 3432
3433 ocfs2_complete_edge_insert(inode, handle, left_path, 3433 ocfs2_complete_edge_insert(handle, left_path, right_path,
3434 right_path, subtree_index); 3434 subtree_index);
3435 } 3435 }
3436out: 3436out:
3437 if (right_path) 3437 if (right_path)
@@ -3629,7 +3629,7 @@ static int ocfs2_merge_rec_left(struct inode *inode,
3629 ocfs2_mv_path(right_path, left_path); 3629 ocfs2_mv_path(right_path, left_path);
3630 left_path = NULL; 3630 left_path = NULL;
3631 } else 3631 } else
3632 ocfs2_complete_edge_insert(inode, handle, left_path, 3632 ocfs2_complete_edge_insert(handle, left_path,
3633 right_path, subtree_index); 3633 right_path, subtree_index);
3634 } 3634 }
3635out: 3635out:
@@ -4195,8 +4195,8 @@ static int ocfs2_insert_path(struct inode *inode,
4195 */ 4195 */
4196 subtree_index = ocfs2_find_subtree_root(inode, left_path, 4196 subtree_index = ocfs2_find_subtree_root(inode, left_path,
4197 right_path); 4197 right_path);
4198 ocfs2_complete_edge_insert(inode, handle, left_path, 4198 ocfs2_complete_edge_insert(handle, left_path, right_path,
4199 right_path, subtree_index); 4199 subtree_index);
4200 } 4200 }
4201 4201
4202 ret = 0; 4202 ret = 0;
@@ -5397,7 +5397,7 @@ static int ocfs2_truncate_rec(struct inode *inode, handle_t *handle,
5397 int subtree_index; 5397 int subtree_index;
5398 5398
5399 subtree_index = ocfs2_find_subtree_root(inode, left_path, path); 5399 subtree_index = ocfs2_find_subtree_root(inode, left_path, path);
5400 ocfs2_complete_edge_insert(inode, handle, left_path, path, 5400 ocfs2_complete_edge_insert(handle, left_path, path,
5401 subtree_index); 5401 subtree_index);
5402 } 5402 }
5403 5403