diff options
author | Peng Tao <tao.peng@primarydata.com> | 2017-06-29 09:34:50 -0400 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2017-07-13 16:00:14 -0400 |
commit | 774d9513a3f29048cce3ed5df3b0a0da9897678c (patch) | |
tree | 755c484fc36d165580c24e273af6008d6d5b3920 | |
parent | 15a8b93fd5690de017ce665382ea45e5d61811a4 (diff) |
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>
-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, | |||
1518 | d_drop(dentry); | 1518 | d_drop(dentry); |
1519 | switch (err) { | 1519 | switch (err) { |
1520 | case -ENOENT: | 1520 | case -ENOENT: |
1521 | d_add(dentry, NULL); | 1521 | d_splice_alias(NULL, dentry); |
1522 | nfs_set_verifier(dentry, nfs_save_change_attribute(dir)); | 1522 | nfs_set_verifier(dentry, nfs_save_change_attribute(dir)); |
1523 | break; | 1523 | break; |
1524 | case -EISDIR: | 1524 | case -EISDIR: |