Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile
[sfrench/cifs-2.6.git] / drivers / oprofile / buffer_sync.c
index ac014cb27915006b07426f509191bedbda6469c8..9da5a4b811337562dbcf708dcad927756264381d 100644 (file)
@@ -201,7 +201,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;