mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 03:27:30 -04:00
ecryptfs: use d_splice_alias() for ->lookup() return value
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -350,11 +350,9 @@ static struct dentry *ecryptfs_lookup_interpose(struct dentry *dentry,
|
||||
*/
|
||||
lower_inode = READ_ONCE(lower_dentry->d_inode);
|
||||
|
||||
if (!lower_inode) {
|
||||
/* We want to add because we couldn't find in lower */
|
||||
d_add(dentry, NULL);
|
||||
return NULL;
|
||||
}
|
||||
if (!lower_inode) /* We want to add because we couldn't find in lower */
|
||||
return d_splice_alias(NULL, dentry);
|
||||
|
||||
inode = __ecryptfs_get_inode(lower_inode, dentry->d_sb);
|
||||
if (IS_ERR(inode)) {
|
||||
printk(KERN_ERR "%s: Error interposing; rc = [%ld]\n",
|
||||
|
||||
Reference in New Issue
Block a user