summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ceph/file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index d277f71abe0b..d2854cd2f4f5 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -462,6 +462,9 @@ int ceph_atomic_open(struct inode *dir, struct dentry *dentry,
462 err = ceph_security_init_secctx(dentry, mode, &as_ctx); 462 err = ceph_security_init_secctx(dentry, mode, &as_ctx);
463 if (err < 0) 463 if (err < 0)
464 goto out_ctx; 464 goto out_ctx;
465 } else if (!d_in_lookup(dentry)) {
466 /* If it's not being looked up, it's negative */
467 return -ENOENT;
465 } 468 }
466 469
467 /* do the open */ 470 /* do the open */