mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-06 14:45:14 +00:00
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>
This commit is contained in:
parent
15a8b93fd5
commit
774d9513a3
1 changed files with 1 additions and 1 deletions
|
@ -1518,7 +1518,7 @@ int nfs_atomic_open(struct inode *dir, struct dentry *dentry,
|
||||||
d_drop(dentry);
|
d_drop(dentry);
|
||||||
switch (err) {
|
switch (err) {
|
||||||
case -ENOENT:
|
case -ENOENT:
|
||||||
d_add(dentry, NULL);
|
d_splice_alias(NULL, dentry);
|
||||||
nfs_set_verifier(dentry, nfs_save_change_attribute(dir));
|
nfs_set_verifier(dentry, nfs_save_change_attribute(dir));
|
||||||
break;
|
break;
|
||||||
case -EISDIR:
|
case -EISDIR:
|
||||||
|
|
Loading…
Add table
Reference in a new issue