Commit a596a23b authored by Al Viro's avatar Al Viro

bfs_lookup(): use d_splice_alias()

code is actually simpler that way.
Acked-by: default avatar"Tigran A. Aivazian" <>
Signed-off-by: default avatarAl Viro <>
parent 837f3ec6
......@@ -141,14 +141,9 @@ static struct dentry *bfs_lookup(struct inode *dir, struct dentry *dentry,
unsigned long ino = (unsigned long)le16_to_cpu(de->ino);
inode = bfs_iget(dir->i_sb, ino);
if (IS_ERR(inode)) {
return ERR_CAST(inode);
d_add(dentry, inode);
return NULL;
return d_splice_alias(inode, dentry);
static int bfs_link(struct dentry *old, struct inode *dir,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment