Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
[JFFS2] Obsolete dirent nodes immediately on unlink, where possible.
Browse files Browse the repository at this point in the history
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
joakim-tjernlund authored and dwmw2 committed Apr 21, 2007
1 parent ec98c68 commit a491486
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/jffs2/write.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a491486

Please sign in to comment.