Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5661
b: refs/heads/master
c: 0c3dba1
h: refs/heads/master
i:
  5659: cd11f1c
v: v3
  • Loading branch information
John McCutchan authored and Linus Torvalds committed Aug 5, 2005
1 parent 58478d0 commit 9fb6ed1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 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: f10eff26831159f52353e8f15c37cdb2935d5fbf
refs/heads/master: 0c3dba1534569734ba353afdf3f11def497ff2ac
9 changes: 2 additions & 7 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1874,14 +1874,9 @@ 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);
struct inode *inode = dentry->d_inode;
d_delete(dentry);
fsnotify_unlink(dentry, dir);
dput(dentry);
#else
d_delete(dentry);
#endif
fsnotify_unlink(dentry, inode, dir);
}

return error;
Expand Down
4 changes: 1 addition & 3 deletions trunk/include/linux/fsnotify.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,8 @@ static inline void fsnotify_move(struct inode *old_dir, struct inode *new_dir,
/*
* fsnotify_unlink - file was unlinked
*/
static inline void fsnotify_unlink(struct dentry *dentry, struct inode *dir)
static inline void fsnotify_unlink(struct dentry *dentry, struct inode *inode, struct inode *dir)
{
struct inode *inode = dentry->d_inode;

inode_dir_notify(dir, DN_DELETE);
inotify_inode_queue_event(dir, IN_DELETE, 0, dentry->d_name.name);
inotify_inode_queue_event(inode, IN_DELETE_SELF, 0, NULL);
Expand Down

0 comments on commit 9fb6ed1

Please sign in to comment.