aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2/readinode.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-06-29 08:39:57 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2007-06-29 08:39:57 -0400
commit43dfa07fbb6b8bd5b6173a5bab48470f578c8e5b (patch)
tree2818c8f74de363c2a4084b9b050685d0a17beec9 /fs/jffs2/readinode.c
parent663d77a7ccfd407cf7491dbd53c7c17eef58c96a (diff)
[JFFS2] Deletion dirents should be REF_NORMAL, not REF_PRISTINE.
Otherwise they'll never actually get garbage-collected. Noted by Jonathan Larmour. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'fs/jffs2/readinode.c')
-rw-r--r--fs/jffs2/readinode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jffs2/readinode.c b/fs/jffs2/readinode.c
index 12e83f67eee4..b66eb0c4a0c5 100644
--- a/fs/jffs2/readinode.c
+++ b/fs/jffs2/readinode.c
@@ -615,7 +615,7 @@ static inline int read_direntry(struct jffs2_sb_info *c, struct jffs2_raw_node_r
615 jeb->unchecked_size -= len; 615 jeb->unchecked_size -= len;
616 c->used_size += len; 616 c->used_size += len;
617 c->unchecked_size -= len; 617 c->unchecked_size -= len;
618 ref->flash_offset = ref_offset(ref) | REF_PRISTINE; 618 ref->flash_offset = ref_offset(ref) | dirent_node_state(rd);
619 spin_unlock(&c->erase_completion_lock); 619 spin_unlock(&c->erase_completion_lock);
620 } 620 }
621 621