diff options
author | Peng Tao <tao.peng@primarydata.com> | 2017-06-29 16:34:50 +0300 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2017-07-13 23:00:14 +0300 |
commit | 774d9513a3f29048cce3ed5df3b0a0da9897678c (patch) | |
tree | 755c484fc36d165580c24e273af6008d6d5b3920 /fs/nfs/dir.c | |
parent | 15a8b93fd5690de017ce665382ea45e5d61811a4 (diff) | |
download | linux-774d9513a3f29048cce3ed5df3b0a0da9897678c.tar.xz |
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/dir.c')
-rw-r--r-- | fs/nfs/dir.c | 2 |
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: |