summaryrefslogtreecommitdiffstats
path: root/fs/jffs2/nodemgmt.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-05-25 01:50:35 +0100
committerDavid Woodhouse <dwmw2@infradead.org>2006-05-25 01:50:35 +0100
commit046b8b9808127d63326a33bc6298c90eaee90eeb (patch)
tree93caaabd7ae10969acb4758634b9b1c9448ef951 /fs/jffs2/nodemgmt.c
parentf61579c33736476e41e296a16c0d4ead4b953187 (diff)
downloadop-kernel-dev-046b8b9808127d63326a33bc6298c90eaee90eeb.zip
op-kernel-dev-046b8b9808127d63326a33bc6298c90eaee90eeb.tar.gz
[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/nodemgmt.c')
-rw-r--r--fs/jffs2/nodemgmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/jffs2/nodemgmt.c b/fs/jffs2/nodemgmt.c
index bbc873e..73a06d0 100644
--- a/fs/jffs2/nodemgmt.c
+++ b/fs/jffs2/nodemgmt.c
@@ -138,7 +138,7 @@ int jffs2_reserve_space(struct jffs2_sb_info *c, uint32_t minsize,
}
spin_unlock(&c->erase_completion_lock);
if (!ret)
- ret = jffs2_prealloc_raw_node_refs(c, 1);
+ ret = jffs2_prealloc_raw_node_refs(c, c->nextblock, 1);
if (ret)
up(&c->alloc_sem);
return ret;
@@ -161,7 +161,7 @@ int jffs2_reserve_space_gc(struct jffs2_sb_info *c, uint32_t minsize,
}
spin_unlock(&c->erase_completion_lock);
if (!ret)
- ret = jffs2_prealloc_raw_node_refs(c, 1);
+ ret = jffs2_prealloc_raw_node_refs(c, c->nextblock, 1);
return ret;
}
OpenPOWER on IntegriCloud