diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-06-29 08:39:57 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-08-02 16:39:50 -0400 |
commit | 71c23397752c0e40722d931ab9152342e9673336 (patch) | |
tree | b6bc0e6b37b815c9f054b5184c8d1b8ec72208ce /fs/jffs2/readinode.c | |
parent | 5bd5c03c317085339deb044ba52fce131a6a0b67 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jffs2/readinode.c b/fs/jffs2/readinode.c index 7b363786c2d2..170da20b97c7 100644 --- a/fs/jffs2/readinode.c +++ b/fs/jffs2/readinode.c | |||
@@ -613,7 +613,7 @@ static inline int read_direntry(struct jffs2_sb_info *c, struct jffs2_raw_node_r | |||
613 | jeb->unchecked_size -= len; | 613 | jeb->unchecked_size -= len; |
614 | c->used_size += len; | 614 | c->used_size += len; |
615 | c->unchecked_size -= len; | 615 | c->unchecked_size -= len; |
616 | ref->flash_offset = ref_offset(ref) | REF_PRISTINE; | 616 | ref->flash_offset = ref_offset(ref) | dirent_node_state(rd); |
617 | spin_unlock(&c->erase_completion_lock); | 617 | spin_unlock(&c->erase_completion_lock); |
618 | } | 618 | } |
619 | 619 | ||