diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-06-29 13:39:57 +0100 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-06-29 13:39:57 +0100 |
commit | 43dfa07fbb6b8bd5b6173a5bab48470f578c8e5b (patch) | |
tree | 2818c8f74de363c2a4084b9b050685d0a17beec9 /fs/jffs2/readinode.c | |
parent | 663d77a7ccfd407cf7491dbd53c7c17eef58c96a (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 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 jeb->unchecked_size -= len; c->used_size += len; c->unchecked_size -= len; - ref->flash_offset = ref_offset(ref) | REF_PRISTINE; + ref->flash_offset = ref_offset(ref) | dirent_node_state(rd); spin_unlock(&c->erase_completion_lock); } |