Skip to content
Snippets Groups Projects
Commit 774d9513 authored by Peng Tao's avatar Peng Tao Committed by Anna Schumaker
Browse files

nfs: replace d_add with d_splice_alias in atomic_open


It's a trival change but follows knfsd export document that asks
for d_splice_alias during lookup.

Signed-off-by: default avatarPeng Tao <tao.peng@primarydata.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent 15a8b93f
No related merge requests found
......@@ -1518,7 +1518,7 @@ int nfs_atomic_open(struct inode *dir, struct dentry *dentry,
d_drop(dentry);
switch (err) {
case -ENOENT:
d_add(dentry, NULL);
d_splice_alias(NULL, dentry);
nfs_set_verifier(dentry, nfs_save_change_attribute(dir));
break;
case -EISDIR:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment