Lines Matching +full:ref2 +full:-
2 * JFFS2 -- Journalling Flash File System, Version 2.
4 * Copyright © 2001-2007 Red Hat, Inc.
5 * Copyright © 2004-2010 David Woodhouse <dwmw2@infradead.org>
31 if (unlikely(jeb && jeb->used_size + jeb->dirty_size + in __jffs2_dbg_acct_sanity_check_nolock()
32 jeb->free_size + jeb->wasted_size + in __jffs2_dbg_acct_sanity_check_nolock()
33 jeb->unchecked_size != c->sector_size)) { in __jffs2_dbg_acct_sanity_check_nolock()
34 JFFS2_ERROR("eeep, space accounting for block at 0x%08x is screwed.\n", jeb->offset); in __jffs2_dbg_acct_sanity_check_nolock()
36 jeb->free_size, jeb->dirty_size, jeb->used_size, in __jffs2_dbg_acct_sanity_check_nolock()
37 jeb->wasted_size, jeb->unchecked_size, c->sector_size); in __jffs2_dbg_acct_sanity_check_nolock()
41 if (unlikely(c->used_size + c->dirty_size + c->free_size + c->erasing_size + c->bad_size in __jffs2_dbg_acct_sanity_check_nolock()
42 + c->wasted_size + c->unchecked_size != c->flash_size)) { in __jffs2_dbg_acct_sanity_check_nolock()
45 c->free_size, c->dirty_size, c->used_size, c->erasing_size, c->bad_size, in __jffs2_dbg_acct_sanity_check_nolock()
46 c->wasted_size, c->unchecked_size, c->flash_size); in __jffs2_dbg_acct_sanity_check_nolock()
55 spin_lock(&c->erase_completion_lock); in __jffs2_dbg_acct_sanity_check()
57 spin_unlock(&c->erase_completion_lock); in __jffs2_dbg_acct_sanity_check()
69 mutex_lock(&f->sem); in __jffs2_dbg_fragtree_paranoia_check()
71 mutex_unlock(&f->sem); in __jffs2_dbg_fragtree_paranoia_check()
80 for (frag = frag_first(&f->fragtree); frag; frag = frag_next(frag)) { in __jffs2_dbg_fragtree_paranoia_check_nolock()
81 struct jffs2_full_dnode *fn = frag->node; in __jffs2_dbg_fragtree_paranoia_check_nolock()
83 if (!fn || !fn->raw) in __jffs2_dbg_fragtree_paranoia_check_nolock()
86 if (ref_flags(fn->raw) == REF_PRISTINE) { in __jffs2_dbg_fragtree_paranoia_check_nolock()
87 if (fn->frags > 1) { in __jffs2_dbg_fragtree_paranoia_check_nolock()
89 ref_offset(fn->raw), fn->frags); in __jffs2_dbg_fragtree_paranoia_check_nolock()
93 /* A hole node which isn't multi-page should be garbage-collected in __jffs2_dbg_fragtree_paranoia_check_nolock()
98 if (frag->ofs & (PAGE_SIZE-1) && frag_prev(frag) in __jffs2_dbg_fragtree_paranoia_check_nolock()
99 && frag_prev(frag)->size < PAGE_SIZE && frag_prev(frag)->node) { in __jffs2_dbg_fragtree_paranoia_check_nolock()
100 …JFFS2_ERROR("REF_PRISTINE node at 0x%08x had a previous non-hole frag in the same page. Tell dwmw2… in __jffs2_dbg_fragtree_paranoia_check_nolock()
101 ref_offset(fn->raw)); in __jffs2_dbg_fragtree_paranoia_check_nolock()
105 if ((frag->ofs+frag->size) & (PAGE_SIZE-1) && frag_next(frag) in __jffs2_dbg_fragtree_paranoia_check_nolock()
106 && frag_next(frag)->size < PAGE_SIZE && frag_next(frag)->node) { in __jffs2_dbg_fragtree_paranoia_check_nolock()
107 …JFFS2_ERROR("REF_PRISTINE node at 0x%08x (%08x-%08x) had a following non-hole frag in the same pag… in __jffs2_dbg_fragtree_paranoia_check_nolock()
108 ref_offset(fn->raw), frag->ofs, frag->ofs+frag->size); in __jffs2_dbg_fragtree_paranoia_check_nolock()
168 if (c->gcblock) { in __jffs2_dbg_superblock_counts()
170 free += c->gcblock->free_size; in __jffs2_dbg_superblock_counts()
171 dirty += c->gcblock->dirty_size; in __jffs2_dbg_superblock_counts()
172 used += c->gcblock->used_size; in __jffs2_dbg_superblock_counts()
173 wasted += c->gcblock->wasted_size; in __jffs2_dbg_superblock_counts()
174 unchecked += c->gcblock->unchecked_size; in __jffs2_dbg_superblock_counts()
176 if (c->nextblock) { in __jffs2_dbg_superblock_counts()
178 free += c->nextblock->free_size; in __jffs2_dbg_superblock_counts()
179 dirty += c->nextblock->dirty_size; in __jffs2_dbg_superblock_counts()
180 used += c->nextblock->used_size; in __jffs2_dbg_superblock_counts()
181 wasted += c->nextblock->wasted_size; in __jffs2_dbg_superblock_counts()
182 unchecked += c->nextblock->unchecked_size; in __jffs2_dbg_superblock_counts()
184 list_for_each_entry(jeb, &c->clean_list, list) { in __jffs2_dbg_superblock_counts()
186 free += jeb->free_size; in __jffs2_dbg_superblock_counts()
187 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts()
188 used += jeb->used_size; in __jffs2_dbg_superblock_counts()
189 wasted += jeb->wasted_size; in __jffs2_dbg_superblock_counts()
190 unchecked += jeb->unchecked_size; in __jffs2_dbg_superblock_counts()
192 list_for_each_entry(jeb, &c->very_dirty_list, list) { in __jffs2_dbg_superblock_counts()
194 free += jeb->free_size; in __jffs2_dbg_superblock_counts()
195 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts()
196 used += jeb->used_size; in __jffs2_dbg_superblock_counts()
197 wasted += jeb->wasted_size; in __jffs2_dbg_superblock_counts()
198 unchecked += jeb->unchecked_size; in __jffs2_dbg_superblock_counts()
200 list_for_each_entry(jeb, &c->dirty_list, list) { in __jffs2_dbg_superblock_counts()
202 free += jeb->free_size; in __jffs2_dbg_superblock_counts()
203 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts()
204 used += jeb->used_size; in __jffs2_dbg_superblock_counts()
205 wasted += jeb->wasted_size; in __jffs2_dbg_superblock_counts()
206 unchecked += jeb->unchecked_size; in __jffs2_dbg_superblock_counts()
208 list_for_each_entry(jeb, &c->erasable_list, list) { in __jffs2_dbg_superblock_counts()
210 free += jeb->free_size; in __jffs2_dbg_superblock_counts()
211 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts()
212 used += jeb->used_size; in __jffs2_dbg_superblock_counts()
213 wasted += jeb->wasted_size; in __jffs2_dbg_superblock_counts()
214 unchecked += jeb->unchecked_size; in __jffs2_dbg_superblock_counts()
216 list_for_each_entry(jeb, &c->erasable_pending_wbuf_list, list) { in __jffs2_dbg_superblock_counts()
218 free += jeb->free_size; in __jffs2_dbg_superblock_counts()
219 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts()
220 used += jeb->used_size; in __jffs2_dbg_superblock_counts()
221 wasted += jeb->wasted_size; in __jffs2_dbg_superblock_counts()
222 unchecked += jeb->unchecked_size; in __jffs2_dbg_superblock_counts()
224 list_for_each_entry(jeb, &c->erase_pending_list, list) { in __jffs2_dbg_superblock_counts()
226 free += jeb->free_size; in __jffs2_dbg_superblock_counts()
227 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts()
228 used += jeb->used_size; in __jffs2_dbg_superblock_counts()
229 wasted += jeb->wasted_size; in __jffs2_dbg_superblock_counts()
230 unchecked += jeb->unchecked_size; in __jffs2_dbg_superblock_counts()
232 list_for_each_entry(jeb, &c->free_list, list) { in __jffs2_dbg_superblock_counts()
234 free += jeb->free_size; in __jffs2_dbg_superblock_counts()
235 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts()
236 used += jeb->used_size; in __jffs2_dbg_superblock_counts()
237 wasted += jeb->wasted_size; in __jffs2_dbg_superblock_counts()
238 unchecked += jeb->unchecked_size; in __jffs2_dbg_superblock_counts()
240 list_for_each_entry(jeb, &c->bad_used_list, list) { in __jffs2_dbg_superblock_counts()
242 free += jeb->free_size; in __jffs2_dbg_superblock_counts()
243 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts()
244 used += jeb->used_size; in __jffs2_dbg_superblock_counts()
245 wasted += jeb->wasted_size; in __jffs2_dbg_superblock_counts()
246 unchecked += jeb->unchecked_size; in __jffs2_dbg_superblock_counts()
249 list_for_each_entry(jeb, &c->erasing_list, list) { in __jffs2_dbg_superblock_counts()
251 erasing += c->sector_size; in __jffs2_dbg_superblock_counts()
253 list_for_each_entry(jeb, &c->erase_checking_list, list) { in __jffs2_dbg_superblock_counts()
255 erasing += c->sector_size; in __jffs2_dbg_superblock_counts()
257 list_for_each_entry(jeb, &c->erase_complete_list, list) { in __jffs2_dbg_superblock_counts()
259 erasing += c->sector_size; in __jffs2_dbg_superblock_counts()
261 list_for_each_entry(jeb, &c->bad_list, list) { in __jffs2_dbg_superblock_counts()
263 bad += c->sector_size; in __jffs2_dbg_superblock_counts()
268 if (sz != c->sz##_size) { \ in __jffs2_dbg_superblock_counts()
269 pr_warn("%s_size mismatch counted 0x%x, c->%s_size 0x%x\n", \ in __jffs2_dbg_superblock_counts()
270 #sz, sz, #sz, c->sz##_size); \ in __jffs2_dbg_superblock_counts()
285 if (nr_counted != c->nr_blocks) { in __jffs2_dbg_superblock_counts()
287 __func__, nr_counted, c->nr_blocks); in __jffs2_dbg_superblock_counts()
304 spin_lock(&c->erase_completion_lock); in __jffs2_dbg_acct_paranoia_check()
306 spin_unlock(&c->erase_completion_lock); in __jffs2_dbg_acct_paranoia_check()
316 struct jffs2_raw_node_ref *ref2 = jeb->first_node; in __jffs2_dbg_acct_paranoia_check_nolock() local
318 while (ref2) { in __jffs2_dbg_acct_paranoia_check_nolock()
319 uint32_t totlen = ref_totlen(c, jeb, ref2); in __jffs2_dbg_acct_paranoia_check_nolock()
321 if (ref_offset(ref2) < jeb->offset || in __jffs2_dbg_acct_paranoia_check_nolock()
322 ref_offset(ref2) > jeb->offset + c->sector_size) { in __jffs2_dbg_acct_paranoia_check_nolock()
324 ref_offset(ref2), jeb->offset); in __jffs2_dbg_acct_paranoia_check_nolock()
328 if (ref_flags(ref2) == REF_UNCHECKED) in __jffs2_dbg_acct_paranoia_check_nolock()
330 else if (!ref_obsolete(ref2)) in __jffs2_dbg_acct_paranoia_check_nolock()
335 if ((!ref_next(ref2)) != (ref2 == jeb->last_node)) { in __jffs2_dbg_acct_paranoia_check_nolock()
337 ref_offset(ref2), ref2, ref_offset(ref_next(ref2)), ref_next(ref2), in __jffs2_dbg_acct_paranoia_check_nolock()
338 ref_offset(jeb->last_node), jeb->last_node); in __jffs2_dbg_acct_paranoia_check_nolock()
341 ref2 = ref_next(ref2); in __jffs2_dbg_acct_paranoia_check_nolock()
344 if (my_used_size != jeb->used_size) { in __jffs2_dbg_acct_paranoia_check_nolock()
346 my_used_size, jeb->used_size); in __jffs2_dbg_acct_paranoia_check_nolock()
350 if (my_unchecked_size != jeb->unchecked_size) { in __jffs2_dbg_acct_paranoia_check_nolock()
352 my_unchecked_size, jeb->unchecked_size); in __jffs2_dbg_acct_paranoia_check_nolock()
357 /* This should work when we implement ref->__totlen elemination */ in __jffs2_dbg_acct_paranoia_check_nolock()
358 if (my_dirty_size != jeb->dirty_size + jeb->wasted_size) { in __jffs2_dbg_acct_paranoia_check_nolock()
360 my_dirty_size, jeb->dirty_size + jeb->wasted_size); in __jffs2_dbg_acct_paranoia_check_nolock()
364 if (jeb->free_size == 0 in __jffs2_dbg_acct_paranoia_check_nolock()
365 && my_used_size + my_unchecked_size + my_dirty_size != c->sector_size) { in __jffs2_dbg_acct_paranoia_check_nolock()
368 c->sector_size); in __jffs2_dbg_acct_paranoia_check_nolock()
373 if (!(c->flags & (JFFS2_SB_FLAG_BUILDING|JFFS2_SB_FLAG_SCANNING))) in __jffs2_dbg_acct_paranoia_check_nolock()
395 spin_lock(&c->erase_completion_lock); in __jffs2_dbg_dump_node_refs()
397 spin_unlock(&c->erase_completion_lock); in __jffs2_dbg_dump_node_refs()
407 printk(JFFS2_DBG_MSG_PREFIX " Dump node_refs of the eraseblock %#08x\n", jeb->offset); in __jffs2_dbg_dump_node_refs_nolock()
408 if (!jeb->first_node) { in __jffs2_dbg_dump_node_refs_nolock()
409 printk(JFFS2_DBG_MSG_PREFIX " no nodes in the eraseblock %#08x\n", jeb->offset); in __jffs2_dbg_dump_node_refs_nolock()
414 for (ref = jeb->first_node; ; ref = ref_next(ref)) { in __jffs2_dbg_dump_node_refs_nolock()
417 printk("(%x)", ref->__totlen); in __jffs2_dbg_dump_node_refs_nolock()
420 printk("->"); in __jffs2_dbg_dump_node_refs_nolock()
437 spin_lock(&c->erase_completion_lock); in __jffs2_dbg_dump_jeb()
439 spin_unlock(&c->erase_completion_lock); in __jffs2_dbg_dump_jeb()
449 jeb->offset); in __jffs2_dbg_dump_jeb_nolock()
451 printk(JFFS2_DBG "used_size: %#08x\n", jeb->used_size); in __jffs2_dbg_dump_jeb_nolock()
452 printk(JFFS2_DBG "dirty_size: %#08x\n", jeb->dirty_size); in __jffs2_dbg_dump_jeb_nolock()
453 printk(JFFS2_DBG "wasted_size: %#08x\n", jeb->wasted_size); in __jffs2_dbg_dump_jeb_nolock()
454 printk(JFFS2_DBG "unchecked_size: %#08x\n", jeb->unchecked_size); in __jffs2_dbg_dump_jeb_nolock()
455 printk(JFFS2_DBG "free_size: %#08x\n", jeb->free_size); in __jffs2_dbg_dump_jeb_nolock()
461 spin_lock(&c->erase_completion_lock); in __jffs2_dbg_dump_block_lists()
463 spin_unlock(&c->erase_completion_lock); in __jffs2_dbg_dump_block_lists()
471 printk(JFFS2_DBG "flash_size: %#08x\n", c->flash_size); in __jffs2_dbg_dump_block_lists_nolock()
472 printk(JFFS2_DBG "used_size: %#08x\n", c->used_size); in __jffs2_dbg_dump_block_lists_nolock()
473 printk(JFFS2_DBG "dirty_size: %#08x\n", c->dirty_size); in __jffs2_dbg_dump_block_lists_nolock()
474 printk(JFFS2_DBG "wasted_size: %#08x\n", c->wasted_size); in __jffs2_dbg_dump_block_lists_nolock()
475 printk(JFFS2_DBG "unchecked_size: %#08x\n", c->unchecked_size); in __jffs2_dbg_dump_block_lists_nolock()
476 printk(JFFS2_DBG "free_size: %#08x\n", c->free_size); in __jffs2_dbg_dump_block_lists_nolock()
477 printk(JFFS2_DBG "erasing_size: %#08x\n", c->erasing_size); in __jffs2_dbg_dump_block_lists_nolock()
478 printk(JFFS2_DBG "bad_size: %#08x\n", c->bad_size); in __jffs2_dbg_dump_block_lists_nolock()
479 printk(JFFS2_DBG "sector_size: %#08x\n", c->sector_size); in __jffs2_dbg_dump_block_lists_nolock()
481 c->sector_size * c->resv_blocks_write); in __jffs2_dbg_dump_block_lists_nolock()
483 if (c->nextblock) in __jffs2_dbg_dump_block_lists_nolock()
485 c->nextblock->offset, c->nextblock->used_size, in __jffs2_dbg_dump_block_lists_nolock()
486 c->nextblock->dirty_size, c->nextblock->wasted_size, in __jffs2_dbg_dump_block_lists_nolock()
487 c->nextblock->unchecked_size, c->nextblock->free_size); in __jffs2_dbg_dump_block_lists_nolock()
491 if (c->gcblock) in __jffs2_dbg_dump_block_lists_nolock()
493 c->gcblock->offset, c->gcblock->used_size, c->gcblock->dirty_size, in __jffs2_dbg_dump_block_lists_nolock()
494 c->gcblock->wasted_size, c->gcblock->unchecked_size, c->gcblock->free_size); in __jffs2_dbg_dump_block_lists_nolock()
498 if (list_empty(&c->clean_list)) { in __jffs2_dbg_dump_block_lists_nolock()
505 list_for_each(this, &c->clean_list) { in __jffs2_dbg_dump_block_lists_nolock()
508 dirty += jeb->wasted_size; in __jffs2_dbg_dump_block_lists_nolock()
509 if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { in __jffs2_dbg_dump_block_lists_nolock()
511 jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, in __jffs2_dbg_dump_block_lists_nolock()
512 jeb->unchecked_size, jeb->free_size); in __jffs2_dbg_dump_block_lists_nolock()
520 if (list_empty(&c->very_dirty_list)) { in __jffs2_dbg_dump_block_lists_nolock()
527 list_for_each(this, &c->very_dirty_list) { in __jffs2_dbg_dump_block_lists_nolock()
531 dirty += jeb->dirty_size; in __jffs2_dbg_dump_block_lists_nolock()
532 if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { in __jffs2_dbg_dump_block_lists_nolock()
534 jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, in __jffs2_dbg_dump_block_lists_nolock()
535 jeb->unchecked_size, jeb->free_size); in __jffs2_dbg_dump_block_lists_nolock()
543 if (list_empty(&c->dirty_list)) { in __jffs2_dbg_dump_block_lists_nolock()
550 list_for_each(this, &c->dirty_list) { in __jffs2_dbg_dump_block_lists_nolock()
554 dirty += jeb->dirty_size; in __jffs2_dbg_dump_block_lists_nolock()
555 if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { in __jffs2_dbg_dump_block_lists_nolock()
557 jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, in __jffs2_dbg_dump_block_lists_nolock()
558 jeb->unchecked_size, jeb->free_size); in __jffs2_dbg_dump_block_lists_nolock()
566 if (list_empty(&c->erasable_list)) { in __jffs2_dbg_dump_block_lists_nolock()
571 list_for_each(this, &c->erasable_list) { in __jffs2_dbg_dump_block_lists_nolock()
574 if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { in __jffs2_dbg_dump_block_lists_nolock()
576 jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, in __jffs2_dbg_dump_block_lists_nolock()
577 jeb->unchecked_size, jeb->free_size); in __jffs2_dbg_dump_block_lists_nolock()
582 if (list_empty(&c->erasing_list)) { in __jffs2_dbg_dump_block_lists_nolock()
587 list_for_each(this, &c->erasing_list) { in __jffs2_dbg_dump_block_lists_nolock()
590 if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { in __jffs2_dbg_dump_block_lists_nolock()
592 jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, in __jffs2_dbg_dump_block_lists_nolock()
593 jeb->unchecked_size, jeb->free_size); in __jffs2_dbg_dump_block_lists_nolock()
597 if (list_empty(&c->erase_checking_list)) { in __jffs2_dbg_dump_block_lists_nolock()
602 list_for_each(this, &c->erase_checking_list) { in __jffs2_dbg_dump_block_lists_nolock()
605 if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { in __jffs2_dbg_dump_block_lists_nolock()
607 jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, in __jffs2_dbg_dump_block_lists_nolock()
608 jeb->unchecked_size, jeb->free_size); in __jffs2_dbg_dump_block_lists_nolock()
613 if (list_empty(&c->erase_pending_list)) { in __jffs2_dbg_dump_block_lists_nolock()
618 list_for_each(this, &c->erase_pending_list) { in __jffs2_dbg_dump_block_lists_nolock()
621 if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { in __jffs2_dbg_dump_block_lists_nolock()
623 jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, in __jffs2_dbg_dump_block_lists_nolock()
624 jeb->unchecked_size, jeb->free_size); in __jffs2_dbg_dump_block_lists_nolock()
629 if (list_empty(&c->erasable_pending_wbuf_list)) { in __jffs2_dbg_dump_block_lists_nolock()
634 list_for_each(this, &c->erasable_pending_wbuf_list) { in __jffs2_dbg_dump_block_lists_nolock()
637 if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { in __jffs2_dbg_dump_block_lists_nolock()
639 jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, in __jffs2_dbg_dump_block_lists_nolock()
640 jeb->unchecked_size, jeb->free_size); in __jffs2_dbg_dump_block_lists_nolock()
645 if (list_empty(&c->free_list)) { in __jffs2_dbg_dump_block_lists_nolock()
650 list_for_each(this, &c->free_list) { in __jffs2_dbg_dump_block_lists_nolock()
653 if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { in __jffs2_dbg_dump_block_lists_nolock()
655 jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, in __jffs2_dbg_dump_block_lists_nolock()
656 jeb->unchecked_size, jeb->free_size); in __jffs2_dbg_dump_block_lists_nolock()
661 if (list_empty(&c->bad_list)) { in __jffs2_dbg_dump_block_lists_nolock()
666 list_for_each(this, &c->bad_list) { in __jffs2_dbg_dump_block_lists_nolock()
669 if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { in __jffs2_dbg_dump_block_lists_nolock()
671 jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, in __jffs2_dbg_dump_block_lists_nolock()
672 jeb->unchecked_size, jeb->free_size); in __jffs2_dbg_dump_block_lists_nolock()
677 if (list_empty(&c->bad_used_list)) { in __jffs2_dbg_dump_block_lists_nolock()
682 list_for_each(this, &c->bad_used_list) { in __jffs2_dbg_dump_block_lists_nolock()
685 if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { in __jffs2_dbg_dump_block_lists_nolock()
687 jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, in __jffs2_dbg_dump_block_lists_nolock()
688 jeb->unchecked_size, jeb->free_size); in __jffs2_dbg_dump_block_lists_nolock()
697 mutex_lock(&f->sem); in __jffs2_dbg_dump_fragtree()
699 mutex_unlock(&f->sem); in __jffs2_dbg_dump_fragtree()
705 struct jffs2_node_frag *this = frag_first(&f->fragtree); in __jffs2_dbg_dump_fragtree_nolock()
709 printk(JFFS2_DBG_MSG_PREFIX " dump fragtree of ino #%u\n", f->inocache->ino); in __jffs2_dbg_dump_fragtree_nolock()
711 if (this->node) in __jffs2_dbg_dump_fragtree_nolock()
712 …printk(JFFS2_DBG "frag %#04x-%#04x: %#08x(%d) on flash (*%p), left (%p), right (%p), parent (%p)\n… in __jffs2_dbg_dump_fragtree_nolock()
713 this->ofs, this->ofs+this->size, ref_offset(this->node->raw), in __jffs2_dbg_dump_fragtree_nolock()
714 ref_flags(this->node->raw), this, frag_left(this), frag_right(this), in __jffs2_dbg_dump_fragtree_nolock()
717 printk(JFFS2_DBG "frag %#04x-%#04x: hole (*%p). left (%p), right (%p), parent (%p)\n", in __jffs2_dbg_dump_fragtree_nolock()
718 this->ofs, this->ofs+this->size, this, frag_left(this), in __jffs2_dbg_dump_fragtree_nolock()
720 if (this->ofs != lastofs) in __jffs2_dbg_dump_fragtree_nolock()
722 lastofs = this->ofs + this->size; in __jffs2_dbg_dump_fragtree_nolock()
726 if (f->metadata) in __jffs2_dbg_dump_fragtree_nolock()
727 printk(JFFS2_DBG "metadata at 0x%08x\n", ref_offset(f->metadata->raw)); in __jffs2_dbg_dump_fragtree_nolock()
745 offs = offs & ~(JFFS2_BUFDUMP_BYTES_PER_LINE - 1); in __jffs2_dbg_dump_buffer()
750 while (skip--) in __jffs2_dbg_dump_buffer()
754 if ((i % JFFS2_BUFDUMP_BYTES_PER_LINE) == 0 && i != len -1) { in __jffs2_dbg_dump_buffer()
795 crc = crc32(0, &node.u, sizeof(node.u) - 4); in __jffs2_dbg_dump_node()
832 crc = crc32(0, &node.i, sizeof(node.i) - 8); in __jffs2_dbg_dump_node()
854 crc = crc32(0, &node.d, sizeof(node.d) - 8); in __jffs2_dbg_dump_node()