Skip to content

Commit

Permalink
openpromfs: switch to d_splice_alias()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed May 22, 2018
1 parent b113a6d commit 0ed883f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/openpromfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,7 @@ static struct dentry *openpromfs_lookup(struct inode *dir, struct dentry *dentry
break;
}

d_add(dentry, inode);
return NULL;
return d_splice_alias(inode, dentry);
}

static int openpromfs_readdir(struct file *file, struct dir_context *ctx)
Expand Down

0 comments on commit 0ed883f

Please sign in to comment.