/linux/fs/jffs2/ |
A D | debug.c | 31 if (unlikely(jeb && jeb->used_size + jeb->dirty_size + in __jffs2_dbg_acct_sanity_check_nolock() 36 jeb->free_size, jeb->dirty_size, jeb->used_size, in __jffs2_dbg_acct_sanity_check_nolock() 511 jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, 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() 557 jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, 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() 592 jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, 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() 623 jeb->offset, jeb->used_size, jeb->dirty_size, jeb->wasted_size, 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() [all …]
|
A D | nodemgmt.c | 255 jeb->dirty_size += jeb->wasted_size; in jffs2_close_nextblock() 259 jeb->offset, jeb->free_size, jeb->dirty_size, in jffs2_close_nextblock() 264 jeb->offset, jeb->free_size, jeb->dirty_size, in jffs2_close_nextblock() 270 jeb->offset, jeb->free_size, jeb->dirty_size, in jffs2_close_nextblock() 407 if (jeb && minsize > jeb->free_size) { in jffs2_do_reserve_space() 461 jeb->offset, jeb->free_size); in jffs2_do_reserve_space() 532 if (!jeb->free_size && !jeb->dirty_size && !ISDIRTY(jeb->wasted_size)) { in jffs2_add_physical_node_ref() 535 jeb->offset, jeb->free_size, jeb->dirty_size, in jffs2_add_physical_node_ref() 659 jeb->wasted_size, jeb->offset); in jffs2_mark_node_obsolete() 661 jeb->dirty_size += jeb->wasted_size; in jffs2_mark_node_obsolete() [all …]
|
A D | erase.c | 45 jeb->offset, jeb->offset, jeb->offset + c->sector_size); in jffs2_erase_block() 93 jeb->offset); in jffs2_erase_block() 96 jeb->offset, ret); in jffs2_erase_block() 129 jeb->offset); in jffs2_erase_pending_blocks() 136 jeb->wasted_size = jeb->used_size = jeb->dirty_size = jeb->free_size = 0; in jffs2_erase_pending_blocks() 252 jeb->offset, jeb->offset + c->sector_size, ic->ino); in jffs2_remove_node_refs_from_ino_list() 293 jeb->offset); in jffs2_free_jeb_node_refs() 310 jeb->first_node = jeb->last_node = NULL; in jffs2_free_jeb_node_refs() 345 jeb->offset + in jffs2_block_check_erase() 355 jeb->offset); in jffs2_block_check_erase() [all …]
|
A D | scan.c | 75 if ((ret = jffs2_scan_dirty_space(c, jeb, jeb->free_size))) in file_dirty() 79 jeb->dirty_size += jeb->wasted_size; in file_dirty() 224 jeb->offset); in jffs2_scan_medium() 310 if ((jeb->used_size + jeb->unchecked_size) == PAD(c->cleanmarker_size) && !jeb->dirty_size in jffs2_scan_classify_jeb() 311 && (!jeb->first_node || !ref_next(jeb->first_node)) ) in jffs2_scan_classify_jeb() 318 jeb->wasted_size += jeb->dirty_size; in jffs2_scan_classify_jeb() 321 } else if (jeb->used_size || jeb->unchecked_size) in jffs2_scan_classify_jeb() 590 jeb->offset); in jffs2_scan_eraseblock() 949 jeb->offset, jeb->free_size, jeb->dirty_size, in jffs2_scan_eraseblock() 950 jeb->unchecked_size, jeb->used_size, jeb->wasted_size); in jffs2_scan_eraseblock() [all …]
|
A D | debug.h | 175 struct jffs2_eraseblock *jeb); 178 struct jffs2_eraseblock *jeb); 187 struct jffs2_eraseblock *jeb); 206 struct jffs2_eraseblock *jeb); 209 struct jffs2_eraseblock *jeb); 225 __jffs2_dbg_acct_paranoia_check(c,jeb) 240 __jffs2_dbg_dump_jeb(c, jeb); 242 __jffs2_dbg_dump_jeb_nolock(jeb); 256 #define jffs2_dbg_dump_jeb(c, jeb) argument 257 #define jffs2_dbg_dump_jeb_nolock(jeb) argument [all …]
|
A D | summary.c | 261 ofs -= jeb->offset; in jffs2_sum_add_kvec() 381 return jffs2_link_node_ref(c, jeb, jeb->offset + ofs, len, ic); in sum_link_node_ref() 448 jeb->offset + in jffs2_sum_process_sum_data() 560 jeb->wasted_size = jeb->used_size = jeb->dirty_size = 0; in jffs2_sum_process_sum_data() 583 jeb->offset, jeb->offset + ofs, sumsize); in jffs2_sum_scan_sumnode() 635 jffs2_link_node_ref(c, jeb, jeb->offset | REF_NORMAL, in jffs2_sum_scan_sumnode() 657 jeb->free_size, jeb->offset); in jffs2_sum_scan_sumnode() 658 jeb->wasted_size += jeb->free_size; in jffs2_sum_scan_sumnode() 661 jeb->free_size = 0; in jffs2_sum_scan_sumnode() 817 sum_ofs = jeb->offset + c->sector_size - jeb->free_size; in jffs2_sum_write_data() [all …]
|
A D | nodelist.c | 616 uint32_t last_len = ref_totlen(c, jeb, jeb->last_node); in jffs2_link_node_ref() 669 size, jeb->free_size, jeb->wasted_size); in jffs2_scan_dirty_space() 673 if (jeb->last_node && ref_obsolete(jeb->last_node)) { in jffs2_scan_dirty_space() 682 uint32_t ofs = jeb->offset + c->sector_size - jeb->free_size; in jffs2_scan_dirty_space() 702 if (!jeb) in __ref_totlen() 709 jeb->last_node ? in __ref_totlen() 713 ref_end = jeb->offset + c->sector_size - jeb->free_size; in __ref_totlen() 727 if (!jeb) in __jffs2_ref_totlen() 739 jeb->last_node); in __jffs2_ref_totlen() 742 jeb->wasted_size, jeb->dirty_size, jeb->used_size, in __jffs2_ref_totlen() [all …]
|
A D | wbuf.c | 120 jeb->offset); in jffs2_refile_wbuf_blocks() 146 if (c->nextblock == jeb) in jffs2_block_refile() 149 list_del(&jeb->list); in jffs2_block_refile() 150 if (jeb->first_node) { in jffs2_block_refile() 152 jeb->offset); in jffs2_block_refile() 158 jeb->offset); in jffs2_block_refile() 167 jffs2_link_node_ref(c, jeb, in jffs2_block_refile() 172 jeb->wasted_size += oldfree; in jffs2_block_refile() 174 jeb->dirty_size -= oldfree; in jffs2_block_refile() 537 jeb->dirty_size += rawlen; in jffs2_wbuf_recover() [all …]
|
A D | gc.c | 262 jeb = c->gcblock; in jffs2_garbage_collect_pass() 264 if (!jeb) in jffs2_garbage_collect_pass() 267 if (!jeb) { in jffs2_garbage_collect_pass() 281 jeb->offset, jeb->used_size, jeb->dirty_size, jeb->free_size); in jffs2_garbage_collect_pass() 290 raw = jeb->gc_node; in jffs2_garbage_collect_pass() 300 jeb->offset, jeb->free_size, in jffs2_garbage_collect_pass() 301 jeb->dirty_size, jeb->used_size); in jffs2_garbage_collect_pass() 308 jeb->gc_node = raw; in jffs2_garbage_collect_pass() 469 if (jeb->dirty_size == gcblock_dirty && !ref_obsolete(jeb->gc_node)) { in jffs2_garbage_collect_pass() 1240 if (!ISDIRTY(jeb->dirty_size + jeb->wasted_size)) { in jffs2_garbage_collect_dnode() [all …]
|
A D | malloc.c | 202 struct jffs2_eraseblock *jeb, int nr) in jffs2_prealloc_raw_node_refs() argument 209 p = &jeb->last_node; in jffs2_prealloc_raw_node_refs() 212 dbg_memalloc("Reserving %d refs for block @0x%08x\n", nr, jeb->offset); in jffs2_prealloc_raw_node_refs() 233 jeb->allocated_refs = nr; in jffs2_prealloc_raw_node_refs() 236 nr, jeb->offset, jeb->last_node, jeb->last_node->flash_offset, in jffs2_prealloc_raw_node_refs() 237 jeb->last_node->next_in_ino); in jffs2_prealloc_raw_node_refs()
|
A D | os-linux.h | 77 #define jffs2_write_nand_cleanmarker(c,jeb) (-EIO) argument 83 #define jffs2_write_nand_badblock(c,jeb,bad_offset) (1) argument 119 int jffs2_check_oob_empty(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb,int mode); 120 int jffs2_check_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 121 int jffs2_write_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 122 int jffs2_write_nand_badblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_o…
|
A D | nodelist.h | 376 struct jffs2_eraseblock *jeb, 380 struct jffs2_eraseblock *jeb, 436 struct jffs2_eraseblock *jeb, int nr); 464 int jffs2_scan_classify_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 465 int jffs2_scan_dirty_space(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t size); 472 void jffs2_free_jeb_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 478 int jffs2_check_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 479 int jffs2_write_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb);
|
A D | write.c | 131 struct jffs2_eraseblock *jeb = &c->blocks[flash_ofs / c->sector_size]; in jffs2_write_dnode() local 137 jffs2_dbg_acct_sanity_check(c,jeb); in jffs2_write_dnode() 138 jffs2_dbg_acct_paranoia_check(c, jeb); in jffs2_write_dnode() 158 jffs2_dbg_acct_sanity_check(c,jeb); in jffs2_write_dnode() 159 jffs2_dbg_acct_paranoia_check(c, jeb); in jffs2_write_dnode() 283 struct jffs2_eraseblock *jeb = &c->blocks[flash_ofs / c->sector_size]; in jffs2_write_dirent() local 289 jffs2_dbg_acct_sanity_check(c,jeb); in jffs2_write_dirent() 290 jffs2_dbg_acct_paranoia_check(c, jeb); in jffs2_write_dirent() 309 jffs2_dbg_acct_sanity_check(c,jeb); in jffs2_write_dirent() 310 jffs2_dbg_acct_paranoia_check(c, jeb); in jffs2_write_dirent()
|
A D | readinode.c | 35 struct jffs2_eraseblock *jeb; in check_node_data() local 115 len = ref_totlen(c, jeb, ref); in check_node_data() 126 jeb->used_size += len; in check_node_data() 127 jeb->unchecked_size -= len; in check_node_data() 606 struct jffs2_eraseblock *jeb; in read_direntry() local 618 len = ref_totlen(c, jeb, ref); in read_direntry() 621 jeb->used_size += len; in read_direntry() 622 jeb->unchecked_size -= len; in read_direntry() 816 struct jffs2_eraseblock *jeb; in read_dnode() local 823 jeb->used_size += len; in read_dnode() [all …]
|
A D | xattr.c | 135 struct jffs2_eraseblock *jeb; in do_verify_xattr_datum() local 185 jeb = &c->blocks[ref_offset(raw) / c->sector_size]; in do_verify_xattr_datum() 186 totlen = PAD(ref_totlen(c, jeb, raw)); in do_verify_xattr_datum() 189 jeb->unchecked_size -= totlen; jeb->used_size += totlen; in do_verify_xattr_datum() 446 struct jffs2_eraseblock *jeb; in verify_xattr_ref() local 491 jeb = &c->blocks[ref_offset(raw) / c->sector_size]; in verify_xattr_ref() 492 totlen = PAD(ref_totlen(c, jeb, raw)); in verify_xattr_ref() 495 jeb->unchecked_size -= totlen; jeb->used_size += totlen; in verify_xattr_ref() 1292 struct jffs2_eraseblock *jeb; in jffs2_verify_xattr() local 1308 totlen = PAD(ref_totlen(c, jeb, raw)); in jffs2_verify_xattr() [all …]
|
A D | summary.h | 189 int jffs2_sum_scan_sumnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb,
|
/linux/kernel/ |
A D | jump_label.c | 38 const struct jump_entry *jeb = b; in jump_label_cmp() local 43 if (jump_entry_key(jea) < jump_entry_key(jeb)) in jump_label_cmp() 46 if (jump_entry_key(jea) > jump_entry_key(jeb)) in jump_label_cmp() 54 if (jump_entry_code(jea) < jump_entry_code(jeb)) in jump_label_cmp() 67 struct jump_entry *jeb = b; in jump_label_swap() local 70 jea->code = jeb->code - delta; in jump_label_swap() 71 jea->target = jeb->target - delta; in jump_label_swap() 72 jea->key = jeb->key - delta; in jump_label_swap() 74 jeb->code = tmp.code + delta; in jump_label_swap() 75 jeb->target = tmp.target + delta; in jump_label_swap() [all …]
|