Skip to content

Commit

Permalink
[PATCH] fix efs_lookup()
Browse files Browse the repository at this point in the history
it needs to use d_splice_alias(), not d_add()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Aug 25, 2008
1 parent cc99609 commit 2d8a10c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/efs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ struct dentry *efs_lookup(struct inode *dir, struct dentry *dentry, struct namei
}
unlock_kernel();

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

static struct inode *efs_nfs_get_inode(struct super_block *sb, u64 ino,
Expand Down

0 comments on commit 2d8a10c

Please sign in to comment.