Skip to content

Commit

Permalink
[JFFS2] Correctly handle wasted space before summary node.
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
David Woodhouse committed May 25, 2006
1 parent c38c1b6 commit f61579c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/jffs2/summary.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,11 +630,11 @@ int jffs2_sum_scan_sumnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb
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",
Expand Down

0 comments on commit f61579c

Please sign in to comment.