Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42378
b: refs/heads/master
c: 85b9e78
h: refs/heads/master
v: v3
  • Loading branch information
Mark Fasheh committed Dec 2, 2006
1 parent 9dd8ec6 commit e47585a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 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: da5cbf2f9df922cfdafa39351691fa83517f1e25
refs/heads/master: 85b9e783cbc8cf4acc7bfaa76f37ea26b426f514
9 changes: 1 addition & 8 deletions trunk/fs/ocfs2/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1114,13 +1114,6 @@ static int ocfs2_rename(struct inode *old_dir,
rename_lock = 1;
}

handle = ocfs2_alloc_handle(osb);
if (handle == NULL) {
status = -ENOMEM;
mlog_errno(status);
goto bail;
}

/* if old and new are the same, this'll just do one lock. */
status = ocfs2_double_lock(osb, &old_dir_bh, old_dir,
&new_dir_bh, new_dir);
Expand Down Expand Up @@ -1291,7 +1284,7 @@ static int ocfs2_rename(struct inode *old_dir,
}
}

handle = ocfs2_start_trans(osb, handle, OCFS2_RENAME_CREDITS);
handle = ocfs2_start_trans(osb, NULL, OCFS2_RENAME_CREDITS);
if (IS_ERR(handle)) {
status = PTR_ERR(handle);
handle = NULL;
Expand Down

0 comments on commit e47585a

Please sign in to comment.