提交 4619c73e 编写于 作者: J Joel Becker

ocfs2: ocfs2_complete_edge_insert() doesn't need struct inode at all.

Completely unused argument.  Get rid of it.
Signed-off-by: NJoel Becker <joel.becker@oracle.com>
上级 6641b0ce
...@@ -1984,7 +1984,7 @@ static void ocfs2_adjust_root_records(struct ocfs2_extent_list *root_el, ...@@ -1984,7 +1984,7 @@ static void ocfs2_adjust_root_records(struct ocfs2_extent_list *root_el,
* - When we've adjusted the last extent record in the left path leaf and the * - When we've adjusted the last extent record in the left path leaf and the
* 1st extent record in the right path leaf during cross extent block merge. * 1st extent record in the right path leaf during cross extent block merge.
*/ */
static void ocfs2_complete_edge_insert(struct inode *inode, handle_t *handle, static void ocfs2_complete_edge_insert(handle_t *handle,
struct ocfs2_path *left_path, struct ocfs2_path *left_path,
struct ocfs2_path *right_path, struct ocfs2_path *right_path,
int subtree_index) int subtree_index)
...@@ -2161,7 +2161,7 @@ static int ocfs2_rotate_subtree_right(struct inode *inode, ...@@ -2161,7 +2161,7 @@ static int ocfs2_rotate_subtree_right(struct inode *inode,
goto out; goto out;
} }
ocfs2_complete_edge_insert(inode, handle, left_path, right_path, ocfs2_complete_edge_insert(handle, left_path, right_path,
subtree_index); subtree_index);
out: out:
...@@ -2772,7 +2772,7 @@ static int ocfs2_rotate_subtree_left(struct inode *inode, handle_t *handle, ...@@ -2772,7 +2772,7 @@ static int ocfs2_rotate_subtree_left(struct inode *inode, handle_t *handle,
*deleted = 1; *deleted = 1;
} else } else
ocfs2_complete_edge_insert(inode, handle, left_path, right_path, ocfs2_complete_edge_insert(handle, left_path, right_path,
subtree_index); subtree_index);
out: out:
...@@ -3430,8 +3430,8 @@ static int ocfs2_merge_rec_right(struct inode *inode, ...@@ -3430,8 +3430,8 @@ static int ocfs2_merge_rec_right(struct inode *inode,
if (ret) if (ret)
mlog_errno(ret); mlog_errno(ret);
ocfs2_complete_edge_insert(inode, handle, left_path, ocfs2_complete_edge_insert(handle, left_path, right_path,
right_path, subtree_index); subtree_index);
} }
out: out:
if (right_path) if (right_path)
...@@ -3629,7 +3629,7 @@ static int ocfs2_merge_rec_left(struct inode *inode, ...@@ -3629,7 +3629,7 @@ static int ocfs2_merge_rec_left(struct inode *inode,
ocfs2_mv_path(right_path, left_path); ocfs2_mv_path(right_path, left_path);
left_path = NULL; left_path = NULL;
} else } else
ocfs2_complete_edge_insert(inode, handle, left_path, ocfs2_complete_edge_insert(handle, left_path,
right_path, subtree_index); right_path, subtree_index);
} }
out: out:
...@@ -4195,8 +4195,8 @@ static int ocfs2_insert_path(struct inode *inode, ...@@ -4195,8 +4195,8 @@ static int ocfs2_insert_path(struct inode *inode,
*/ */
subtree_index = ocfs2_find_subtree_root(inode, left_path, subtree_index = ocfs2_find_subtree_root(inode, left_path,
right_path); right_path);
ocfs2_complete_edge_insert(inode, handle, left_path, ocfs2_complete_edge_insert(handle, left_path, right_path,
right_path, subtree_index); subtree_index);
} }
ret = 0; ret = 0;
...@@ -5397,7 +5397,7 @@ static int ocfs2_truncate_rec(struct inode *inode, handle_t *handle, ...@@ -5397,7 +5397,7 @@ static int ocfs2_truncate_rec(struct inode *inode, handle_t *handle,
int subtree_index; int subtree_index;
subtree_index = ocfs2_find_subtree_root(inode, left_path, path); subtree_index = ocfs2_find_subtree_root(inode, left_path, path);
ocfs2_complete_edge_insert(inode, handle, left_path, path, ocfs2_complete_edge_insert(handle, left_path, path,
subtree_index); subtree_index);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册