Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5651
b: refs/heads/master
c: e234f35
h: refs/heads/master
i:
  5649: 2311c3a
  5647: 9de3f90
v: v3
  • Loading branch information
John McCutchan authored and Linus Torvalds committed Aug 4, 2005
1 parent 7dd5fea commit 0a7c8d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 3de11748c1b312833e8a148ab7ec47669ecc99dc
refs/heads/master: e234f35c54a30d040313e40833dcf623d14629b4
8 changes: 7 additions & 1 deletion trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1801,8 +1801,8 @@ int vfs_rmdir(struct inode *dir, struct dentry *dentry)
}
up(&dentry->d_inode->i_sem);
if (!error) {
fsnotify_rmdir(dentry, dentry->d_inode, dir);
d_delete(dentry);
fsnotify_rmdir(dentry, dentry->d_inode, dir);
}
dput(dentry);

Expand Down Expand Up @@ -1874,8 +1874,14 @@ int vfs_unlink(struct inode *dir, struct dentry *dentry)

/* We don't d_delete() NFS sillyrenamed files--they still exist. */
if (!error && !(dentry->d_flags & DCACHE_NFSFS_RENAMED)) {
#if defined(CONFIG_INOTIFY) || defined(CONFIG_DNOTIFY)
dget(dentry);
d_delete(dentry);
fsnotify_unlink(dentry, dir);
dput(dentry);
#else
d_delete(dentry);
#endif
}

return error;
Expand Down

0 comments on commit 0a7c8d5

Please sign in to comment.