Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 774d9513 authored by Peng Tao's avatar Peng Tao Committed by Anna Schumaker
Browse files

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: default avatarPeng Tao <tao.peng@primarydata.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent 15a8b93f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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: