Commit c38c1b613d742b5fa075071568f44dc8ec9f1cb8
1 parent
f560928baa
Exists in
master
and in
7 other branches
[JFFS2] jffs2_free_all_node_refs() doesn't free them all. Rename it.
... to jffs2_free_jeb_node_refs() since that's what it does. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Showing 4 changed files with 5 additions and 5 deletions Side-by-side Diff
fs/jffs2/erase.c
... | ... | @@ -135,7 +135,7 @@ |
135 | 135 | c->used_size -= jeb->used_size; |
136 | 136 | c->dirty_size -= jeb->dirty_size; |
137 | 137 | jeb->wasted_size = jeb->used_size = jeb->dirty_size = jeb->free_size = 0; |
138 | - jffs2_free_all_node_refs(c, jeb); | |
138 | + jffs2_free_jeb_node_refs(c, jeb); | |
139 | 139 | list_add(&jeb->list, &c->erasing_list); |
140 | 140 | spin_unlock(&c->erase_completion_lock); |
141 | 141 | |
... | ... | @@ -283,7 +283,7 @@ |
283 | 283 | jffs2_del_ino_cache(c, ic); |
284 | 284 | } |
285 | 285 | |
286 | -void jffs2_free_all_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) | |
286 | +void jffs2_free_jeb_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) | |
287 | 287 | { |
288 | 288 | struct jffs2_raw_node_ref *ref; |
289 | 289 | D1(printk(KERN_DEBUG "Freeing all node refs for eraseblock offset 0x%08x\n", jeb->offset)); |
fs/jffs2/nodelist.h
... | ... | @@ -417,7 +417,7 @@ |
417 | 417 | |
418 | 418 | /* erase.c */ |
419 | 419 | void jffs2_erase_pending_blocks(struct jffs2_sb_info *c, int count); |
420 | -void jffs2_free_all_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); | |
420 | +void jffs2_free_jeb_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); | |
421 | 421 | |
422 | 422 | #ifdef CONFIG_JFFS2_FS_WRITEBUFFER |
423 | 423 | /* wbuf.c */ |
fs/jffs2/nodemgmt.c
... | ... | @@ -618,7 +618,7 @@ |
618 | 618 | /* The erase_free_sem is locked, and has been since before we marked the node obsolete |
619 | 619 | and potentially put its eraseblock onto the erase_pending_list. Thus, we know that |
620 | 620 | the block hasn't _already_ been erased, and that 'ref' itself hasn't been freed yet |
621 | - by jffs2_free_all_node_refs() in erase.c. Which is nice. */ | |
621 | + by jffs2_free_jeb_node_refs() in erase.c. Which is nice. */ | |
622 | 622 | |
623 | 623 | D1(printk(KERN_DEBUG "obliterating obsoleted node at 0x%08x\n", ref_offset(ref))); |
624 | 624 | ret = jffs2_flash_read(c, ref_offset(ref), sizeof(n), &retlen, (char *)&n); |
fs/jffs2/summary.c