diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-05-24 20:50:35 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-05-24 20:50:35 -0400 |
commit | 046b8b9808127d63326a33bc6298c90eaee90eeb (patch) | |
tree | 93caaabd7ae10969acb4758634b9b1c9448ef951 /fs/jffs2/scan.c | |
parent | f61579c33736476e41e296a16c0d4ead4b953187 (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/scan.c')
-rw-r--r-- | fs/jffs2/scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/jffs2/scan.c b/fs/jffs2/scan.c index c25750aa85e3..5bbd4a36c75e 100644 --- a/fs/jffs2/scan.c +++ b/fs/jffs2/scan.c | |||
@@ -244,7 +244,7 @@ int jffs2_scan_medium(struct jffs2_sb_info *c) | |||
244 | 244 | ||
245 | D1(printk(KERN_DEBUG "jffs2_scan_medium(): Skipping %d bytes in nextblock to ensure page alignment\n", | 245 | D1(printk(KERN_DEBUG "jffs2_scan_medium(): Skipping %d bytes in nextblock to ensure page alignment\n", |
246 | skip)); | 246 | skip)); |
247 | jffs2_prealloc_raw_node_refs(c, 1); | 247 | jffs2_prealloc_raw_node_refs(c, c->nextblock, 1); |
248 | jffs2_scan_dirty_space(c, c->nextblock, skip); | 248 | jffs2_scan_dirty_space(c, c->nextblock, skip); |
249 | } | 249 | } |
250 | #endif | 250 | #endif |
@@ -576,7 +576,7 @@ scan_more: | |||
576 | jffs2_dbg_acct_paranoia_check_nolock(c, jeb); | 576 | jffs2_dbg_acct_paranoia_check_nolock(c, jeb); |
577 | 577 | ||
578 | /* Make sure there are node refs available for use */ | 578 | /* Make sure there are node refs available for use */ |
579 | err = jffs2_prealloc_raw_node_refs(c, 2); | 579 | err = jffs2_prealloc_raw_node_refs(c, jeb, 2); |
580 | if (err) | 580 | if (err) |
581 | return err; | 581 | return err; |
582 | 582 | ||