jeb 29 fs/jffs2/debug.c struct jffs2_eraseblock *jeb) jeb 31 fs/jffs2/debug.c if (unlikely(jeb && jeb->used_size + jeb->dirty_size + jeb 32 fs/jffs2/debug.c jeb->free_size + jeb->wasted_size + jeb 33 fs/jffs2/debug.c jeb->unchecked_size != c->sector_size)) { jeb 34 fs/jffs2/debug.c JFFS2_ERROR("eeep, space accounting for block at 0x%08x is screwed.\n", jeb->offset); jeb 36 fs/jffs2/debug.c jeb->free_size, jeb->dirty_size, jeb->used_size, jeb 37 fs/jffs2/debug.c jeb->wasted_size, jeb->unchecked_size, c->sector_size); jeb 53 fs/jffs2/debug.c struct jffs2_eraseblock *jeb) jeb 56 fs/jffs2/debug.c jffs2_dbg_acct_sanity_check_nolock(c, jeb); jeb 162 fs/jffs2/debug.c struct jffs2_eraseblock *jeb; jeb 184 fs/jffs2/debug.c list_for_each_entry(jeb, &c->clean_list, list) { jeb 186 fs/jffs2/debug.c free += jeb->free_size; jeb 187 fs/jffs2/debug.c dirty += jeb->dirty_size; jeb 188 fs/jffs2/debug.c used += jeb->used_size; jeb 189 fs/jffs2/debug.c wasted += jeb->wasted_size; jeb 190 fs/jffs2/debug.c unchecked += jeb->unchecked_size; jeb 192 fs/jffs2/debug.c list_for_each_entry(jeb, &c->very_dirty_list, list) { jeb 194 fs/jffs2/debug.c free += jeb->free_size; jeb 195 fs/jffs2/debug.c dirty += jeb->dirty_size; jeb 196 fs/jffs2/debug.c used += jeb->used_size; jeb 197 fs/jffs2/debug.c wasted += jeb->wasted_size; jeb 198 fs/jffs2/debug.c unchecked += jeb->unchecked_size; jeb 200 fs/jffs2/debug.c list_for_each_entry(jeb, &c->dirty_list, list) { jeb 202 fs/jffs2/debug.c free += jeb->free_size; jeb 203 fs/jffs2/debug.c dirty += jeb->dirty_size; jeb 204 fs/jffs2/debug.c used += jeb->used_size; jeb 205 fs/jffs2/debug.c wasted += jeb->wasted_size; jeb 206 fs/jffs2/debug.c unchecked += jeb->unchecked_size; jeb 208 fs/jffs2/debug.c list_for_each_entry(jeb, &c->erasable_list, list) { jeb 210 fs/jffs2/debug.c free += jeb->free_size; jeb 211 fs/jffs2/debug.c dirty += jeb->dirty_size; jeb 212 fs/jffs2/debug.c used += jeb->used_size; jeb 213 fs/jffs2/debug.c wasted += jeb->wasted_size; jeb 214 fs/jffs2/debug.c unchecked += jeb->unchecked_size; jeb 216 fs/jffs2/debug.c list_for_each_entry(jeb, &c->erasable_pending_wbuf_list, list) { jeb 218 fs/jffs2/debug.c free += jeb->free_size; jeb 219 fs/jffs2/debug.c dirty += jeb->dirty_size; jeb 220 fs/jffs2/debug.c used += jeb->used_size; jeb 221 fs/jffs2/debug.c wasted += jeb->wasted_size; jeb 222 fs/jffs2/debug.c unchecked += jeb->unchecked_size; jeb 224 fs/jffs2/debug.c list_for_each_entry(jeb, &c->erase_pending_list, list) { jeb 226 fs/jffs2/debug.c free += jeb->free_size; jeb 227 fs/jffs2/debug.c dirty += jeb->dirty_size; jeb 228 fs/jffs2/debug.c used += jeb->used_size; jeb 229 fs/jffs2/debug.c wasted += jeb->wasted_size; jeb 230 fs/jffs2/debug.c unchecked += jeb->unchecked_size; jeb 232 fs/jffs2/debug.c list_for_each_entry(jeb, &c->free_list, list) { jeb 234 fs/jffs2/debug.c free += jeb->free_size; jeb 235 fs/jffs2/debug.c dirty += jeb->dirty_size; jeb 236 fs/jffs2/debug.c used += jeb->used_size; jeb 237 fs/jffs2/debug.c wasted += jeb->wasted_size; jeb 238 fs/jffs2/debug.c unchecked += jeb->unchecked_size; jeb 240 fs/jffs2/debug.c list_for_each_entry(jeb, &c->bad_used_list, list) { jeb 242 fs/jffs2/debug.c free += jeb->free_size; jeb 243 fs/jffs2/debug.c dirty += jeb->dirty_size; jeb 244 fs/jffs2/debug.c used += jeb->used_size; jeb 245 fs/jffs2/debug.c wasted += jeb->wasted_size; jeb 246 fs/jffs2/debug.c unchecked += jeb->unchecked_size; jeb 249 fs/jffs2/debug.c list_for_each_entry(jeb, &c->erasing_list, list) { jeb 253 fs/jffs2/debug.c list_for_each_entry(jeb, &c->erase_checking_list, list) { jeb 257 fs/jffs2/debug.c list_for_each_entry(jeb, &c->erase_complete_list, list) { jeb 261 fs/jffs2/debug.c list_for_each_entry(jeb, &c->bad_list, list) { jeb 302 fs/jffs2/debug.c struct jffs2_eraseblock *jeb) jeb 305 fs/jffs2/debug.c __jffs2_dbg_acct_paranoia_check_nolock(c, jeb); jeb 311 fs/jffs2/debug.c struct jffs2_eraseblock *jeb) jeb 316 fs/jffs2/debug.c struct jffs2_raw_node_ref *ref2 = jeb->first_node; jeb 319 fs/jffs2/debug.c uint32_t totlen = ref_totlen(c, jeb, ref2); jeb 321 fs/jffs2/debug.c if (ref_offset(ref2) < jeb->offset || jeb 322 fs/jffs2/debug.c ref_offset(ref2) > jeb->offset + c->sector_size) { jeb 324 fs/jffs2/debug.c ref_offset(ref2), jeb->offset); jeb 335 fs/jffs2/debug.c if ((!ref_next(ref2)) != (ref2 == jeb->last_node)) { jeb 338 fs/jffs2/debug.c ref_offset(jeb->last_node), jeb->last_node); jeb 344 fs/jffs2/debug.c if (my_used_size != jeb->used_size) { jeb 346 fs/jffs2/debug.c my_used_size, jeb->used_size); jeb 350 fs/jffs2/debug.c if (my_unchecked_size != jeb->unchecked_size) { jeb 352 fs/jffs2/debug.c my_unchecked_size, jeb->unchecked_size); jeb 358 fs/jffs2/debug.c if (my_dirty_size != jeb->dirty_size + jeb->wasted_size) { jeb 360 fs/jffs2/debug.c my_dirty_size, jeb->dirty_size + jeb->wasted_size); jeb 364 fs/jffs2/debug.c if (jeb->free_size == 0 jeb 379 fs/jffs2/debug.c __jffs2_dbg_dump_node_refs_nolock(c, jeb); jeb 380 fs/jffs2/debug.c __jffs2_dbg_dump_jeb_nolock(jeb); jeb 393 fs/jffs2/debug.c struct jffs2_eraseblock *jeb) jeb 396 fs/jffs2/debug.c __jffs2_dbg_dump_node_refs_nolock(c, jeb); jeb 402 fs/jffs2/debug.c struct jffs2_eraseblock *jeb) jeb 407 fs/jffs2/debug.c printk(JFFS2_DBG_MSG_PREFIX " Dump node_refs of the eraseblock %#08x\n", jeb->offset); jeb 408 fs/jffs2/debug.c if (!jeb->first_node) { jeb 409 fs/jffs2/debug.c printk(JFFS2_DBG_MSG_PREFIX " no nodes in the eraseblock %#08x\n", jeb->offset); jeb 414 fs/jffs2/debug.c for (ref = jeb->first_node; ; ref = ref_next(ref)) { jeb 435 fs/jffs2/debug.c __jffs2_dbg_dump_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) jeb 438 fs/jffs2/debug.c __jffs2_dbg_dump_jeb_nolock(jeb); jeb 443 fs/jffs2/debug.c __jffs2_dbg_dump_jeb_nolock(struct jffs2_eraseblock *jeb) jeb 445 fs/jffs2/debug.c if (!jeb) jeb 449 fs/jffs2/debug.c jeb->offset); jeb 451 fs/jffs2/debug.c printk(JFFS2_DBG "used_size: %#08x\n", jeb->used_size); jeb 452 fs/jffs2/debug.c printk(JFFS2_DBG "dirty_size: %#08x\n", jeb->dirty_size); jeb 453 fs/jffs2/debug.c printk(JFFS2_DBG "wasted_size: %#08x\n", jeb->wasted_size); jeb 454 fs/jffs2/debug.c printk(JFFS2_DBG "unchecked_size: %#08x\n", jeb->unchecked_size); jeb 455 fs/jffs2/debug.c printk(JFFS2_DBG "free_size: %#08x\n", jeb->free_size); jeb 506 fs/jffs2/debug.c struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); jeb 508 fs/jffs2/debug.c dirty += jeb->wasted_size; jeb 509 fs/jffs2/debug.c if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { jeb 511 fs/jffs2/debug.c jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, jeb 512 fs/jffs2/debug.c jeb->unchecked_size, jeb->free_size); jeb 528 fs/jffs2/debug.c struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); jeb 531 fs/jffs2/debug.c dirty += jeb->dirty_size; jeb 532 fs/jffs2/debug.c if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { jeb 534 fs/jffs2/debug.c jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, jeb 535 fs/jffs2/debug.c jeb->unchecked_size, jeb->free_size); jeb 551 fs/jffs2/debug.c struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); jeb 554 fs/jffs2/debug.c dirty += jeb->dirty_size; jeb 555 fs/jffs2/debug.c if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { jeb 557 fs/jffs2/debug.c jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, jeb 558 fs/jffs2/debug.c jeb->unchecked_size, jeb->free_size); jeb 572 fs/jffs2/debug.c struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); jeb 574 fs/jffs2/debug.c if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { jeb 576 fs/jffs2/debug.c jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, jeb 577 fs/jffs2/debug.c jeb->unchecked_size, jeb->free_size); jeb 588 fs/jffs2/debug.c struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); jeb 590 fs/jffs2/debug.c if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { jeb 592 fs/jffs2/debug.c jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, jeb 593 fs/jffs2/debug.c jeb->unchecked_size, jeb->free_size); jeb 603 fs/jffs2/debug.c struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); jeb 605 fs/jffs2/debug.c if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { jeb 607 fs/jffs2/debug.c jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, jeb 608 fs/jffs2/debug.c jeb->unchecked_size, jeb->free_size); jeb 619 fs/jffs2/debug.c struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); jeb 621 fs/jffs2/debug.c if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { jeb 623 fs/jffs2/debug.c jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, jeb 624 fs/jffs2/debug.c jeb->unchecked_size, jeb->free_size); jeb 635 fs/jffs2/debug.c struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); jeb 637 fs/jffs2/debug.c if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { jeb 639 fs/jffs2/debug.c jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, jeb 640 fs/jffs2/debug.c jeb->unchecked_size, jeb->free_size); jeb 651 fs/jffs2/debug.c struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); jeb 653 fs/jffs2/debug.c if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { jeb 655 fs/jffs2/debug.c jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, jeb 656 fs/jffs2/debug.c jeb->unchecked_size, jeb->free_size); jeb 667 fs/jffs2/debug.c struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); jeb 669 fs/jffs2/debug.c if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { jeb 671 fs/jffs2/debug.c jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, jeb 672 fs/jffs2/debug.c jeb->unchecked_size, jeb->free_size); jeb 683 fs/jffs2/debug.c struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); jeb 685 fs/jffs2/debug.c if (!(jeb->used_size == 0 && jeb->dirty_size == 0 && jeb->wasted_size == 0)) { jeb 687 fs/jffs2/debug.c jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, jeb 688 fs/jffs2/debug.c jeb->unchecked_size, jeb->free_size); jeb 174 fs/jffs2/debug.h struct jffs2_eraseblock *jeb); jeb 177 fs/jffs2/debug.h struct jffs2_eraseblock *jeb); jeb 186 fs/jffs2/debug.h struct jffs2_eraseblock *jeb); jeb 189 fs/jffs2/debug.h struct jffs2_eraseblock *jeb); jeb 196 fs/jffs2/debug.h __jffs2_dbg_dump_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); jeb 198 fs/jffs2/debug.h __jffs2_dbg_dump_jeb_nolock(struct jffs2_eraseblock *jeb); jeb 205 fs/jffs2/debug.h struct jffs2_eraseblock *jeb); jeb 208 fs/jffs2/debug.h struct jffs2_eraseblock *jeb); jeb 223 fs/jffs2/debug.h #define jffs2_dbg_acct_paranoia_check(c, jeb) \ jeb 224 fs/jffs2/debug.h __jffs2_dbg_acct_paranoia_check(c,jeb) jeb 225 fs/jffs2/debug.h #define jffs2_dbg_acct_paranoia_check_nolock(c, jeb) \ jeb 226 fs/jffs2/debug.h __jffs2_dbg_acct_paranoia_check_nolock(c,jeb) jeb 232 fs/jffs2/debug.h #define jffs2_dbg_acct_paranoia_check(c, jeb) jeb 233 fs/jffs2/debug.h #define jffs2_dbg_acct_paranoia_check_nolock(c, jeb) jeb 238 fs/jffs2/debug.h #define jffs2_dbg_dump_jeb(c, jeb) \ jeb 239 fs/jffs2/debug.h __jffs2_dbg_dump_jeb(c, jeb); jeb 240 fs/jffs2/debug.h #define jffs2_dbg_dump_jeb_nolock(jeb) \ jeb 241 fs/jffs2/debug.h __jffs2_dbg_dump_jeb_nolock(jeb); jeb 255 fs/jffs2/debug.h #define jffs2_dbg_dump_jeb(c, jeb) jeb 256 fs/jffs2/debug.h #define jffs2_dbg_dump_jeb_nolock(jeb) jeb 266 fs/jffs2/debug.h #define jffs2_dbg_acct_sanity_check(c, jeb) \ jeb 267 fs/jffs2/debug.h __jffs2_dbg_acct_sanity_check(c, jeb) jeb 268 fs/jffs2/debug.h #define jffs2_dbg_acct_sanity_check_nolock(c, jeb) \ jeb 269 fs/jffs2/debug.h __jffs2_dbg_acct_sanity_check_nolock(c, jeb) jeb 271 fs/jffs2/debug.h #define jffs2_dbg_acct_sanity_check(c, jeb) jeb 272 fs/jffs2/debug.h #define jffs2_dbg_acct_sanity_check_nolock(c, jeb) jeb 24 fs/jffs2/erase.c static void jffs2_erase_failed(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset); jeb 25 fs/jffs2/erase.c static void jffs2_erase_succeeded(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); jeb 26 fs/jffs2/erase.c static void jffs2_mark_erased_block(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); jeb 29 fs/jffs2/erase.c struct jffs2_eraseblock *jeb) jeb 34 fs/jffs2/erase.c ret = jffs2_flash_erase(c, jeb); jeb 36 fs/jffs2/erase.c jffs2_erase_succeeded(c, jeb); jeb 39 fs/jffs2/erase.c bad_offset = jeb->offset; jeb 45 fs/jffs2/erase.c jeb->offset, jeb->offset, jeb->offset + c->sector_size); jeb 51 fs/jffs2/erase.c list_move(&jeb->list, &c->erase_pending_list); jeb 54 fs/jffs2/erase.c jeb->dirty_size = c->sector_size; jeb 62 fs/jffs2/erase.c instr->addr = jeb->offset; jeb 67 fs/jffs2/erase.c jffs2_erase_succeeded(c, jeb); jeb 79 fs/jffs2/erase.c jeb->offset, ret); jeb 82 fs/jffs2/erase.c list_move(&jeb->list, &c->erase_pending_list); jeb 85 fs/jffs2/erase.c jeb->dirty_size = c->sector_size; jeb 93 fs/jffs2/erase.c jeb->offset); jeb 96 fs/jffs2/erase.c jeb->offset, ret); jeb 98 fs/jffs2/erase.c jffs2_erase_failed(c, jeb, bad_offset); jeb 103 fs/jffs2/erase.c struct jffs2_eraseblock *jeb; jeb 114 fs/jffs2/erase.c jeb = list_entry(c->erase_complete_list.next, struct jffs2_eraseblock, list); jeb 115 fs/jffs2/erase.c list_move(&jeb->list, &c->erase_checking_list); jeb 118 fs/jffs2/erase.c jffs2_mark_erased_block(c, jeb); jeb 127 fs/jffs2/erase.c jeb = list_entry(c->erase_pending_list.next, struct jffs2_eraseblock, list); jeb 129 fs/jffs2/erase.c jeb->offset); jeb 130 fs/jffs2/erase.c list_del(&jeb->list); jeb 132 fs/jffs2/erase.c c->wasted_size -= jeb->wasted_size; jeb 133 fs/jffs2/erase.c c->free_size -= jeb->free_size; jeb 134 fs/jffs2/erase.c c->used_size -= jeb->used_size; jeb 135 fs/jffs2/erase.c c->dirty_size -= jeb->dirty_size; jeb 136 fs/jffs2/erase.c jeb->wasted_size = jeb->used_size = jeb->dirty_size = jeb->free_size = 0; jeb 137 fs/jffs2/erase.c jffs2_free_jeb_node_refs(c, jeb); jeb 138 fs/jffs2/erase.c list_add(&jeb->list, &c->erasing_list); jeb 142 fs/jffs2/erase.c jffs2_erase_block(c, jeb); jeb 161 fs/jffs2/erase.c static void jffs2_erase_succeeded(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) jeb 163 fs/jffs2/erase.c jffs2_dbg(1, "Erase completed successfully at 0x%08x\n", jeb->offset); jeb 166 fs/jffs2/erase.c list_move_tail(&jeb->list, &c->erase_complete_list); jeb 174 fs/jffs2/erase.c static void jffs2_erase_failed(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset) jeb 181 fs/jffs2/erase.c if (!jffs2_write_nand_badblock(c, jeb, bad_offset)) { jeb 185 fs/jffs2/erase.c list_move(&jeb->list, &c->erase_pending_list); jeb 188 fs/jffs2/erase.c jeb->dirty_size = c->sector_size; jeb 199 fs/jffs2/erase.c list_move(&jeb->list, &c->bad_list); jeb 209 fs/jffs2/erase.c struct jffs2_raw_node_ref *ref, struct jffs2_eraseblock *jeb) jeb 227 fs/jffs2/erase.c if (SECTOR_ADDR((*prev)->flash_offset) == jeb->offset) { jeb 252 fs/jffs2/erase.c jeb->offset, jeb->offset + c->sector_size, ic->ino); jeb 289 fs/jffs2/erase.c void jffs2_free_jeb_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) jeb 293 fs/jffs2/erase.c jeb->offset); jeb 295 fs/jffs2/erase.c block = ref = jeb->first_node; jeb 305 fs/jffs2/erase.c jffs2_remove_node_refs_from_ino_list(c, ref, jeb); jeb 310 fs/jffs2/erase.c jeb->first_node = jeb->last_node = NULL; jeb 313 fs/jffs2/erase.c static int jffs2_block_check_erase(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t *bad_offset) jeb 321 fs/jffs2/erase.c ret = mtd_point(c->mtd, jeb->offset, c->sector_size, &retlen, jeb 332 fs/jffs2/erase.c mtd_unpoint(c->mtd, jeb->offset, retlen); jeb 341 fs/jffs2/erase.c mtd_unpoint(c->mtd, jeb->offset, c->sector_size); jeb 345 fs/jffs2/erase.c jeb->offset + jeb 355 fs/jffs2/erase.c jeb->offset); jeb 359 fs/jffs2/erase.c jffs2_dbg(1, "Verifying erase at 0x%08x\n", jeb->offset); jeb 361 fs/jffs2/erase.c for (ofs = jeb->offset; ofs < jeb->offset + c->sector_size; ) { jeb 362 fs/jffs2/erase.c uint32_t readlen = min((uint32_t)PAGE_SIZE, jeb->offset + c->sector_size - ofs); jeb 400 fs/jffs2/erase.c static void jffs2_mark_erased_block(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) jeb 406 fs/jffs2/erase.c switch (jffs2_block_check_erase(c, jeb, &bad_offset)) { jeb 412 fs/jffs2/erase.c jffs2_dbg(1, "Writing erased marker to block at 0x%08x\n", jeb->offset); jeb 413 fs/jffs2/erase.c bad_offset = jeb->offset; jeb 419 fs/jffs2/erase.c if (jffs2_write_nand_cleanmarker(c, jeb)) jeb 431 fs/jffs2/erase.c jffs2_prealloc_raw_node_refs(c, jeb, 1); jeb 437 fs/jffs2/erase.c ret = jffs2_flash_direct_writev(c, vecs, 1, jeb->offset, &retlen); jeb 442 fs/jffs2/erase.c jeb->offset, ret); jeb 445 fs/jffs2/erase.c jeb->offset, sizeof(marker), retlen); jeb 451 fs/jffs2/erase.c jeb->free_size = c->sector_size; jeb 461 fs/jffs2/erase.c jffs2_link_node_ref(c, jeb, jeb->offset | REF_NORMAL, c->cleanmarker_size, NULL); jeb 463 fs/jffs2/erase.c list_move_tail(&jeb->list, &c->free_list); jeb 467 fs/jffs2/erase.c jffs2_dbg_acct_sanity_check_nolock(c, jeb); jeb 468 fs/jffs2/erase.c jffs2_dbg_acct_paranoia_check_nolock(c, jeb); jeb 476 fs/jffs2/erase.c jffs2_erase_failed(c, jeb, bad_offset); jeb 484 fs/jffs2/erase.c list_move(&jeb->list, &c->erase_complete_list); jeb 28 fs/jffs2/gc.c static int jffs2_garbage_collect_metadata(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 30 fs/jffs2/gc.c static int jffs2_garbage_collect_dirent(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 32 fs/jffs2/gc.c static int jffs2_garbage_collect_deletion_dirent(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 34 fs/jffs2/gc.c static int jffs2_garbage_collect_hole(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 37 fs/jffs2/gc.c static int jffs2_garbage_collect_dnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 40 fs/jffs2/gc.c static int jffs2_garbage_collect_live(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 128 fs/jffs2/gc.c struct jffs2_eraseblock *jeb; jeb 262 fs/jffs2/gc.c jeb = c->gcblock; jeb 264 fs/jffs2/gc.c if (!jeb) jeb 265 fs/jffs2/gc.c jeb = jffs2_find_gc_block(c); jeb 267 fs/jffs2/gc.c if (!jeb) { jeb 281 fs/jffs2/gc.c jeb->offset, jeb->used_size, jeb->dirty_size, jeb->free_size); jeb 285 fs/jffs2/gc.c if (!jeb->used_size) { jeb 290 fs/jffs2/gc.c raw = jeb->gc_node; jeb 291 fs/jffs2/gc.c gcblock_dirty = jeb->dirty_size; jeb 300 fs/jffs2/gc.c jeb->offset, jeb->free_size, jeb 301 fs/jffs2/gc.c jeb->dirty_size, jeb->used_size); jeb 302 fs/jffs2/gc.c jeb->gc_node = raw; jeb 308 fs/jffs2/gc.c jeb->gc_node = raw; jeb 353 fs/jffs2/gc.c __func__, jeb->offset, ref_offset(raw), ref_flags(raw), jeb 464 fs/jffs2/gc.c ret = jffs2_garbage_collect_live(c, jeb, raw, f); jeb 469 fs/jffs2/gc.c if (jeb->dirty_size == gcblock_dirty && !ref_obsolete(jeb->gc_node)) { jeb 472 fs/jffs2/gc.c ref_offset(jeb->gc_node)); jeb 497 fs/jffs2/gc.c static int jffs2_garbage_collect_live(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 513 fs/jffs2/gc.c if (c->gcblock != jeb) { jeb 529 fs/jffs2/gc.c ret = jffs2_garbage_collect_metadata(c, jeb, f, fn); jeb 557 fs/jffs2/gc.c ret = jffs2_garbage_collect_hole(c, jeb, f, fn, start, end); jeb 560 fs/jffs2/gc.c ret = jffs2_garbage_collect_dnode(c, jeb, f, fn, start, end); jeb 572 fs/jffs2/gc.c ret = jffs2_garbage_collect_dirent(c, jeb, f, fd); jeb 574 fs/jffs2/gc.c ret = jffs2_garbage_collect_deletion_dirent(c, jeb, f, fd); jeb 714 fs/jffs2/gc.c struct jffs2_eraseblock *jeb = &c->blocks[phys_ofs / c->sector_size]; jeb 720 fs/jffs2/gc.c jffs2_dbg_acct_sanity_check(c,jeb); jeb 721 fs/jffs2/gc.c jffs2_dbg_acct_paranoia_check(c, jeb); jeb 731 fs/jffs2/gc.c jffs2_dbg_acct_sanity_check(c,jeb); jeb 732 fs/jffs2/gc.c jffs2_dbg_acct_paranoia_check(c, jeb); jeb 758 fs/jffs2/gc.c static int jffs2_garbage_collect_metadata(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 850 fs/jffs2/gc.c static int jffs2_garbage_collect_dirent(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 895 fs/jffs2/gc.c static int jffs2_garbage_collect_deletion_dirent(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 913 fs/jffs2/gc.c uint32_t rawlen = ref_totlen(c, jeb, fd->raw); jeb 985 fs/jffs2/gc.c return jffs2_garbage_collect_dirent(c, jeb, f, fd); jeb 1013 fs/jffs2/gc.c static int jffs2_garbage_collect_hole(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 1228 fs/jffs2/gc.c struct jffs2_eraseblock *jeb; jeb 1230 fs/jffs2/gc.c jeb = &c->blocks[raw->flash_offset / c->sector_size]; jeb 1232 fs/jffs2/gc.c if (jeb == c->gcblock) { jeb 1240 fs/jffs2/gc.c if (!ISDIRTY(jeb->dirty_size + jeb->wasted_size)) { jeb 1244 fs/jffs2/gc.c jeb->offset); jeb 1251 fs/jffs2/gc.c jeb->offset); jeb 1284 fs/jffs2/gc.c struct jffs2_eraseblock *jeb; jeb 1286 fs/jffs2/gc.c jeb = &c->blocks[raw->flash_offset / c->sector_size]; jeb 1288 fs/jffs2/gc.c if (jeb == c->gcblock) { jeb 1296 fs/jffs2/gc.c if (!ISDIRTY(jeb->dirty_size + jeb->wasted_size)) { jeb 1300 fs/jffs2/gc.c jeb->offset); jeb 1307 fs/jffs2/gc.c jeb->offset); jeb 202 fs/jffs2/malloc.c struct jffs2_eraseblock *jeb, int nr) jeb 209 fs/jffs2/malloc.c p = &jeb->last_node; jeb 212 fs/jffs2/malloc.c dbg_memalloc("Reserving %d refs for block @0x%08x\n", nr, jeb->offset); jeb 233 fs/jffs2/malloc.c jeb->allocated_refs = nr; jeb 236 fs/jffs2/malloc.c nr, jeb->offset, jeb->last_node, jeb->last_node->flash_offset, jeb 237 fs/jffs2/malloc.c jeb->last_node->next_in_ino); jeb 586 fs/jffs2/nodelist.c struct jffs2_eraseblock *jeb, jeb 592 fs/jffs2/nodelist.c BUG_ON(!jeb->allocated_refs); jeb 593 fs/jffs2/nodelist.c jeb->allocated_refs--; jeb 595 fs/jffs2/nodelist.c ref = jeb->last_node; jeb 612 fs/jffs2/nodelist.c if (!jeb->first_node) { jeb 613 fs/jffs2/nodelist.c jeb->first_node = ref; jeb 614 fs/jffs2/nodelist.c BUG_ON(ref_offset(ref) != jeb->offset); jeb 615 fs/jffs2/nodelist.c } else if (unlikely(ref_offset(ref) != jeb->offset + c->sector_size - jeb->free_size)) { jeb 616 fs/jffs2/nodelist.c uint32_t last_len = ref_totlen(c, jeb, jeb->last_node); jeb 620 fs/jffs2/nodelist.c ref_offset(jeb->last_node), jeb 621 fs/jffs2/nodelist.c ref_offset(jeb->last_node)+last_len); jeb 624 fs/jffs2/nodelist.c jeb->last_node = ref; jeb 636 fs/jffs2/nodelist.c jeb->unchecked_size += len; jeb 642 fs/jffs2/nodelist.c jeb->used_size += len; jeb 647 fs/jffs2/nodelist.c jeb->dirty_size += len; jeb 651 fs/jffs2/nodelist.c jeb->free_size -= len; jeb 656 fs/jffs2/nodelist.c ref_totlen(c, jeb, ref); jeb 662 fs/jffs2/nodelist.c int jffs2_scan_dirty_space(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 667 fs/jffs2/nodelist.c if (unlikely(size > jeb->free_size)) { jeb 669 fs/jffs2/nodelist.c size, jeb->free_size, jeb->wasted_size); jeb 673 fs/jffs2/nodelist.c if (jeb->last_node && ref_obsolete(jeb->last_node)) { jeb 675 fs/jffs2/nodelist.c jeb->last_node->__totlen += size; jeb 679 fs/jffs2/nodelist.c jeb->dirty_size += size; jeb 680 fs/jffs2/nodelist.c jeb->free_size -= size; jeb 682 fs/jffs2/nodelist.c uint32_t ofs = jeb->offset + c->sector_size - jeb->free_size; jeb 685 fs/jffs2/nodelist.c jffs2_link_node_ref(c, jeb, ofs, size, NULL); jeb 693 fs/jffs2/nodelist.c struct jffs2_eraseblock *jeb, jeb 702 fs/jffs2/nodelist.c if (!jeb) jeb 703 fs/jffs2/nodelist.c jeb = &c->blocks[ref->flash_offset / c->sector_size]; jeb 706 fs/jffs2/nodelist.c if (unlikely(ref != jeb->last_node)) { jeb 708 fs/jffs2/nodelist.c ref, ref_offset(ref), jeb->last_node, jeb 709 fs/jffs2/nodelist.c jeb->last_node ? jeb 710 fs/jffs2/nodelist.c ref_offset(jeb->last_node) : 0); jeb 713 fs/jffs2/nodelist.c ref_end = jeb->offset + c->sector_size - jeb->free_size; jeb 718 fs/jffs2/nodelist.c uint32_t __jffs2_ref_totlen(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 723 fs/jffs2/nodelist.c ret = __ref_totlen(c, jeb, ref); jeb 727 fs/jffs2/nodelist.c if (!jeb) jeb 728 fs/jffs2/nodelist.c jeb = &c->blocks[ref->flash_offset / c->sector_size]; jeb 739 fs/jffs2/nodelist.c jeb->last_node); jeb 742 fs/jffs2/nodelist.c jeb->wasted_size, jeb->dirty_size, jeb->used_size, jeb 743 fs/jffs2/nodelist.c jeb->free_size); jeb 746 fs/jffs2/nodelist.c __jffs2_dbg_dump_node_refs_nolock(c, jeb); jeb 376 fs/jffs2/nodelist.h struct jffs2_eraseblock *jeb, jeb 380 fs/jffs2/nodelist.h struct jffs2_eraseblock *jeb, jeb 436 fs/jffs2/nodelist.h struct jffs2_eraseblock *jeb, int nr); jeb 464 fs/jffs2/nodelist.h int jffs2_scan_classify_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); jeb 465 fs/jffs2/nodelist.h int jffs2_scan_dirty_space(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t size); jeb 472 fs/jffs2/nodelist.h void jffs2_free_jeb_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); jeb 478 fs/jffs2/nodelist.h int jffs2_check_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); jeb 479 fs/jffs2/nodelist.h int jffs2_write_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); jeb 243 fs/jffs2/nodemgmt.c static void jffs2_close_nextblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) jeb 248 fs/jffs2/nodemgmt.c __func__, jeb->offset); jeb 252 fs/jffs2/nodemgmt.c if (ISDIRTY (jeb->wasted_size + jeb->dirty_size)) { jeb 253 fs/jffs2/nodemgmt.c c->dirty_size += jeb->wasted_size; jeb 254 fs/jffs2/nodemgmt.c c->wasted_size -= jeb->wasted_size; jeb 255 fs/jffs2/nodemgmt.c jeb->dirty_size += jeb->wasted_size; jeb 256 fs/jffs2/nodemgmt.c jeb->wasted_size = 0; jeb 257 fs/jffs2/nodemgmt.c if (VERYDIRTY(c, jeb->dirty_size)) { jeb 259 fs/jffs2/nodemgmt.c jeb->offset, jeb->free_size, jeb->dirty_size, jeb 260 fs/jffs2/nodemgmt.c jeb->used_size); jeb 261 fs/jffs2/nodemgmt.c list_add_tail(&jeb->list, &c->very_dirty_list); jeb 264 fs/jffs2/nodemgmt.c jeb->offset, jeb->free_size, jeb->dirty_size, jeb 265 fs/jffs2/nodemgmt.c jeb->used_size); jeb 266 fs/jffs2/nodemgmt.c list_add_tail(&jeb->list, &c->dirty_list); jeb 270 fs/jffs2/nodemgmt.c jeb->offset, jeb->free_size, jeb->dirty_size, jeb 271 fs/jffs2/nodemgmt.c jeb->used_size); jeb 272 fs/jffs2/nodemgmt.c list_add_tail(&jeb->list, &c->clean_list); jeb 357 fs/jffs2/nodemgmt.c struct jffs2_eraseblock *jeb = c->nextblock; jeb 367 fs/jffs2/nodemgmt.c if (jeb) { jeb 371 fs/jffs2/nodemgmt.c minsize, jeb->free_size, jeb 377 fs/jffs2/nodemgmt.c if (jeb && (PAD(minsize) + PAD(c->summary->sum_size + sumsize + jeb 378 fs/jffs2/nodemgmt.c JFFS2_SUMMARY_FRAME_SIZE) > jeb->free_size)) { jeb 387 fs/jffs2/nodemgmt.c dbg_summary("generating summary for 0x%08x.\n", jeb->offset); jeb 401 fs/jffs2/nodemgmt.c jffs2_close_nextblock(c, jeb); jeb 402 fs/jffs2/nodemgmt.c jeb = NULL; jeb 407 fs/jffs2/nodemgmt.c if (jeb && minsize > jeb->free_size) { jeb 419 fs/jffs2/nodemgmt.c jeb = c->nextblock; jeb 425 fs/jffs2/nodemgmt.c ret = jffs2_prealloc_raw_node_refs(c, jeb, 1); jeb 436 fs/jffs2/nodemgmt.c waste = jeb->free_size; jeb 437 fs/jffs2/nodemgmt.c jffs2_link_node_ref(c, jeb, jeb 438 fs/jffs2/nodemgmt.c (jeb->offset + c->sector_size - waste) | REF_OBSOLETE, jeb 441 fs/jffs2/nodemgmt.c jeb->dirty_size -= waste; jeb 443 fs/jffs2/nodemgmt.c jeb->wasted_size += waste; jeb 446 fs/jffs2/nodemgmt.c jffs2_close_nextblock(c, jeb); jeb 447 fs/jffs2/nodemgmt.c jeb = NULL; jeb 451 fs/jffs2/nodemgmt.c if (!jeb) { jeb 457 fs/jffs2/nodemgmt.c jeb = c->nextblock; jeb 459 fs/jffs2/nodemgmt.c if (jeb->free_size != c->sector_size - c->cleanmarker_size) { jeb 461 fs/jffs2/nodemgmt.c jeb->offset, jeb->free_size); jeb 467 fs/jffs2/nodemgmt.c *len = jeb->free_size - reserved_size; jeb 469 fs/jffs2/nodemgmt.c if (c->cleanmarker_size && jeb->used_size == c->cleanmarker_size && jeb 470 fs/jffs2/nodemgmt.c !jeb->first_node->next_in_ino) { jeb 478 fs/jffs2/nodemgmt.c jffs2_mark_node_obsolete(c, jeb->first_node); jeb 484 fs/jffs2/nodemgmt.c *len, jeb->offset + (c->sector_size - jeb->free_size)); jeb 504 fs/jffs2/nodemgmt.c struct jffs2_eraseblock *jeb; jeb 507 fs/jffs2/nodemgmt.c jeb = &c->blocks[ofs / c->sector_size]; jeb 516 fs/jffs2/nodemgmt.c && (jeb != c->nextblock || (ofs & ~3) != jeb->offset + (c->sector_size - jeb->free_size))) { jeb 524 fs/jffs2/nodemgmt.c jeb->offset + (c->sector_size - jeb->free_size)); jeb 530 fs/jffs2/nodemgmt.c new = jffs2_link_node_ref(c, jeb, ofs, len, ic); jeb 532 fs/jffs2/nodemgmt.c if (!jeb->free_size && !jeb->dirty_size && !ISDIRTY(jeb->wasted_size)) { jeb 535 fs/jffs2/nodemgmt.c jeb->offset, jeb->free_size, jeb->dirty_size, jeb 536 fs/jffs2/nodemgmt.c jeb->used_size); jeb 544 fs/jffs2/nodemgmt.c list_add_tail(&jeb->list, &c->clean_list); jeb 547 fs/jffs2/nodemgmt.c jffs2_dbg_acct_sanity_check_nolock(c,jeb); jeb 548 fs/jffs2/nodemgmt.c jffs2_dbg_acct_paranoia_check_nolock(c, jeb); jeb 581 fs/jffs2/nodemgmt.c struct jffs2_eraseblock *jeb; jeb 603 fs/jffs2/nodemgmt.c jeb = &c->blocks[blocknr]; jeb 618 fs/jffs2/nodemgmt.c freed_len = ref_totlen(c, jeb, ref); jeb 621 fs/jffs2/nodemgmt.c D1(if (unlikely(jeb->unchecked_size < freed_len)) { jeb 624 fs/jffs2/nodemgmt.c ref->flash_offset, jeb->used_size); jeb 629 fs/jffs2/nodemgmt.c jeb->unchecked_size -= freed_len; jeb 632 fs/jffs2/nodemgmt.c D1(if (unlikely(jeb->used_size < freed_len)) { jeb 635 fs/jffs2/nodemgmt.c ref->flash_offset, jeb->used_size); jeb 640 fs/jffs2/nodemgmt.c jeb->used_size -= freed_len; jeb 645 fs/jffs2/nodemgmt.c if ((jeb->dirty_size || ISDIRTY(jeb->wasted_size + freed_len)) && jeb != c->nextblock) { jeb 648 fs/jffs2/nodemgmt.c jeb->dirty_size += freed_len; jeb 652 fs/jffs2/nodemgmt.c if (jeb->wasted_size) { jeb 653 fs/jffs2/nodemgmt.c if (on_list(&jeb->list, &c->bad_used_list)) { jeb 655 fs/jffs2/nodemgmt.c jeb->offset); jeb 659 fs/jffs2/nodemgmt.c jeb->wasted_size, jeb->offset); jeb 660 fs/jffs2/nodemgmt.c addedsize += jeb->wasted_size; jeb 661 fs/jffs2/nodemgmt.c jeb->dirty_size += jeb->wasted_size; jeb 662 fs/jffs2/nodemgmt.c c->dirty_size += jeb->wasted_size; jeb 663 fs/jffs2/nodemgmt.c c->wasted_size -= jeb->wasted_size; jeb 664 fs/jffs2/nodemgmt.c jeb->wasted_size = 0; jeb 670 fs/jffs2/nodemgmt.c jeb->wasted_size += freed_len; jeb 675 fs/jffs2/nodemgmt.c jffs2_dbg_acct_sanity_check_nolock(c, jeb); jeb 676 fs/jffs2/nodemgmt.c jffs2_dbg_acct_paranoia_check_nolock(c, jeb); jeb 689 fs/jffs2/nodemgmt.c if (jeb == c->nextblock) { jeb 691 fs/jffs2/nodemgmt.c jeb->offset); jeb 692 fs/jffs2/nodemgmt.c } else if (!jeb->used_size && !jeb->unchecked_size) { jeb 693 fs/jffs2/nodemgmt.c if (jeb == c->gcblock) { jeb 695 fs/jffs2/nodemgmt.c jeb->offset); jeb 699 fs/jffs2/nodemgmt.c jeb->offset); jeb 700 fs/jffs2/nodemgmt.c list_del(&jeb->list); jeb 704 fs/jffs2/nodemgmt.c list_add_tail(&jeb->list, &c->erasable_pending_wbuf_list); jeb 710 fs/jffs2/nodemgmt.c list_add_tail(&jeb->list, &c->erase_pending_list); jeb 717 fs/jffs2/nodemgmt.c list_add_tail(&jeb->list, &c->erasable_list); jeb 721 fs/jffs2/nodemgmt.c } else if (jeb == c->gcblock) { jeb 723 fs/jffs2/nodemgmt.c jeb->offset); jeb 724 fs/jffs2/nodemgmt.c } else if (ISDIRTY(jeb->dirty_size) && !ISDIRTY(jeb->dirty_size - addedsize)) { jeb 726 fs/jffs2/nodemgmt.c jeb->offset); jeb 727 fs/jffs2/nodemgmt.c list_del(&jeb->list); jeb 729 fs/jffs2/nodemgmt.c list_add_tail(&jeb->list, &c->dirty_list); jeb 730 fs/jffs2/nodemgmt.c } else if (VERYDIRTY(c, jeb->dirty_size) && jeb 731 fs/jffs2/nodemgmt.c !VERYDIRTY(c, jeb->dirty_size - addedsize)) { jeb 733 fs/jffs2/nodemgmt.c jeb->offset); jeb 734 fs/jffs2/nodemgmt.c list_del(&jeb->list); jeb 736 fs/jffs2/nodemgmt.c list_add_tail(&jeb->list, &c->very_dirty_list); jeb 739 fs/jffs2/nodemgmt.c jeb->offset, jeb->free_size, jeb->dirty_size, jeb 740 fs/jffs2/nodemgmt.c jeb->used_size); jeb 842 fs/jffs2/nodemgmt.c struct jffs2_eraseblock *jeb; jeb 868 fs/jffs2/nodemgmt.c list_for_each_entry(jeb, &c->very_dirty_list, list) { jeb 77 fs/jffs2/os-linux.h #define jffs2_write_nand_cleanmarker(c,jeb) (-EIO) jeb 83 fs/jffs2/os-linux.h #define jffs2_write_nand_badblock(c,jeb,bad_offset) (1) jeb 119 fs/jffs2/os-linux.h int jffs2_check_oob_empty(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb,int mode); jeb 120 fs/jffs2/os-linux.h int jffs2_check_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); jeb 121 fs/jffs2/os-linux.h int jffs2_write_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); jeb 122 fs/jffs2/os-linux.h int jffs2_write_nand_badblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset); jeb 35 fs/jffs2/readinode.c struct jffs2_eraseblock *jeb; jeb 114 fs/jffs2/readinode.c jeb = &c->blocks[ref->flash_offset / c->sector_size]; jeb 115 fs/jffs2/readinode.c len = ref_totlen(c, jeb, ref); jeb 126 fs/jffs2/readinode.c jeb->used_size += len; jeb 127 fs/jffs2/readinode.c jeb->unchecked_size -= len; jeb 130 fs/jffs2/readinode.c jffs2_dbg_acct_paranoia_check_nolock(c, jeb); jeb 606 fs/jffs2/readinode.c struct jffs2_eraseblock *jeb; jeb 617 fs/jffs2/readinode.c jeb = &c->blocks[ref->flash_offset / c->sector_size]; jeb 618 fs/jffs2/readinode.c len = ref_totlen(c, jeb, ref); jeb 621 fs/jffs2/readinode.c jeb->used_size += len; jeb 622 fs/jffs2/readinode.c jeb->unchecked_size -= len; jeb 800 fs/jffs2/readinode.c struct jffs2_eraseblock *jeb; jeb 803 fs/jffs2/readinode.c jeb = &c->blocks[ref->flash_offset / c->sector_size]; jeb 804 fs/jffs2/readinode.c len = ref_totlen(c, jeb, ref); jeb 807 fs/jffs2/readinode.c jeb->used_size += len; jeb 808 fs/jffs2/readinode.c jeb->unchecked_size -= len; jeb 39 fs/jffs2/scan.c static int jffs2_scan_eraseblock (struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 46 fs/jffs2/scan.c static int jffs2_scan_inode_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 48 fs/jffs2/scan.c static int jffs2_scan_dirent_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 69 fs/jffs2/scan.c static int file_dirty(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) jeb 73 fs/jffs2/scan.c if ((ret = jffs2_prealloc_raw_node_refs(c, jeb, 1))) jeb 75 fs/jffs2/scan.c if ((ret = jffs2_scan_dirty_space(c, jeb, jeb->free_size))) jeb 79 fs/jffs2/scan.c jeb->dirty_size += jeb->wasted_size; jeb 80 fs/jffs2/scan.c c->dirty_size += jeb->wasted_size; jeb 81 fs/jffs2/scan.c c->wasted_size -= jeb->wasted_size; jeb 82 fs/jffs2/scan.c jeb->wasted_size = 0; jeb 83 fs/jffs2/scan.c if (VERYDIRTY(c, jeb->dirty_size)) { jeb 84 fs/jffs2/scan.c list_add(&jeb->list, &c->very_dirty_list); jeb 86 fs/jffs2/scan.c list_add(&jeb->list, &c->dirty_list); jeb 144 fs/jffs2/scan.c struct jffs2_eraseblock *jeb = &c->blocks[i]; jeb 151 fs/jffs2/scan.c ret = jffs2_scan_eraseblock(c, jeb, buf_size?flashbuf:(flashbuf+jeb->offset), jeb 157 fs/jffs2/scan.c jffs2_dbg_acct_paranoia_check_nolock(c, jeb); jeb 170 fs/jffs2/scan.c list_add(&jeb->list, &c->erase_pending_list); jeb 176 fs/jffs2/scan.c if (!jeb->dirty_size) { jeb 178 fs/jffs2/scan.c list_add(&jeb->list, &c->free_list); jeb 183 fs/jffs2/scan.c jeb->offset); jeb 184 fs/jffs2/scan.c list_add(&jeb->list, &c->erase_pending_list); jeb 191 fs/jffs2/scan.c list_add(&jeb->list, &c->clean_list); jeb 198 fs/jffs2/scan.c if (jeb->free_size > min_free(c) && jeb 199 fs/jffs2/scan.c (!c->nextblock || c->nextblock->free_size < jeb->free_size)) { jeb 211 fs/jffs2/scan.c __func__, jeb->offset); jeb 212 fs/jffs2/scan.c c->nextblock = jeb; jeb 214 fs/jffs2/scan.c ret = file_dirty(c, jeb); jeb 224 fs/jffs2/scan.c jeb->offset); jeb 225 fs/jffs2/scan.c list_add(&jeb->list, &c->erase_pending_list); jeb 230 fs/jffs2/scan.c jffs2_dbg(1, "Block at 0x%08x is bad\n", jeb->offset); jeb 231 fs/jffs2/scan.c list_add(&jeb->list, &c->bad_list); jeb 307 fs/jffs2/scan.c int jffs2_scan_classify_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) jeb 309 fs/jffs2/scan.c if ((jeb->used_size + jeb->unchecked_size) == PAD(c->cleanmarker_size) && !jeb->dirty_size jeb 310 fs/jffs2/scan.c && (!jeb->first_node || !ref_next(jeb->first_node)) ) jeb 314 fs/jffs2/scan.c else if (!ISDIRTY(c->sector_size - (jeb->used_size + jeb->unchecked_size))) { jeb 315 fs/jffs2/scan.c c->dirty_size -= jeb->dirty_size; jeb 316 fs/jffs2/scan.c c->wasted_size += jeb->dirty_size; jeb 317 fs/jffs2/scan.c jeb->wasted_size += jeb->dirty_size; jeb 318 fs/jffs2/scan.c jeb->dirty_size = 0; jeb 320 fs/jffs2/scan.c } else if (jeb->used_size || jeb->unchecked_size) jeb 327 fs/jffs2/scan.c static int jffs2_scan_xattr_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 339 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rx->totlen)))) jeb 352 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rx->totlen)))) jeb 363 fs/jffs2/scan.c = jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, totlen, NULL); jeb 373 fs/jffs2/scan.c jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, totlen, (void *)xd); jeb 377 fs/jffs2/scan.c jffs2_sum_add_xattr_mem(s, rx, ofs - jeb->offset); jeb 383 fs/jffs2/scan.c static int jffs2_scan_xref_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 395 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(rr->totlen))))) jeb 404 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rr->totlen)))) jeb 430 fs/jffs2/scan.c jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, PAD(je32_to_cpu(rr->totlen)), (void *)ref); jeb 433 fs/jffs2/scan.c jffs2_sum_add_xref_mem(s, rr, ofs - jeb->offset); jeb 442 fs/jffs2/scan.c static int jffs2_scan_eraseblock (struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 456 fs/jffs2/scan.c ofs = jeb->offset; jeb 457 fs/jffs2/scan.c prevofs = jeb->offset - 1; jeb 465 fs/jffs2/scan.c if (mtd_block_isbad(c->mtd, jeb->offset)) jeb 468 fs/jffs2/scan.c ret = jffs2_check_nand_cleanmarker(c, jeb); jeb 503 fs/jffs2/scan.c jeb->offset + c->sector_size - buf_len, jeb 528 fs/jffs2/scan.c jeb->offset + c->sector_size - sumlen, jeb 541 fs/jffs2/scan.c err = jffs2_sum_scan_sumnode(c, jeb, sumptr, sumlen, &pseudo_random); jeb 555 fs/jffs2/scan.c buf_ofs = jeb->offset; jeb 578 fs/jffs2/scan.c int ret = jffs2_check_oob_empty(c, jeb, cleanmarkerfound); jeb 589 fs/jffs2/scan.c jeb->offset); jeb 596 fs/jffs2/scan.c jffs2_dbg(1, "Free space at %08x ends at %08x\n", jeb->offset, jeb 597 fs/jffs2/scan.c jeb->offset + ofs); jeb 598 fs/jffs2/scan.c if ((err = jffs2_prealloc_raw_node_refs(c, jeb, 1))) jeb 600 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, ofs))) jeb 605 fs/jffs2/scan.c ofs += jeb->offset; jeb 609 fs/jffs2/scan.c dbg_summary("no summary found in jeb 0x%08x. Apply original scan.\n",jeb->offset); jeb 612 fs/jffs2/scan.c while(ofs < jeb->offset + c->sector_size) { jeb 614 fs/jffs2/scan.c jffs2_dbg_acct_paranoia_check_nolock(c, jeb); jeb 617 fs/jffs2/scan.c err = jffs2_prealloc_raw_node_refs(c, jeb, 2); jeb 631 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, 4))) jeb 638 fs/jffs2/scan.c if (jeb->offset + c->sector_size < ofs + sizeof(*node)) { jeb 641 fs/jffs2/scan.c jeb->offset, c->sector_size, ofs, jeb 643 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, (jeb->offset + c->sector_size)-ofs))) jeb 649 fs/jffs2/scan.c buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); jeb 676 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, ofs-empty_start))) jeb 690 fs/jffs2/scan.c if (buf_ofs == jeb->offset && jeb->used_size == PAD(c->cleanmarker_size) && jeb 691 fs/jffs2/scan.c c->cleanmarker_size && !jeb->dirty_size && !ref_next(jeb->first_node)) { jeb 702 fs/jffs2/scan.c buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); jeb 721 fs/jffs2/scan.c if (ofs == jeb->offset && je16_to_cpu(node->magic) == KSAMTIB_CIGAM_2SFFJ) { jeb 724 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, 4))) jeb 731 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, 4))) jeb 739 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, 4))) jeb 750 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, 4))) jeb 769 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, 4))) jeb 775 fs/jffs2/scan.c if (ofs + je32_to_cpu(node->totlen) > jeb->offset + c->sector_size) { jeb 780 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, 4))) jeb 790 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen))))) jeb 799 fs/jffs2/scan.c buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); jeb 809 fs/jffs2/scan.c err = jffs2_scan_inode_node(c, jeb, (void *)node, ofs, s); jeb 816 fs/jffs2/scan.c buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); jeb 826 fs/jffs2/scan.c err = jffs2_scan_dirent_node(c, jeb, (void *)node, ofs, s); jeb 834 fs/jffs2/scan.c buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); jeb 844 fs/jffs2/scan.c err = jffs2_scan_xattr_node(c, jeb, (void *)node, ofs, s); jeb 851 fs/jffs2/scan.c buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); jeb 861 fs/jffs2/scan.c err = jffs2_scan_xref_node(c, jeb, (void *)node, ofs, s); jeb 874 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, PAD(sizeof(struct jffs2_unknown_node))))) jeb 877 fs/jffs2/scan.c } else if (jeb->first_node) { jeb 879 fs/jffs2/scan.c ofs, jeb->offset); jeb 880 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, PAD(sizeof(struct jffs2_unknown_node))))) jeb 884 fs/jffs2/scan.c jffs2_link_node_ref(c, jeb, ofs | REF_NORMAL, c->cleanmarker_size, NULL); jeb 893 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen))))) jeb 906 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen))))) jeb 919 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen))))) jeb 928 fs/jffs2/scan.c jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, PAD(je32_to_cpu(node->totlen)), NULL); jeb 940 fs/jffs2/scan.c if (PAD(s->sum_size + JFFS2_SUMMARY_FRAME_SIZE) > jeb->free_size) { jeb 948 fs/jffs2/scan.c jeb->offset, jeb->free_size, jeb->dirty_size, jeb 949 fs/jffs2/scan.c jeb->unchecked_size, jeb->used_size, jeb->wasted_size); jeb 952 fs/jffs2/scan.c if (jeb->wasted_size) { jeb 953 fs/jffs2/scan.c jeb->dirty_size += jeb->wasted_size; jeb 954 fs/jffs2/scan.c c->dirty_size += jeb->wasted_size; jeb 955 fs/jffs2/scan.c c->wasted_size -= jeb->wasted_size; jeb 956 fs/jffs2/scan.c jeb->wasted_size = 0; jeb 959 fs/jffs2/scan.c return jffs2_scan_classify_jeb(c, jeb); jeb 988 fs/jffs2/scan.c static int jffs2_scan_inode_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 1014 fs/jffs2/scan.c return jffs2_scan_dirty_space(c, jeb, jeb 1026 fs/jffs2/scan.c jffs2_link_node_ref(c, jeb, ofs | REF_UNCHECKED, PAD(je32_to_cpu(ri->totlen)), ic); jeb 1036 fs/jffs2/scan.c jffs2_sum_add_inode_mem(s, ri, ofs - jeb->offset); jeb 1042 fs/jffs2/scan.c static int jffs2_scan_dirent_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 1061 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(rd->totlen))))) jeb 1090 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(rd->totlen))))) jeb 1100 fs/jffs2/scan.c fd->raw = jffs2_link_node_ref(c, jeb, ofs | dirent_node_state(rd), jeb 1111 fs/jffs2/scan.c jffs2_sum_add_dirent_mem(s, rd, ofs - jeb->offset); jeb 252 fs/jffs2/summary.c struct jffs2_eraseblock *jeb; jeb 260 fs/jffs2/summary.c jeb = &c->blocks[ofs / c->sector_size]; jeb 261 fs/jffs2/summary.c ofs -= jeb->offset; jeb 371 fs/jffs2/summary.c struct jffs2_eraseblock *jeb, jeb 376 fs/jffs2/summary.c if ((ofs & ~3) > c->sector_size - jeb->free_size) { jeb 378 fs/jffs2/summary.c jffs2_scan_dirty_space(c, jeb, (ofs & ~3) - (c->sector_size - jeb->free_size)); jeb 381 fs/jffs2/summary.c return jffs2_link_node_ref(c, jeb, jeb->offset + ofs, len, ic); jeb 386 fs/jffs2/summary.c static int jffs2_sum_process_sum_data(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 403 fs/jffs2/summary.c err = jffs2_prealloc_raw_node_refs(c, jeb, 2); jeb 415 fs/jffs2/summary.c jeb->offset + je32_to_cpu(spi->offset), jeb 416 fs/jffs2/summary.c jeb->offset + je32_to_cpu(spi->offset) + je32_to_cpu(spi->totlen)); jeb 424 fs/jffs2/summary.c sum_link_node_ref(c, jeb, je32_to_cpu(spi->offset) | REF_UNCHECKED, jeb 440 fs/jffs2/summary.c jeb->offset + je32_to_cpu(spd->offset), jeb 441 fs/jffs2/summary.c jeb->offset + je32_to_cpu(spd->offset) + je32_to_cpu(spd->totlen)); jeb 448 fs/jffs2/summary.c jeb->offset + jeb 454 fs/jffs2/summary.c jeb->offset + jeb 473 fs/jffs2/summary.c fd->raw = sum_link_node_ref(c, jeb, je32_to_cpu(spd->offset) | REF_UNCHECKED, jeb 497 fs/jffs2/summary.c jeb->offset + je32_to_cpu(spx->offset), jeb 498 fs/jffs2/summary.c jeb->offset + je32_to_cpu(spx->offset) + je32_to_cpu(spx->totlen), jeb 508 fs/jffs2/summary.c = sum_link_node_ref(c, jeb, je32_to_cpu(spx->offset) | REF_UNCHECKED, jeb 514 fs/jffs2/summary.c sum_link_node_ref(c, jeb, je32_to_cpu(spx->offset) | REF_UNCHECKED, jeb 528 fs/jffs2/summary.c jeb->offset + je32_to_cpu(spr->offset), jeb 529 fs/jffs2/summary.c jeb->offset + je32_to_cpu(spr->offset) + jeb 540 fs/jffs2/summary.c sum_link_node_ref(c, jeb, je32_to_cpu(spr->offset) | REF_UNCHECKED, jeb 556 fs/jffs2/summary.c c->wasted_size -= jeb->wasted_size; jeb 557 fs/jffs2/summary.c c->free_size += c->sector_size - jeb->free_size; jeb 558 fs/jffs2/summary.c c->used_size -= jeb->used_size; jeb 559 fs/jffs2/summary.c c->dirty_size -= jeb->dirty_size; jeb 560 fs/jffs2/summary.c jeb->wasted_size = jeb->used_size = jeb->dirty_size = 0; jeb 561 fs/jffs2/summary.c jeb->free_size = c->sector_size; jeb 563 fs/jffs2/summary.c jffs2_free_jeb_node_refs(c, jeb); jeb 572 fs/jffs2/summary.c int jffs2_sum_scan_sumnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 583 fs/jffs2/summary.c jeb->offset, jeb->offset + ofs, sumsize); jeb 620 fs/jffs2/summary.c ret = jffs2_prealloc_raw_node_refs(c, jeb, 1); jeb 627 fs/jffs2/summary.c if ((ret = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(summary->cln_mkr))))) jeb 629 fs/jffs2/summary.c } else if (jeb->first_node) { jeb 631 fs/jffs2/summary.c "(0x%08x)\n", jeb->offset); jeb 632 fs/jffs2/summary.c if ((ret = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(summary->cln_mkr))))) jeb 635 fs/jffs2/summary.c jffs2_link_node_ref(c, jeb, jeb->offset | REF_NORMAL, jeb 640 fs/jffs2/summary.c ret = jffs2_sum_process_sum_data(c, jeb, summary, pseudo_random); jeb 649 fs/jffs2/summary.c ret = jffs2_prealloc_raw_node_refs(c, jeb, 2); jeb 653 fs/jffs2/summary.c sum_link_node_ref(c, jeb, ofs | REF_NORMAL, sumsize, NULL); jeb 655 fs/jffs2/summary.c if (unlikely(jeb->free_size)) { jeb 657 fs/jffs2/summary.c jeb->free_size, jeb->offset); jeb 658 fs/jffs2/summary.c jeb->wasted_size += jeb->free_size; jeb 659 fs/jffs2/summary.c c->wasted_size += jeb->free_size; jeb 660 fs/jffs2/summary.c c->free_size -= jeb->free_size; jeb 661 fs/jffs2/summary.c jeb->free_size = 0; jeb 664 fs/jffs2/summary.c return jffs2_scan_classify_jeb(c, jeb); jeb 674 fs/jffs2/summary.c static int jffs2_sum_write_data(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 691 fs/jffs2/summary.c datasize, padsize, jeb->offset); jeb 803 fs/jffs2/summary.c sm->offset = cpu_to_je32(c->sector_size - jeb->free_size); jeb 814 fs/jffs2/summary.c sum_ofs = jeb->offset + c->sector_size - jeb->free_size; jeb 828 fs/jffs2/summary.c jffs2_link_node_ref(c, jeb, sum_ofs | REF_OBSOLETE, infosize, NULL); jeb 838 fs/jffs2/summary.c jffs2_link_node_ref(c, jeb, sum_ofs | REF_NORMAL, infosize, NULL); jeb 850 fs/jffs2/summary.c struct jffs2_eraseblock *jeb; jeb 857 fs/jffs2/summary.c jeb = c->nextblock; jeb 858 fs/jffs2/summary.c jffs2_prealloc_raw_node_refs(c, jeb, 1); jeb 867 fs/jffs2/summary.c padsize = jeb->free_size - infosize; jeb 871 fs/jffs2/summary.c ret = jffs2_sum_write_data(c, jeb, infosize, datasize, padsize); jeb 189 fs/jffs2/summary.h int jffs2_sum_scan_sumnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, jeb 117 fs/jffs2/wbuf.c struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); jeb 120 fs/jffs2/wbuf.c jeb->offset); jeb 126 fs/jffs2/wbuf.c list_add_tail(&jeb->list, &c->erase_pending_list); jeb 133 fs/jffs2/wbuf.c list_add_tail(&jeb->list, &c->erasable_list); jeb 141 fs/jffs2/wbuf.c static void jffs2_block_refile(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, int allow_empty) jeb 143 fs/jffs2/wbuf.c jffs2_dbg(1, "About to refile bad block at %08x\n", jeb->offset); jeb 146 fs/jffs2/wbuf.c if (c->nextblock == jeb) jeb 149 fs/jffs2/wbuf.c list_del(&jeb->list); jeb 150 fs/jffs2/wbuf.c if (jeb->first_node) { jeb 152 fs/jffs2/wbuf.c jeb->offset); jeb 153 fs/jffs2/wbuf.c list_add(&jeb->list, &c->bad_used_list); jeb 158 fs/jffs2/wbuf.c jeb->offset); jeb 159 fs/jffs2/wbuf.c list_add(&jeb->list, &c->erase_pending_list); jeb 164 fs/jffs2/wbuf.c if (!jffs2_prealloc_raw_node_refs(c, jeb, 1)) { jeb 165 fs/jffs2/wbuf.c uint32_t oldfree = jeb->free_size; jeb 167 fs/jffs2/wbuf.c jffs2_link_node_ref(c, jeb, jeb 168 fs/jffs2/wbuf.c (jeb->offset+c->sector_size-oldfree) | REF_OBSOLETE, jeb 172 fs/jffs2/wbuf.c jeb->wasted_size += oldfree; jeb 174 fs/jffs2/wbuf.c jeb->dirty_size -= oldfree; jeb 178 fs/jffs2/wbuf.c jffs2_dbg_acct_sanity_check_nolock(c,jeb); jeb 179 fs/jffs2/wbuf.c jffs2_dbg_acct_paranoia_check_nolock(c, jeb); jeb 277 fs/jffs2/wbuf.c struct jffs2_eraseblock *jeb, *new_jeb; jeb 285 fs/jffs2/wbuf.c jeb = &c->blocks[c->wbuf_ofs / c->sector_size]; jeb 289 fs/jffs2/wbuf.c jffs2_block_refile(c, jeb, REFILE_NOTEMPTY); jeb 291 fs/jffs2/wbuf.c jffs2_block_refile(c, jeb, REFILE_ANYWAY); jeb 294 fs/jffs2/wbuf.c BUG_ON(!ref_obsolete(jeb->last_node)); jeb 298 fs/jffs2/wbuf.c for (next = raw = jeb->first_node; next; raw = next) { jeb 305 fs/jffs2/wbuf.c (ref_offset(raw) + ref_totlen(c, jeb, raw)), jeb 311 fs/jffs2/wbuf.c (ref_offset(raw) + ref_totlen(c, jeb, raw))); jeb 325 fs/jffs2/wbuf.c end = ref_offset(jeb->last_node); jeb 329 fs/jffs2/wbuf.c while ((raw = ref_next(raw)) != jeb->last_node) jeb 438 fs/jffs2/wbuf.c jffs2_add_physical_node_ref(c, ofs | REF_OBSOLETE, ref_totlen(c, jeb, first_raw), NULL); jeb 463 fs/jffs2/wbuf.c for (raw = first_raw; raw != jeb->last_node; raw = ref_next(raw)) { jeb 464 fs/jffs2/wbuf.c uint32_t rawlen = ref_totlen(c, jeb, raw); jeb 537 fs/jffs2/wbuf.c jeb->dirty_size += rawlen; jeb 538 fs/jffs2/wbuf.c jeb->used_size -= rawlen; jeb 550 fs/jffs2/wbuf.c if (first_raw == jeb->first_node) { jeb 552 fs/jffs2/wbuf.c jeb->offset); jeb 553 fs/jffs2/wbuf.c list_move(&jeb->list, &c->erase_pending_list); jeb 558 fs/jffs2/wbuf.c jffs2_dbg_acct_sanity_check_nolock(c, jeb); jeb 559 fs/jffs2/wbuf.c jffs2_dbg_acct_paranoia_check_nolock(c, jeb); jeb 798 fs/jffs2/wbuf.c struct jffs2_eraseblock *jeb; jeb 926 fs/jffs2/wbuf.c jeb = &c->blocks[outvec_to / c->sector_size]; jeb 927 fs/jffs2/wbuf.c jffs2_block_refile(c, jeb, REFILE_ANYWAY); jeb 1034 fs/jffs2/wbuf.c struct jffs2_eraseblock *jeb, int mode) jeb 1046 fs/jffs2/wbuf.c ret = mtd_read_oob(c->mtd, jeb->offset, &ops); jeb 1049 fs/jffs2/wbuf.c jeb->offset, ops.ooblen, ops.oobretlen, ret); jeb 1062 fs/jffs2/wbuf.c "%08x\n", ops.oobbuf[i], i, jeb->offset); jeb 1077 fs/jffs2/wbuf.c struct jffs2_eraseblock *jeb) jeb 1088 fs/jffs2/wbuf.c ret = mtd_read_oob(c->mtd, jeb->offset, &ops); jeb 1091 fs/jffs2/wbuf.c jeb->offset, ops.ooblen, ops.oobretlen, ret); jeb 1101 fs/jffs2/wbuf.c struct jffs2_eraseblock *jeb) jeb 1113 fs/jffs2/wbuf.c ret = mtd_write_oob(c->mtd, jeb->offset, &ops); jeb 1116 fs/jffs2/wbuf.c jeb->offset, ops.ooblen, ops.oobretlen, ret); jeb 1133 fs/jffs2/wbuf.c int jffs2_write_nand_badblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset) jeb 1138 fs/jffs2/wbuf.c if( ++jeb->bad_count < MAX_ERASE_FAILURES) jeb 1146 fs/jffs2/wbuf.c __func__, jeb->offset, ret); jeb 131 fs/jffs2/write.c struct jffs2_eraseblock *jeb = &c->blocks[flash_ofs / c->sector_size]; jeb 137 fs/jffs2/write.c jffs2_dbg_acct_sanity_check(c,jeb); jeb 138 fs/jffs2/write.c jffs2_dbg_acct_paranoia_check(c, jeb); jeb 158 fs/jffs2/write.c jffs2_dbg_acct_sanity_check(c,jeb); jeb 159 fs/jffs2/write.c jffs2_dbg_acct_paranoia_check(c, jeb); jeb 283 fs/jffs2/write.c struct jffs2_eraseblock *jeb = &c->blocks[flash_ofs / c->sector_size]; jeb 289 fs/jffs2/write.c jffs2_dbg_acct_sanity_check(c,jeb); jeb 290 fs/jffs2/write.c jffs2_dbg_acct_paranoia_check(c, jeb); jeb 309 fs/jffs2/write.c jffs2_dbg_acct_sanity_check(c,jeb); jeb 310 fs/jffs2/write.c jffs2_dbg_acct_paranoia_check(c, jeb); jeb 135 fs/jffs2/xattr.c struct jffs2_eraseblock *jeb; jeb 185 fs/jffs2/xattr.c jeb = &c->blocks[ref_offset(raw) / c->sector_size]; jeb 186 fs/jffs2/xattr.c totlen = PAD(ref_totlen(c, jeb, raw)); jeb 189 fs/jffs2/xattr.c jeb->unchecked_size -= totlen; jeb->used_size += totlen; jeb 446 fs/jffs2/xattr.c struct jffs2_eraseblock *jeb; jeb 491 fs/jffs2/xattr.c jeb = &c->blocks[ref_offset(raw) / c->sector_size]; jeb 492 fs/jffs2/xattr.c totlen = PAD(ref_totlen(c, jeb, raw)); jeb 495 fs/jffs2/xattr.c jeb->unchecked_size -= totlen; jeb->used_size += totlen; jeb 1292 fs/jffs2/xattr.c struct jffs2_eraseblock *jeb; jeb 1307 fs/jffs2/xattr.c jeb = &c->blocks[ref_offset(raw) / c->sector_size]; jeb 1308 fs/jffs2/xattr.c totlen = PAD(ref_totlen(c, jeb, raw)); jeb 1310 fs/jffs2/xattr.c jeb->unchecked_size -= totlen; jeb->used_size += totlen; jeb 38 kernel/jump_label.c const struct jump_entry *jeb = b; jeb 43 kernel/jump_label.c if (jump_entry_key(jea) < jump_entry_key(jeb)) jeb 46 kernel/jump_label.c if (jump_entry_key(jea) > jump_entry_key(jeb)) jeb 54 kernel/jump_label.c if (jump_entry_code(jea) < jump_entry_code(jeb)) jeb 57 kernel/jump_label.c if (jump_entry_code(jea) > jump_entry_code(jeb)) jeb 67 kernel/jump_label.c struct jump_entry *jeb = b; jeb 70 kernel/jump_label.c jea->code = jeb->code - delta; jeb 71 kernel/jump_label.c jea->target = jeb->target - delta; jeb 72 kernel/jump_label.c jea->key = jeb->key - delta; jeb 74 kernel/jump_label.c jeb->code = tmp.code + delta; jeb 75 kernel/jump_label.c jeb->target = tmp.target + delta; jeb 76 kernel/jump_label.c jeb->key = tmp.key + delta;