Skip to content
Snippets Groups Projects
Commit 829c28be authored by Amir Goldstein's avatar Amir Goldstein Committed by Miklos Szeredi
Browse files

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


This is required for NFS export.

Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 0aceb53e
No related branches found
No related tags found
No related merge requests found
...@@ -982,9 +982,7 @@ struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry, ...@@ -982,9 +982,7 @@ struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry,
dput(index); dput(index);
kfree(stack); kfree(stack);
kfree(d.redirect); kfree(d.redirect);
d_add(dentry, inode); return d_splice_alias(inode, dentry);
return NULL;
out_free_oe: out_free_oe:
dentry->d_fsdata = NULL; dentry->d_fsdata = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment