Use the right predicate in ->atomic_open() instances
[deliverable/linux.git] / fs / nfs / dir.c
index d8015a03db4c40c114abd6e2afeab732a7eb565f..3d5eb5edbf509a9ebdc21878026bf26f32b8363f 100644 (file)
@@ -1504,7 +1504,7 @@ int nfs_atomic_open(struct inode *dir, struct dentry *dentry,
 
        /* NFS only supports OPEN on regular files */
        if ((open_flags & O_DIRECTORY)) {
-               if (!d_unhashed(dentry)) {
+               if (!d_in_lookup(dentry)) {
                        /*
                         * Hashed negative dentry with O_DIRECTORY: dentry was
                         * revalidated and is fine, no need to perform lookup
This page took 0.034054 seconds and 5 git commands to generate.