/linux-master/fs/jffs2/ |
H A D | debug.c | 29 struct jffs2_eraseblock *jeb) 31 if (unlikely(jeb && jeb->used_size + jeb->dirty_size + 32 jeb->free_size + jeb->wasted_size + 33 jeb->unchecked_size != c->sector_size)) { 34 JFFS2_ERROR("eeep, space accounting for block at 0x%08x is screwed.\n", jeb->offset); 36 jeb->free_size, jeb 28 __jffs2_dbg_acct_sanity_check_nolock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 52 __jffs2_dbg_acct_sanity_check(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 162 struct jffs2_eraseblock *jeb; local 301 __jffs2_dbg_acct_paranoia_check(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 310 __jffs2_dbg_acct_paranoia_check_nolock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 392 __jffs2_dbg_dump_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 401 __jffs2_dbg_dump_node_refs_nolock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 435 __jffs2_dbg_dump_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 443 __jffs2_dbg_dump_jeb_nolock(struct jffs2_eraseblock *jeb) argument 506 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 528 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 551 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 572 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 588 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 603 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 619 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 635 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 651 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 667 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 683 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local [all...] |
H A D | erase.c | 24 static void jffs2_erase_failed(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset); 25 static void jffs2_erase_succeeded(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 26 static void jffs2_mark_erased_block(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 29 struct jffs2_eraseblock *jeb) 34 ret = jffs2_flash_erase(c, jeb); 36 jffs2_erase_succeeded(c, jeb); 39 bad_offset = jeb->offset; 45 jeb->offset, jeb->offset, jeb 28 jffs2_erase_block(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 101 struct jffs2_eraseblock *jeb; local 159 jffs2_erase_succeeded(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 172 jffs2_erase_failed(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset) argument 206 jffs2_remove_node_refs_from_ino_list(struct jffs2_sb_info *c, struct jffs2_raw_node_ref *ref, struct jffs2_eraseblock *jeb) argument 287 jffs2_free_jeb_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 311 jffs2_block_check_erase(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t *bad_offset) argument 398 jffs2_mark_erased_block(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument [all...] |
H A D | nodemgmt.c | 243 static void jffs2_close_nextblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 248 __func__, jeb->offset); 252 if (ISDIRTY (jeb->wasted_size + jeb->dirty_size)) { 253 c->dirty_size += jeb->wasted_size; 254 c->wasted_size -= jeb->wasted_size; 255 jeb->dirty_size += jeb->wasted_size; 256 jeb->wasted_size = 0; 257 if (VERYDIRTY(c, jeb 357 struct jffs2_eraseblock *jeb = c->nextblock; local 504 struct jffs2_eraseblock *jeb; local 581 struct jffs2_eraseblock *jeb; local 842 struct jffs2_eraseblock *jeb; local [all...] |
H A D | scan.c | 39 static int jffs2_scan_eraseblock (struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 46 static int jffs2_scan_inode_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 48 static int jffs2_scan_dirent_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 69 static int file_dirty(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 73 if ((ret = jffs2_prealloc_raw_node_refs(c, jeb, 1))) 75 if ((ret = jffs2_scan_dirty_space(c, jeb, jeb->free_size))) 79 jeb->dirty_size += jeb->wasted_size; 80 c->dirty_size += jeb 144 struct jffs2_eraseblock *jeb = &c->blocks[i]; local 310 jffs2_scan_classify_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 330 jffs2_scan_xattr_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_xattr *rx, uint32_t ofs, struct jffs2_summary *s) argument 386 jffs2_scan_xref_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_xref *rr, uint32_t ofs, struct jffs2_summary *s) argument 445 jffs2_scan_eraseblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, unsigned char *buf, uint32_t buf_size, struct jffs2_summary *s) argument 991 jffs2_scan_inode_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_inode *ri, uint32_t ofs, struct jffs2_summary *s) argument 1045 jffs2_scan_dirent_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_dirent *rd, uint32_t ofs, struct jffs2_summary *s) argument [all...] |
H A D | debug.h | 175 struct jffs2_eraseblock *jeb); 178 struct jffs2_eraseblock *jeb); 187 struct jffs2_eraseblock *jeb); 190 struct jffs2_eraseblock *jeb); 197 __jffs2_dbg_dump_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 199 __jffs2_dbg_dump_jeb_nolock(struct jffs2_eraseblock *jeb); 206 struct jffs2_eraseblock *jeb); 209 struct jffs2_eraseblock *jeb); 224 #define jffs2_dbg_acct_paranoia_check(c, jeb) \ 225 __jffs2_dbg_acct_paranoia_check(c,jeb) [all...] |
H A D | summary.c | 106 /* The following 3 functions are called from scan.c to collect summary info for not closed jeb */ 126 temp->offset = cpu_to_je32(ofs); /* relative offset from the beginning of the jeb */ 144 temp->offset = cpu_to_je32(ofs); /* relative from the beginning of the jeb */ 252 struct jffs2_eraseblock *jeb; local 255 dbg_summary("Summary is disabled for this jeb! Skipping summary info!\n"); 260 jeb = &c->blocks[ofs / c->sector_size]; 261 ofs -= jeb->offset; 371 struct jffs2_eraseblock *jeb, 376 if ((ofs & ~3) > c->sector_size - jeb->free_size) { 378 jffs2_scan_dirty_space(c, jeb, (of 370 sum_link_node_ref(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t ofs, uint32_t len, struct jffs2_inode_cache *ic) argument 386 jffs2_sum_process_sum_data(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_summary *summary, uint32_t *pseudo_random) argument 572 jffs2_sum_scan_sumnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_summary *summary, uint32_t sumsize, uint32_t *pseudo_random) argument 674 jffs2_sum_write_data(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t infosize, uint32_t datasize, int padsize) argument 853 struct jffs2_eraseblock *jeb; variable in typeref:struct:jffs2_eraseblock [all...] |
H A D | nodelist.c | 586 struct jffs2_eraseblock *jeb, 592 BUG_ON(!jeb->allocated_refs); 593 jeb->allocated_refs--; 595 ref = jeb->last_node; 612 if (!jeb->first_node) { 613 jeb->first_node = ref; 614 BUG_ON(ref_offset(ref) != jeb->offset); 615 } else if (unlikely(ref_offset(ref) != jeb->offset + c->sector_size - jeb->free_size)) { 616 uint32_t last_len = ref_totlen(c, jeb, je 585 jffs2_link_node_ref(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t ofs, uint32_t len, struct jffs2_inode_cache *ic) argument 662 jffs2_scan_dirty_space(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t size) argument 692 __ref_totlen(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_node_ref *ref) argument 718 __jffs2_ref_totlen(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_node_ref *ref) argument [all...] |
H A D | gc.c | 28 static int jffs2_garbage_collect_metadata(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 30 static int jffs2_garbage_collect_dirent(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 32 static int jffs2_garbage_collect_deletion_dirent(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 34 static int jffs2_garbage_collect_hole(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 37 static int jffs2_garbage_collect_dnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 40 static int jffs2_garbage_collect_live(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 128 struct jffs2_eraseblock *jeb; local 262 jeb = c->gcblock; 264 if (!jeb) 265 jeb 497 jffs2_garbage_collect_live(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_node_ref *raw, struct jffs2_inode_info *f) argument 714 struct jffs2_eraseblock *jeb = &c->blocks[phys_ofs / c->sector_size]; local 758 jffs2_garbage_collect_metadata(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_inode_info *f, struct jffs2_full_dnode *fn) argument 850 jffs2_garbage_collect_dirent(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_inode_info *f, struct jffs2_full_dirent *fd) argument 895 jffs2_garbage_collect_deletion_dirent(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_inode_info *f, struct jffs2_full_dirent *fd) argument 1013 jffs2_garbage_collect_hole(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_inode_info *f, struct jffs2_full_dnode *fn, uint32_t start, uint32_t end) argument 1228 struct jffs2_eraseblock *jeb; local 1284 struct jffs2_eraseblock *jeb; local [all...] |
H A D | wbuf.c | 117 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 120 jeb->offset); 126 list_add_tail(&jeb->list, &c->erase_pending_list); 133 list_add_tail(&jeb->list, &c->erasable_list); 141 static void jffs2_block_refile(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, int allow_empty) argument 143 jffs2_dbg(1, "About to refile bad block at %08x\n", jeb->offset); 146 if (c->nextblock == jeb) 149 list_del(&jeb->list); 150 if (jeb->first_node) { 152 jeb 277 struct jffs2_eraseblock *jeb, *new_jeb; local 798 struct jffs2_eraseblock *jeb; local 1033 jffs2_check_oob_empty(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, int mode) argument 1076 jffs2_check_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 1100 jffs2_write_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 1133 jffs2_write_nand_badblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset) argument [all...] |
H A D | malloc.c | 202 struct jffs2_eraseblock *jeb, int nr) 209 p = &jeb->last_node; 212 dbg_memalloc("Reserving %d refs for block @0x%08x\n", nr, jeb->offset); 214 /* If jeb->last_node is really a valid node then skip over it */ 233 jeb->allocated_refs = nr; 236 nr, jeb->offset, jeb->last_node, jeb->last_node->flash_offset, 237 jeb->last_node->next_in_ino); 201 jffs2_prealloc_raw_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, int nr) argument
|
H A D | os-linux.h | 77 #define jffs2_write_nand_cleanmarker(c,jeb) (-EIO) 83 #define jffs2_write_nand_badblock(c,jeb,bad_offset) (1) 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_offset);
|
H A D | nodelist.h | 91 uint32_t __totlen; /* This may die; use ref_totlen(c, jeb, ) below */ 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);
|
H A D | readinode.c | 35 struct jffs2_eraseblock *jeb; local 114 jeb = &c->blocks[ref->flash_offset / c->sector_size]; 115 len = ref_totlen(c, jeb, ref); 126 jeb->used_size += len; 127 jeb->unchecked_size -= len; 130 jffs2_dbg_acct_paranoia_check_nolock(c, jeb); 606 struct jffs2_eraseblock *jeb; local 617 jeb = &c->blocks[ref->flash_offset / c->sector_size]; 618 len = ref_totlen(c, jeb, ref); 621 jeb 816 struct jffs2_eraseblock *jeb; local [all...] |
H A D | write.c | 131 struct jffs2_eraseblock *jeb = &c->blocks[flash_ofs / c->sector_size]; local 137 jffs2_dbg_acct_sanity_check(c,jeb); 138 jffs2_dbg_acct_paranoia_check(c, jeb); 158 jffs2_dbg_acct_sanity_check(c,jeb); 159 jffs2_dbg_acct_paranoia_check(c, jeb); 283 struct jffs2_eraseblock *jeb = &c->blocks[flash_ofs / c->sector_size]; local 289 jffs2_dbg_acct_sanity_check(c,jeb); 290 jffs2_dbg_acct_paranoia_check(c, jeb); 309 jffs2_dbg_acct_sanity_check(c,jeb); 310 jffs2_dbg_acct_paranoia_check(c, jeb); [all...] |
H A D | xattr.c | 135 struct jffs2_eraseblock *jeb; local 185 jeb = &c->blocks[ref_offset(raw) / c->sector_size]; 186 totlen = PAD(ref_totlen(c, jeb, raw)); 189 jeb->unchecked_size -= totlen; jeb->used_size += totlen; 446 struct jffs2_eraseblock *jeb; local 491 jeb = &c->blocks[ref_offset(raw) / c->sector_size]; 492 totlen = PAD(ref_totlen(c, jeb, raw)); 495 jeb->unchecked_size -= totlen; jeb 1296 struct jffs2_eraseblock *jeb; local [all...] |
H A D | summary.h | 50 jint32_t offset; /* offset on jeb */ 58 jint32_t offset; /* offset on jeb */ 72 jint32_t offset; /* offset on jeb */ 79 jint32_t offset; /* offset on jeb */ 105 jint32_t offset; /* offset on jeb */ 114 jint32_t offset; /* ofset on jeb */ 166 jint32_t offset; /* offset of the summary node in the jeb */ 189 int jffs2_sum_scan_sumnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb,
|
/linux-master/kernel/ |
H A D | jump_label.c | 38 const struct jump_entry *jeb = b; local 43 if (jump_entry_key(jea) < jump_entry_key(jeb)) 46 if (jump_entry_key(jea) > jump_entry_key(jeb)) 54 if (jump_entry_code(jea) < jump_entry_code(jeb)) 57 if (jump_entry_code(jea) > jump_entry_code(jeb)) 67 struct jump_entry *jeb = b; local 70 jea->code = jeb->code - delta; 71 jea->target = jeb->target - delta; 72 jea->key = jeb->key - delta; 74 jeb [all...] |