Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Kernel v2.6.24-git16 /fs/namei.c

Filename:/fs/namei.c
Lines Added:2
Lines Deleted:1
Also changed in: (Previous) 2.6.24  2.6.24-rc8  2.6.24-rc7-git8  2.6.24-rc7-git7  2.6.24-rc7-git6  2.6.24-rc7-git5 
(Following) 2.6.24-git17  2.6.24-git18  2.6.24-git19  2.6.24-git20  2.6.24-git21  2.6.24-git22 

Location
[  2.6.24-git16
  [  fs
     o  namei.c

Patch

diff --git a/fs/namei.c b/fs/namei.c
index 73e2e66..241cff4 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2188,6 +2188,7 @@ 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)) {
+      fsnotify_link_count(dentry->d_inode);
       d_delete(dentry);
    }
 
@@ -2360,7 +2361,7 @@ int vfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_de
    error = dir->i_op->link(old_dentry, dir, new_dentry);
    mutex_unlock(&old_dentry->d_inode->i_mutex);
    if (!error)
-      fsnotify_create(dir, new_dentry);
+      fsnotify_link(dir, old_dentry->d_inode, new_dentry);
    return error;
 }
 


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.