aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2/nodemgmt.c
diff options
context:
space:
mode:
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 bbc873e20807..73a06d01db48 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,
138 } 138 }
139 spin_unlock(&c->erase_completion_lock); 139 spin_unlock(&c->erase_completion_lock);
140 if (!ret) 140 if (!ret)
141 ret = jffs2_prealloc_raw_node_refs(c, 1); 141 ret = jffs2_prealloc_raw_node_refs(c, c->nextblock, 1);
142 if (ret) 142 if (ret)
143 up(&c->alloc_sem); 143 up(&c->alloc_sem);
144 return ret; 144 return ret;
@@ -161,7 +161,7 @@ int jffs2_reserve_space_gc(struct jffs2_sb_info *c, uint32_t minsize,
161 } 161 }
162 spin_unlock(&c->erase_completion_lock); 162 spin_unlock(&c->erase_completion_lock);
163 if (!ret) 163 if (!ret)
164 ret = jffs2_prealloc_raw_node_refs(c, 1); 164 ret = jffs2_prealloc_raw_node_refs(c, c->nextblock, 1);
165 165
166 return ret; 166 return ret;
167} 167}