diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-05-24 20:37:28 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-05-24 20:37:28 -0400 |
commit | f560928baa605e8faaa3de6cc1b11ebb645e97db (patch) | |
tree | 312b87f1d1fc3164ce246d04cbfcd9daede25f7d /fs/jffs2 | |
parent | 12efdde3139c568a59561b69865fd14f37c75603 (diff) |
[JFFS2] Allocate node_ref for wasted space when skipping to page boundary
One more place where we were changing the accounting info without
actually allocating a ref for the lost space...
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'fs/jffs2')
-rw-r--r-- | fs/jffs2/scan.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/jffs2/scan.c b/fs/jffs2/scan.c index 3551c39d747..c25750aa85e 100644 --- a/fs/jffs2/scan.c +++ b/fs/jffs2/scan.c | |||
@@ -244,11 +244,8 @@ 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 | c->nextblock->wasted_size += skip; | 247 | jffs2_prealloc_raw_node_refs(c, 1); |
248 | c->wasted_size += skip; | 248 | jffs2_scan_dirty_space(c, c->nextblock, skip); |
249 | |||
250 | c->nextblock->free_size -= skip; | ||
251 | c->free_size -= skip; | ||
252 | } | 249 | } |
253 | #endif | 250 | #endif |
254 | if (c->nr_erasing_blocks) { | 251 | if (c->nr_erasing_blocks) { |