Skip to content

Commit

Permalink
nfs: replace d_add with d_splice_alias in atomic_open
Browse files Browse the repository at this point in the history
It's a trival change but follows knfsd export document that asks
for d_splice_alias during lookup.

Signed-off-by: Peng Tao <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
  • Loading branch information
Peng Tao authored and amschuma-ntap committed Jul 13, 2017
1 parent 15a8b93 commit 774d951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 774d951

Please sign in to comment.