diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-05-24 20:42:40 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-05-24 20:42:40 -0400 |
commit | f61579c33736476e41e296a16c0d4ead4b953187 (patch) | |
tree | e71114ae2b4afb8bd660c84ad22950cebc1870a5 /fs/jffs2 | |
parent | c38c1b613d742b5fa075071568f44dc8ec9f1cb8 (diff) |
[JFFS2] Correctly handle wasted space before summary node.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'fs/jffs2')
-rw-r--r-- | fs/jffs2/summary.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/jffs2/summary.c b/fs/jffs2/summary.c index 7bddd33f866a..0c66d16eaa22 100644 --- a/fs/jffs2/summary.c +++ b/fs/jffs2/summary.c | |||
@@ -630,11 +630,11 @@ int jffs2_sum_scan_sumnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb | |||
630 | return ret; /* real error */ | 630 | return ret; /* real error */ |
631 | 631 | ||
632 | /* for PARANOIA_CHECK */ | 632 | /* for PARANOIA_CHECK */ |
633 | ret = jffs2_prealloc_raw_node_refs(c, 1); | 633 | ret = jffs2_prealloc_raw_node_refs(c, 2); |
634 | if (ret) | 634 | if (ret) |
635 | return ret; | 635 | return ret; |
636 | 636 | ||
637 | jffs2_link_node_ref(c, jeb, (jeb->offset + ofs) | REF_NORMAL, sumsize, NULL); | 637 | sum_link_node_ref(c, jeb, ofs | REF_NORMAL, sumsize, NULL); |
638 | 638 | ||
639 | if (unlikely(jeb->free_size)) { | 639 | if (unlikely(jeb->free_size)) { |
640 | JFFS2_WARNING("Free size 0x%x bytes in eraseblock @0x%08x with summary?\n", | 640 | JFFS2_WARNING("Free size 0x%x bytes in eraseblock @0x%08x with summary?\n", |