[JFFS2] Correct accounting of erroneous cleanmarkers and failed
summaries.
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Sun May 21 14:59:09 EDT 2006
Commit: fb9fbbcc9389edabb172ac1b6419c01e32046787
Parent: f1f9671bd8f7d2ac6a918bad806ab5bdc0daaf4e
Author: David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Sat May 20 20:08:42 2006 +0100
Commit: David Woodhouse <dwmw2 at infradead.org>
CommitDate: Sat May 20 20:08:42 2006 +0100
[JFFS2] Correct accounting of erroneous cleanmarkers and failed summaries.
It should all be counted as dirty space, not wasted and _definitely_ not
unchecked.
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
fs/jffs2/summary.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/jffs2/summary.c b/fs/jffs2/summary.c
index 9121897..95b5bf8 100644
--- a/fs/jffs2/summary.c
+++ b/fs/jffs2/summary.c
@@ -617,11 +617,11 @@ int jffs2_sum_scan_sumnode(struct jffs2_
if (je32_to_cpu(summary->cln_mkr) != c->cleanmarker_size) {
dbg_summary("CLEANMARKER node has totlen 0x%x != normal 0x%x\n",
je32_to_cpu(summary->cln_mkr), c->cleanmarker_size);
- UNCHECKED_SPACE(PAD(je32_to_cpu(summary->cln_mkr)));
+ DIRTY_SPACE(PAD(je32_to_cpu(summary->cln_mkr)));
} else if (jeb->first_node) {
dbg_summary("CLEANMARKER node not first node in block "
"(0x%08x)\n", jeb->offset);
- UNCHECKED_SPACE(PAD(je32_to_cpu(summary->cln_mkr)));
+ DIRTY_SPACE(PAD(je32_to_cpu(summary->cln_mkr)));
} else {
struct jffs2_raw_node_ref *marker_ref = jffs2_alloc_raw_node_ref();
@@ -800,7 +800,7 @@ #endif
infosize, jeb->offset + c->sector_size - jeb->free_size, ret, retlen);
c->summary->sum_size = JFFS2_SUMMARY_NOSUM_SIZE;
- WASTED_SPACE(infosize);
+ DIRTY_SPACE(infosize);
return 1;
}
More information about the linux-mtd-cvs
mailing list