Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140300
b: refs/heads/master
c: b80b549
h: refs/heads/master
v: v3
  • Loading branch information
Mark Fasheh committed Apr 3, 2009
1 parent d0042e3 commit 69ab3a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: 3a8df2b9c365a9f366b76bbbce479e1cc18ddc16
refs/heads/master: b80b549c3520b31d3bbc4b36e37e0a5102da0b94
9 changes: 3 additions & 6 deletions trunk/fs/ocfs2/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -834,10 +834,7 @@ static int ocfs2_unlink(struct inode *dir,
child_locked = 1;

if (S_ISDIR(inode->i_mode)) {
if (!ocfs2_empty_dir(inode)) {
status = -ENOTEMPTY;
goto leave;
} else if (inode->i_nlink != 2) {
if (inode->i_nlink != 2 || !ocfs2_empty_dir(inode)) {
status = -ENOTEMPTY;
goto leave;
}
Expand Down Expand Up @@ -1280,8 +1277,8 @@ static int ocfs2_rename(struct inode *old_dir,

if (target_exists) {
if (S_ISDIR(new_inode->i_mode)) {
if (!ocfs2_empty_dir(new_inode) ||
new_inode->i_nlink != 2) {
if (new_inode->i_nlink != 2 ||
!ocfs2_empty_dir(new_inode)) {
status = -ENOTEMPTY;
goto bail;
}
Expand Down

0 comments on commit 69ab3a7

Please sign in to comment.