projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec98c68
)
[JFFS2] Obsolete dirent nodes immediately on unlink, where possible.
author
Joakim Tjernlund
<Joakim.Tjernlund@transmode.se>
Fri, 16 Mar 2007 15:15:45 +0000
(16:15 +0100)
committer
David Woodhouse
<dwmw2@infradead.org>
Sat, 21 Apr 2007 03:09:28 +0000
(23:09 -0400)
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
fs/jffs2/write.c
patch
|
blob
|
history
diff --git
a/fs/jffs2/write.c
b/fs/jffs2/write.c
index
6717679
..
57a79a6
100644
(file)
--- a/
fs/jffs2/write.c
+++ b/
fs/jffs2/write.c
@@
-507,8
+507,7
@@
int jffs2_do_unlink(struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f,
uint32_t alloclen;
int ret;
- if (1 /* alternative branch needs testing */ ||
- !jffs2_can_mark_obsolete(c)) {
+ if (!jffs2_can_mark_obsolete(c)) {
/* We can't mark stuff obsolete on the medium. We need to write a deletion dirent */
rd = jffs2_alloc_raw_dirent();