]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/efs/namei.c
[PATCH] fix efs_lookup()
[linux-2.6-omap-h63xx.git] / fs / efs / namei.c
index 3a404e7fad5303ad03bbef6cdae5730734e983ab..291abb11e20ef8668fe9799b32b1342d04ece6cc 100644 (file)
@@ -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,