diff options
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r-- | fs/nfs/dir.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 3f0def65b8ab..166a833be661 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c | |||
@@ -992,9 +992,10 @@ static struct dentry *nfs_atomic_lookup(struct inode *dir, struct dentry *dentry | |||
992 | } | 992 | } |
993 | dentry->d_op = NFS_PROTO(dir)->dentry_ops; | 993 | dentry->d_op = NFS_PROTO(dir)->dentry_ops; |
994 | 994 | ||
995 | /* Let vfs_create() deal with O_EXCL */ | 995 | /* Let vfs_create() deal with O_EXCL. Instantiate, but don't hash |
996 | * the dentry. */ | ||
996 | if (nd->intent.open.flags & O_EXCL) { | 997 | if (nd->intent.open.flags & O_EXCL) { |
997 | d_add(dentry, NULL); | 998 | d_instantiate(dentry, NULL); |
998 | goto out; | 999 | goto out; |
999 | } | 1000 | } |
1000 | 1001 | ||