]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] fix efs_lookup()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 11 Aug 2008 15:33:57 +0000 (11:33 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 25 Aug 2008 05:18:04 +0000 (01:18 -0400)
it needs to use d_splice_alias(), not d_add()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
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,