Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165078
b: refs/heads/master
c: e46f74d
h: refs/heads/master
v: v3
  • Loading branch information
Joel Becker committed Sep 4, 2009
1 parent 7f02562 commit 88bcac5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 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: 1e2dd63fe0b6e99b81904a61090db801978b9520
refs/heads/master: e46f74dc357947e2aed9bdd63cf335c5fd23810b
24 changes: 12 additions & 12 deletions trunk/fs/ocfs2/alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2871,24 +2871,24 @@ static int ocfs2_rotate_rightmost_leaf_left(struct inode *inode,
return ret;
}

static int __ocfs2_rotate_tree_left(struct inode *inode,
handle_t *handle, int orig_credits,
static int __ocfs2_rotate_tree_left(handle_t *handle,
struct ocfs2_extent_tree *et,
int orig_credits,
struct ocfs2_path *path,
struct ocfs2_cached_dealloc_ctxt *dealloc,
struct ocfs2_path **empty_extent_path,
struct ocfs2_extent_tree *et)
struct ocfs2_path **empty_extent_path)
{
int ret, subtree_root, deleted;
u32 right_cpos;
struct ocfs2_path *left_path = NULL;
struct ocfs2_path *right_path = NULL;
struct super_block *sb = ocfs2_metadata_cache_get_super(et->et_ci);

BUG_ON(!ocfs2_is_empty_extent(&(path_leaf_el(path)->l_recs[0])));

*empty_extent_path = NULL;

ret = ocfs2_find_cpos_for_right_leaf(inode->i_sb, path,
&right_cpos);
ret = ocfs2_find_cpos_for_right_leaf(sb, path, &right_cpos);
if (ret) {
mlog_errno(ret);
goto out;
Expand Down Expand Up @@ -2937,7 +2937,7 @@ static int __ocfs2_rotate_tree_left(struct inode *inode,
* Caller might still want to make changes to the
* tree root, so re-add it to the journal here.
*/
ret = ocfs2_path_bh_journal_access(handle, INODE_CACHE(inode),
ret = ocfs2_path_bh_journal_access(handle, et->et_ci,
left_path, 0);
if (ret) {
mlog_errno(ret);
Expand Down Expand Up @@ -2973,7 +2973,7 @@ static int __ocfs2_rotate_tree_left(struct inode *inode,

ocfs2_mv_path(left_path, right_path);

ret = ocfs2_find_cpos_for_right_leaf(inode->i_sb, left_path,
ret = ocfs2_find_cpos_for_right_leaf(sb, left_path,
&right_cpos);
if (ret) {
mlog_errno(ret);
Expand Down Expand Up @@ -3187,8 +3187,8 @@ static int ocfs2_rotate_tree_left(struct inode *inode, handle_t *handle,
* and restarting from there.
*/
try_rotate:
ret = __ocfs2_rotate_tree_left(inode, handle, orig_credits, path,
dealloc, &restart_path, et);
ret = __ocfs2_rotate_tree_left(handle, et, orig_credits, path,
dealloc, &restart_path);
if (ret && ret != -EAGAIN) {
mlog_errno(ret);
goto out;
Expand All @@ -3198,9 +3198,9 @@ static int ocfs2_rotate_tree_left(struct inode *inode, handle_t *handle,
tmp_path = restart_path;
restart_path = NULL;

ret = __ocfs2_rotate_tree_left(inode, handle, orig_credits,
ret = __ocfs2_rotate_tree_left(handle, et, orig_credits,
tmp_path, dealloc,
&restart_path, et);
&restart_path);
if (ret && ret != -EAGAIN) {
mlog_errno(ret);
goto out;
Expand Down

0 comments on commit 88bcac5

Please sign in to comment.