mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-02 07:13:31 +01:00
[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 <[email protected]>
This commit is contained in:
1 parent
12efdde313
commit
f560928baa
1 file changed
+2
-5
+2
-5
@@ -244,11 +244,8 @@ int jffs2_scan_medium(struct jffs2_sb_info *c)
|
||||
|
||||
D1(printk(KERN_DEBUG "jffs2_scan_medium(): Skipping %d bytes in nextblock to ensure page alignment\n",
|
||||
skip));
|
||||
c->nextblock->wasted_size += skip;
|
||||
c->wasted_size += skip;
|
||||
|
||||
c->nextblock->free_size -= skip;
|
||||
c->free_size -= skip;
|
||||
jffs2_prealloc_raw_node_refs(c, 1);
|
||||
jffs2_scan_dirty_space(c, c->nextblock, skip);
|
||||
}
|
||||
#endif
|
||||
if (c->nr_erasing_blocks) {
|
||||
|
||||
Reference in new issue
Block a user