/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/jffs2/ |
H A D | erase.c | 22 struct jffs2_eraseblock *jeb; member in struct:erase_priv_struct 29 static void jffs2_erase_failed(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset); 30 static void jffs2_erase_succeeded(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 31 static void jffs2_mark_erased_block(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 34 struct jffs2_eraseblock *jeb) 39 ret = jffs2_flash_erase(c, jeb); 41 jffs2_erase_succeeded(c, jeb); 44 bad_offset = jeb->offset; 49 jeb->offset, jeb 33 jffs2_erase_block(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 104 struct jffs2_eraseblock *jeb; local 156 jffs2_erase_succeeded(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 166 jffs2_erase_failed(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset) argument 211 jffs2_remove_node_refs_from_ino_list(struct jffs2_sb_info *c, struct jffs2_raw_node_ref *ref, struct jffs2_eraseblock *jeb) argument 290 jffs2_free_jeb_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 313 jffs2_block_check_erase(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t *bad_offset) argument 361 jffs2_mark_erased_block(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument [all...] |
H A D | debug.c | 25 struct jffs2_eraseblock *jeb) 27 if (unlikely(jeb && jeb->used_size + jeb->dirty_size + 28 jeb->free_size + jeb->wasted_size + 29 jeb->unchecked_size != c->sector_size)) { 30 JFFS2_ERROR("eeep, space accounting for block at 0x%08x is screwed.\n", jeb->offset); 32 jeb->free_size, jeb 24 __jffs2_dbg_acct_sanity_check_nolock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 48 __jffs2_dbg_acct_sanity_check(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 160 __jffs2_dbg_acct_paranoia_check(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 169 __jffs2_dbg_acct_paranoia_check_nolock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 232 __jffs2_dbg_dump_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 241 __jffs2_dbg_dump_node_refs_nolock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 272 __jffs2_dbg_dump_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 280 __jffs2_dbg_dump_jeb_nolock(struct jffs2_eraseblock *jeb) argument 343 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 365 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 388 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 409 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 425 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 441 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 457 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 473 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 489 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 505 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local [all...] |
H A D | nodemgmt.c | 170 static void jffs2_close_nextblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 175 jeb->offset)); 179 if (ISDIRTY (jeb->wasted_size + jeb->dirty_size)) { 180 c->dirty_size += jeb->wasted_size; 181 c->wasted_size -= jeb->wasted_size; 182 jeb->dirty_size += jeb->wasted_size; 183 jeb->wasted_size = 0; 184 if (VERYDIRTY(c, jeb 271 struct jffs2_eraseblock *jeb = c->nextblock; local 412 struct jffs2_eraseblock *jeb; local 477 struct jffs2_eraseblock *jeb; local [all...] |
H A D | scan.c | 37 static int jffs2_scan_eraseblock (struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 44 static int jffs2_scan_inode_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 46 static int jffs2_scan_dirent_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 67 static int file_dirty(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 71 if ((ret = jffs2_prealloc_raw_node_refs(c, jeb, 1))) 73 if ((ret = jffs2_scan_dirty_space(c, jeb, jeb->free_size))) 77 jeb->dirty_size += jeb->wasted_size; 78 c->dirty_size += jeb 139 struct jffs2_eraseblock *jeb = &c->blocks[i]; local 296 jffs2_scan_classify_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 316 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 372 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 431 jffs2_scan_eraseblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, unsigned char *buf, uint32_t buf_size, struct jffs2_summary *s) argument 947 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 1002 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 | 183 struct jffs2_eraseblock *jeb); 186 struct jffs2_eraseblock *jeb); 195 struct jffs2_eraseblock *jeb); 198 struct jffs2_eraseblock *jeb); 205 __jffs2_dbg_dump_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 207 __jffs2_dbg_dump_jeb_nolock(struct jffs2_eraseblock *jeb); 214 struct jffs2_eraseblock *jeb); 217 struct jffs2_eraseblock *jeb); 232 #define jffs2_dbg_acct_paranoia_check(c, jeb) \ 233 __jffs2_dbg_acct_paranoia_check(c,jeb) [all...] |
H A D | summary.c | 102 /* The following 3 functions are called from scan.c to collect summary info for not closed jeb */ 122 temp->offset = cpu_to_je32(ofs); /* relative offset from the begining of the jeb */ 140 temp->offset = cpu_to_je32(ofs); /* relative from the begining of the jeb */ 248 struct jffs2_eraseblock *jeb; local 251 dbg_summary("Summary is disabled for this jeb! Skipping summary info!\n"); 256 jeb = &c->blocks[ofs / c->sector_size]; 257 ofs -= jeb->offset; 367 struct jffs2_eraseblock *jeb, 372 if ((ofs & ~3) > c->sector_size - jeb->free_size) { 374 jffs2_scan_dirty_space(c, jeb, (of 366 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 382 jffs2_sum_process_sum_data(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_summary *summary, uint32_t *pseudo_random) argument 551 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 653 jffs2_sum_write_data(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t infosize, uint32_t datasize, int padsize) argument 809 struct jffs2_eraseblock *jeb; local [all...] |
H A D | nodelist.c | 606 struct jffs2_eraseblock *jeb, 612 BUG_ON(!jeb->allocated_refs); 613 jeb->allocated_refs--; 615 ref = jeb->last_node; 632 if (!jeb->first_node) { 633 jeb->first_node = ref; 634 BUG_ON(ref_offset(ref) != jeb->offset); 635 } else if (unlikely(ref_offset(ref) != jeb->offset + c->sector_size - jeb->free_size)) { 636 uint32_t last_len = ref_totlen(c, jeb, je 605 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 682 jffs2_scan_dirty_space(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t size) argument 712 __ref_totlen(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_node_ref *ref) argument 736 __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 | 25 static int jffs2_garbage_collect_metadata(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 27 static int jffs2_garbage_collect_dirent(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 29 static int jffs2_garbage_collect_deletion_dirent(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 31 static int jffs2_garbage_collect_hole(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 34 static int jffs2_garbage_collect_dnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 37 static int jffs2_garbage_collect_live(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 123 struct jffs2_eraseblock *jeb; local 217 jeb = c->gcblock; 219 if (!jeb) 220 jeb 431 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 635 struct jffs2_eraseblock *jeb = &c->blocks[phys_ofs / c->sector_size]; local 676 jffs2_garbage_collect_metadata(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_inode_info *f, struct jffs2_full_dnode *fn) argument 764 jffs2_garbage_collect_dirent(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_inode_info *f, struct jffs2_full_dirent *fd) argument 808 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 919 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 1067 jffs2_garbage_collect_dnode(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 1130 struct jffs2_eraseblock *jeb; local 1180 struct jffs2_eraseblock *jeb; local [all...] |
H A D | wbuf.c | 114 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 116 D1(printk(KERN_DEBUG "Removing eraseblock at 0x%08x from erasable_pending_wbuf_list...\n", jeb->offset)); 122 list_add_tail(&jeb->list, &c->erase_pending_list); 129 list_add_tail(&jeb->list, &c->erasable_list); 137 static void jffs2_block_refile(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, int allow_empty) argument 139 D1(printk("About to refile bad block at %08x\n", jeb->offset)); 142 if (c->nextblock == jeb) 145 list_del(&jeb->list); 146 if (jeb->first_node) { 147 D1(printk("Refiling block at %08x to bad_used_list\n", jeb 228 struct jffs2_eraseblock *jeb, *new_jeb; local 746 struct jffs2_eraseblock *jeb; local 982 jffs2_check_oob_empty(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, int mode) argument 1026 jffs2_check_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 1051 jffs2_write_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 1085 jffs2_write_nand_badblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset) argument [all...] |
H A D | malloc.c | 209 struct jffs2_eraseblock *jeb, int nr) 216 p = &jeb->last_node; 219 dbg_memalloc("Reserving %d refs for block @0x%08x\n", nr, jeb->offset); 221 /* If jeb->last_node is really a valid node then skip over it */ 240 jeb->allocated_refs = nr; 243 nr, jeb->offset, jeb->last_node, jeb->last_node->flash_offset, 244 jeb->last_node->next_in_ino); 208 jffs2_prealloc_raw_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, int nr) argument
|
H A D | os-linux.h | 80 #define jffs2_write_nand_cleanmarker(c,jeb) (-EIO) 86 #define jffs2_write_nand_badblock(c,jeb,bad_offset) (1) 123 int jffs2_check_oob_empty(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb,int mode); 124 int jffs2_check_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 125 int jffs2_write_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 126 int jffs2_write_nand_badblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset);
|
H A D | nodelist.h | 92 uint32_t __totlen; /* This may die; use ref_totlen(c, jeb, ) below */ 367 struct jffs2_eraseblock *jeb, 371 struct jffs2_eraseblock *jeb, 427 struct jffs2_eraseblock *jeb, int nr); 455 int jffs2_scan_classify_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 456 int jffs2_scan_dirty_space(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t size); 463 void jffs2_free_jeb_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 469 int jffs2_check_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 470 int jffs2_write_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb);
|
H A D | readinode.c | 33 struct jffs2_eraseblock *jeb; local 112 jeb = &c->blocks[ref->flash_offset / c->sector_size]; 113 len = ref_totlen(c, jeb, ref); 124 jeb->used_size += len; 125 jeb->unchecked_size -= len; 128 jffs2_dbg_acct_paranoia_check_nolock(c, jeb); 597 struct jffs2_eraseblock *jeb; local 608 jeb = &c->blocks[ref->flash_offset / c->sector_size]; 609 len = ref_totlen(c, jeb, ref); 612 jeb 786 struct jffs2_eraseblock *jeb; local [all...] |
H A D | write.c | 126 struct jffs2_eraseblock *jeb = &c->blocks[flash_ofs / c->sector_size]; local 132 jffs2_dbg_acct_sanity_check(c,jeb); 133 jffs2_dbg_acct_paranoia_check(c, jeb); 152 jffs2_dbg_acct_sanity_check(c,jeb); 153 jffs2_dbg_acct_paranoia_check(c, jeb); 257 struct jffs2_eraseblock *jeb = &c->blocks[flash_ofs / c->sector_size]; local 263 jffs2_dbg_acct_sanity_check(c,jeb); 264 jffs2_dbg_acct_paranoia_check(c, jeb); 282 jffs2_dbg_acct_sanity_check(c,jeb); 283 jffs2_dbg_acct_paranoia_check(c, jeb); [all...] |
H A D | xattr.c | 130 struct jffs2_eraseblock *jeb; local 180 jeb = &c->blocks[ref_offset(raw) / c->sector_size]; 181 totlen = PAD(ref_totlen(c, jeb, raw)); 184 jeb->unchecked_size -= totlen; jeb->used_size += totlen; 439 struct jffs2_eraseblock *jeb; local 484 jeb = &c->blocks[ref_offset(raw) / c->sector_size]; 485 totlen = PAD(ref_totlen(c, jeb, raw)); 488 jeb->unchecked_size -= totlen; jeb 1273 struct jffs2_eraseblock *jeb; local [all...] |
H A D | summary.h | 44 jint32_t offset; /* offset on jeb */ 52 jint32_t offset; /* offset on jeb */ 66 jint32_t offset; /* offset on jeb */ 73 jint32_t offset; /* offset on jeb */ 99 jint32_t offset; /* offset on jeb */ 108 jint32_t offset; /* ofset on jeb */ 160 jint32_t offset; /* offset of the summary node in the jeb */ 183 int jffs2_sum_scan_sumnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb,
|