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

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

Advertisement

Kernel v2.6.24-git19 /fs/dcache.c

Filename:/fs/dcache.c
Lines Added:1
Lines Deleted:4
Also changed in: (Previous) 2.6.24-git18  2.6.24-git17  2.6.24-git16  2.6.24  2.6.24-rc8  2.6.24-rc7 
(Following) 2.6.24-git20  2.6.24-git21  2.6.24-git22  2.6.24.5-rc1  2.6.24.5-rc2  2.6.24.5 

Location
[  2.6.24-git19
  [  fs
     o  dcache.c

Patch

diff --git a/fs/dcache.c b/fs/dcache.c
index d9ca1e5..44f6cf2 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -89,7 +89,7 @@ static void d_free(struct dentry *dentry)
    if (dentry->d_op && dentry->d_op->d_release)
       dentry->d_op->d_release(dentry);
    /* if dentry was never inserted into hash, immediate free is OK */
-   if (dentry->d_hash.pprev == NULL)
+   if (hlist_unhashed(&dentry->d_hash))
       __d_free(dentry);
    else
       call_rcu(&dentry->d_u.d_rcu, d_callback);
@@ -1408,9 +1408,6 @@ void d_delete(struct dentry * dentry)
    if (atomic_read(&dentry->d_count) == 1) {
       dentry_iput(dentry);
       fsnotify_nameremove(dentry, isdir);
-
-      /* remove this and other inotify debug checks after 2.6.18 */
-      dentry->d_flags &= ~DCACHE_INOTIFY_PARENT_WATCHED;
       return;
    }
 


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