Lines Matching refs:jeb
29 struct jffs2_eraseblock *jeb) in __jffs2_dbg_acct_sanity_check_nolock() argument
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()
53 struct jffs2_eraseblock *jeb) in __jffs2_dbg_acct_sanity_check() argument
56 jffs2_dbg_acct_sanity_check_nolock(c, jeb); in __jffs2_dbg_acct_sanity_check()
162 struct jffs2_eraseblock *jeb; in __jffs2_dbg_superblock_counts() local
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()
253 list_for_each_entry(jeb, &c->erase_checking_list, list) { in __jffs2_dbg_superblock_counts()
257 list_for_each_entry(jeb, &c->erase_complete_list, list) { in __jffs2_dbg_superblock_counts()
261 list_for_each_entry(jeb, &c->bad_list, list) { in __jffs2_dbg_superblock_counts()
302 struct jffs2_eraseblock *jeb) in __jffs2_dbg_acct_paranoia_check() argument
305 __jffs2_dbg_acct_paranoia_check_nolock(c, jeb); in __jffs2_dbg_acct_paranoia_check()
311 struct jffs2_eraseblock *jeb) in __jffs2_dbg_acct_paranoia_check_nolock() argument
316 struct jffs2_raw_node_ref *ref2 = jeb->first_node; 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()
335 if ((!ref_next(ref2)) != (ref2 == jeb->last_node)) { in __jffs2_dbg_acct_paranoia_check_nolock()
338 ref_offset(jeb->last_node), jeb->last_node); 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()
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()
379 __jffs2_dbg_dump_node_refs_nolock(c, jeb); in __jffs2_dbg_acct_paranoia_check_nolock()
380 __jffs2_dbg_dump_jeb_nolock(jeb); in __jffs2_dbg_acct_paranoia_check_nolock()
393 struct jffs2_eraseblock *jeb) in __jffs2_dbg_dump_node_refs() argument
396 __jffs2_dbg_dump_node_refs_nolock(c, jeb); in __jffs2_dbg_dump_node_refs()
402 struct jffs2_eraseblock *jeb) in __jffs2_dbg_dump_node_refs_nolock() argument
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()
435 __jffs2_dbg_dump_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) in __jffs2_dbg_dump_jeb() argument
438 __jffs2_dbg_dump_jeb_nolock(jeb); in __jffs2_dbg_dump_jeb()
443 __jffs2_dbg_dump_jeb_nolock(struct jffs2_eraseblock *jeb) in __jffs2_dbg_dump_jeb_nolock() argument
445 if (!jeb) in __jffs2_dbg_dump_jeb_nolock()
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()
506 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); in __jffs2_dbg_dump_block_lists_nolock() local
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()
528 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); in __jffs2_dbg_dump_block_lists_nolock() local
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()
551 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); in __jffs2_dbg_dump_block_lists_nolock() local
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()
572 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); in __jffs2_dbg_dump_block_lists_nolock() local
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()
588 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); in __jffs2_dbg_dump_block_lists_nolock() local
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()
603 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); in __jffs2_dbg_dump_block_lists_nolock() local
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()
619 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); in __jffs2_dbg_dump_block_lists_nolock() local
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()
635 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); in __jffs2_dbg_dump_block_lists_nolock() local
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()
651 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); in __jffs2_dbg_dump_block_lists_nolock() local
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()
667 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); in __jffs2_dbg_dump_block_lists_nolock() local
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()
683 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); in __jffs2_dbg_dump_block_lists_nolock() local
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()