Commit a491486a authored by Joakim Tjernlund's avatar Joakim Tjernlund Committed by David Woodhouse

[JFFS2] Obsolete dirent nodes immediately on unlink, where possible.

Signed-off-by: default avatarJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent ec98c681
...@@ -507,8 +507,7 @@ int jffs2_do_unlink(struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f, ...@@ -507,8 +507,7 @@ int jffs2_do_unlink(struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f,
uint32_t alloclen; uint32_t alloclen;
int ret; int ret;
if (1 /* alternative branch needs testing */ || if (!jffs2_can_mark_obsolete(c)) {
!jffs2_can_mark_obsolete(c)) {
/* We can't mark stuff obsolete on the medium. We need to write a deletion dirent */ /* We can't mark stuff obsolete on the medium. We need to write a deletion dirent */
rd = jffs2_alloc_raw_dirent(); rd = jffs2_alloc_raw_dirent();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment