[JFFS2] Correctly handle wasted space before summary node.

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Thu May 25 08:59:02 EDT 2006


Commit:     f61579c33736476e41e296a16c0d4ead4b953187
Parent:     c38c1b613d742b5fa075071568f44dc8ec9f1cb8
Author:     David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Thu May 25 01:42:40 2006 +0100
Commit:     David Woodhouse <dwmw2 at infradead.org>
CommitDate: Thu May 25 01:42:40 2006 +0100

    [JFFS2] Correctly handle wasted space before summary node.
    
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>

 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 7bddd33..0c66d16 100644
--- a/fs/jffs2/summary.c
+++ b/fs/jffs2/summary.c
@@ -630,11 +630,11 @@ int jffs2_sum_scan_sumnode(struct jffs2_
 		return ret;		/* real error */
 
 	/* for PARANOIA_CHECK */
-	ret = jffs2_prealloc_raw_node_refs(c, 1);
+	ret = jffs2_prealloc_raw_node_refs(c, 2);
 	if (ret)
 		return ret;
 
-	jffs2_link_node_ref(c, jeb, (jeb->offset + ofs) | REF_NORMAL, sumsize, NULL);
+	sum_link_node_ref(c, jeb, ofs | REF_NORMAL, sumsize, NULL);
 
 	if (unlikely(jeb->free_size)) {
 		JFFS2_WARNING("Free size 0x%x bytes in eraseblock @0x%08x with summary?\n",



More information about the linux-mtd-cvs mailing list