2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-18 02:04:05 +08:00

ovl: use d_splice_alias() in place of d_add() in lookup

This is required for NFS export.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
Amir Goldstein 2017-09-29 21:43:07 +03:00 committed by Miklos Szeredi
parent 0aceb53e73
commit 829c28be9b

View File

@ -982,9 +982,7 @@ struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry,
dput(index);
kfree(stack);
kfree(d.redirect);
d_add(dentry, inode);
return NULL;
return d_splice_alias(inode, dentry);
out_free_oe:
dentry->d_fsdata = NULL;