projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc99609
)
[PATCH] fix efs_lookup()
author
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 11 Aug 2008 15:33:57 +0000
(11:33 -0400)
committer
Al 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
patch
|
blob
|
blame
|
history
diff --git
a/fs/efs/namei.c
b/fs/efs/namei.c
index 3a404e7fad5303ad03bbef6cdae5730734e983ab..291abb11e20ef8668fe9799b32b1342d04ece6cc 100644
(file)
--- a/
fs/efs/namei.c
+++ b/
fs/efs/namei.c
@@
-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,