aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2/summary.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-05-24 20:50:35 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2006-05-24 20:50:35 -0400
commit046b8b9808127d63326a33bc6298c90eaee90eeb (patch)
tree93caaabd7ae10969acb4758634b9b1c9448ef951 /fs/jffs2/summary.c
parentf61579c33736476e41e296a16c0d4ead4b953187 (diff)
[JFFS2] Add 'jeb' argument to jffs2_prealloc_raw_node_refs()
Preallocation of refs is shortly going to be a per-eraseblock thing, rather than per-filesystem. Add the required argument to the function. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'fs/jffs2/summary.c')
-rw-r--r--fs/jffs2/summary.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/jffs2/summary.c b/fs/jffs2/summary.c
index 0c66d16eaa22..a60bbcea5b7f 100644
--- a/fs/jffs2/summary.c
+++ b/fs/jffs2/summary.c
@@ -400,7 +400,7 @@ static int jffs2_sum_process_sum_data(struct jffs2_sb_info *c, struct jffs2_eras
400 dbg_summary("processing summary index %d\n", i); 400 dbg_summary("processing summary index %d\n", i);
401 401
402 /* Make sure there's a spare ref for dirty space */ 402 /* Make sure there's a spare ref for dirty space */
403 err = jffs2_prealloc_raw_node_refs(c, 2); 403 err = jffs2_prealloc_raw_node_refs(c, jeb, 2);
404 if (err) 404 if (err)
405 return err; 405 return err;
406 406
@@ -630,7 +630,7 @@ 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, 2); 633 ret = jffs2_prealloc_raw_node_refs(c, jeb, 2);
634 if (ret) 634 if (ret)
635 return ret; 635 return ret;
636 636
@@ -815,9 +815,9 @@ int jffs2_sum_write_sumnode(struct jffs2_sb_info *c)
815 dbg_summary("called\n"); 815 dbg_summary("called\n");
816 816
817 spin_unlock(&c->erase_completion_lock); 817 spin_unlock(&c->erase_completion_lock);
818 jffs2_prealloc_raw_node_refs(c, 1);
819 818
820 jeb = c->nextblock; 819 jeb = c->nextblock;
820 jffs2_prealloc_raw_node_refs(c, jeb, 1);
821 821
822 if (!c->summary->sum_num || !c->summary->sum_list_head) { 822 if (!c->summary->sum_num || !c->summary->sum_list_head) {
823 JFFS2_WARNING("Empty summary info!!!\n"); 823 JFFS2_WARNING("Empty summary info!!!\n");