Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73301
b: refs/heads/master
c: e325a88
h: refs/heads/master
i:
  73299: b653619
v: v3
  • Loading branch information
Srinivas Eeda authored and Mark Fasheh committed Nov 6, 2007
1 parent debde07 commit 1be0746
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 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: bc7e97cbdd4bef162e5772c74ee2cc4487a2d997
refs/heads/master: e325a88f17196f18888f6e1426eb9fe3b4346d28
13 changes: 10 additions & 3 deletions trunk/fs/ocfs2/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1105,9 +1105,16 @@ static int ocfs2_rename(struct inode *old_dir,
goto bail;
}

if (!new_de && new_inode)
mlog(ML_ERROR, "inode %lu does not exist in it's parent "
"directory!", new_inode->i_ino);
if (!new_de && new_inode) {
/*
* Target was unlinked by another node while we were
* waiting to get to ocfs2_rename(). There isn't
* anything we can do here to help the situation, so
* bubble up the appropriate error.
*/
status = -ENOENT;
goto bail;
}

/* In case we need to overwrite an existing file, we blow it
* away first */
Expand Down

0 comments on commit 1be0746

Please sign in to comment.