]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/dcache.c
avoid overflows in kernel/time.c
[linux-2.6-omap-h63xx.git] / fs / dcache.c
index d9ca1e5ceb92f02302fdeedb7bc1e2b6e5768f2e..44f6cf23b70e3baf4affccf31a68568aff7dd496 100644 (file)
@@ -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;
        }