]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/oprofile/buffer_sync.c
PCI: pciehp: cleanup register and field definitions
[linux-2.6-omap-h63xx.git] / drivers / oprofile / buffer_sync.c
index 737bd9484822498d9db077640ed7acc0859babb9..65e8294a9e29db35cfcff8a493682804e9dcffe3 100644 (file)
@@ -200,7 +200,7 @@ static inline unsigned long fast_get_dcookie(struct path *path)
 {
        unsigned long cookie;
 
-       if (path->dentry->d_cookie)
+       if (path->dentry->d_flags & DCACHE_COOKIE)
                return (unsigned long)path->dentry;
        get_dcookie(path, &cookie);
        return cookie;