projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c002a6c
)
[JFFS2] Use d_splice_alias() not d_add() in jffs2_lookup()
author
David Woodhouse
<dwmw2@infradead.org>
Mon, 18 Aug 2008 14:36:47 +0000
(15:36 +0100)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 23 Oct 2008 09:13:12 +0000
(
05:13
-0400)
Now that JFFS2 can be exported by NFS, we need to get this right.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/jffs2/dir.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/jffs2/dir.c
b/fs/jffs2/dir.c
index b1aaae823a5227de63ebb0175e904f435ab27772..621bdfa994e71268d0f85f27e938765e12937c8e 100644
(file)
--- a/
fs/jffs2/dir.c
+++ b/
fs/jffs2/dir.c
@@
-108,9
+108,7
@@
static struct dentry *jffs2_lookup(struct inode *dir_i, struct dentry *target,
}
}
- d_add(target, inode);
-
- return NULL;
+ return d_splice_alias(inode, target);
}
/***********************************************************************/