summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorPeng Tao <tao.peng@primarydata.com>2017-06-29 06:34:50 -0700
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2017-07-13 16:00:14 -0400
commit774d9513a3f29048cce3ed5df3b0a0da9897678c (patch)
tree755c484fc36d165580c24e273af6008d6d5b3920 /fs/nfs
parent15a8b93fd5690de017ce665382ea45e5d61811a4 (diff)
downloadlinux-774d9513a3f29048cce3ed5df3b0a0da9897678c.tar.bz2
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: Peng Tao <tao.peng@primarydata.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index 90bc4025ca3c..1255891e5695 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -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: