From: Peng Tao Date: Thu, 29 Jun 2017 13:34:50 +0000 (-0700) Subject: nfs: replace d_add with d_splice_alias in atomic_open X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=774d9513a3f29048cce3ed5df3b0a0da9897678c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Anna Schumaker --- 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: