/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/jffs2/ |
H A D | debug.c | 27 struct jffs2_eraseblock *jeb) 29 if (unlikely(jeb && jeb->used_size + jeb->dirty_size + 30 jeb->free_size + jeb->wasted_size + 31 jeb->unchecked_size != c->sector_size)) { 32 JFFS2_ERROR("eeep, space accounting for block at 0x%08x is screwed.\n", jeb->offset); 34 jeb->free_size, jeb 26 __jffs2_dbg_acct_sanity_check_nolock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 50 __jffs2_dbg_acct_sanity_check(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 160 struct jffs2_eraseblock *jeb; local 295 __jffs2_dbg_acct_paranoia_check(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 304 __jffs2_dbg_acct_paranoia_check_nolock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 370 __jffs2_dbg_dump_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 379 __jffs2_dbg_dump_node_refs_nolock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 413 __jffs2_dbg_dump_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 421 __jffs2_dbg_dump_jeb_nolock(struct jffs2_eraseblock *jeb) argument 484 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 506 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 529 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 550 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 566 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 581 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 597 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 613 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 629 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 645 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local 661 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); local [all...] |
H A D | erase.c | 23 struct jffs2_eraseblock *jeb; member in struct:erase_priv_struct 30 static void jffs2_erase_failed(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset); 31 static void jffs2_erase_succeeded(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 32 static void jffs2_mark_erased_block(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 35 struct jffs2_eraseblock *jeb) 40 ret = jffs2_flash_erase(c, jeb); 42 jffs2_erase_succeeded(c, jeb); 45 bad_offset = jeb->offset; 50 jeb->offset, jeb 34 jffs2_erase_block(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 109 struct jffs2_eraseblock *jeb; local 166 jffs2_erase_succeeded(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 179 jffs2_erase_failed(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset) argument 229 jffs2_remove_node_refs_from_ino_list(struct jffs2_sb_info *c, struct jffs2_raw_node_ref *ref, struct jffs2_eraseblock *jeb) argument 310 jffs2_free_jeb_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 333 jffs2_block_check_erase(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t *bad_offset) argument 414 jffs2_mark_erased_block(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument [all...] |
H A D | nodemgmt.c | 183 static void jffs2_close_nextblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 188 jeb->offset)); 192 if (ISDIRTY (jeb->wasted_size + jeb->dirty_size)) { 193 c->dirty_size += jeb->wasted_size; 194 c->wasted_size -= jeb->wasted_size; 195 jeb->dirty_size += jeb->wasted_size; 196 jeb->wasted_size = 0; 197 if (VERYDIRTY(c, jeb 290 struct jffs2_eraseblock *jeb = c->nextblock; local 431 struct jffs2_eraseblock *jeb; local 503 struct jffs2_eraseblock *jeb; local 743 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 140 struct jffs2_eraseblock *jeb = &c->blocks[i]; local 299 jffs2_scan_classify_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 319 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 375 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 434 jffs2_scan_eraseblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, unsigned char *buf, uint32_t buf_size, struct jffs2_summary *s) argument 950 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 1005 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 | 190 struct jffs2_eraseblock *jeb); 193 struct jffs2_eraseblock *jeb); 202 struct jffs2_eraseblock *jeb); 205 struct jffs2_eraseblock *jeb); 212 __jffs2_dbg_dump_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 214 __jffs2_dbg_dump_jeb_nolock(struct jffs2_eraseblock *jeb); 221 struct jffs2_eraseblock *jeb); 224 struct jffs2_eraseblock *jeb); 239 #define jffs2_dbg_acct_paranoia_check(c, jeb) \ 240 __jffs2_dbg_acct_paranoia_check(c,jeb) [all...] |
H A D | summary.c | 104 /* The following 3 functions are called from scan.c to collect summary info for not closed jeb */ 124 temp->offset = cpu_to_je32(ofs); /* relative offset from the begining of the jeb */ 142 temp->offset = cpu_to_je32(ofs); /* relative from the begining of the jeb */ 250 struct jffs2_eraseblock *jeb; local 253 dbg_summary("Summary is disabled for this jeb! Skipping summary info!\n"); 258 jeb = &c->blocks[ofs / c->sector_size]; 259 ofs -= jeb->offset; 369 struct jffs2_eraseblock *jeb, 374 if ((ofs & ~3) > c->sector_size - jeb->free_size) { 376 jffs2_scan_dirty_space(c, jeb, (of 368 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 384 jffs2_sum_process_sum_data(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_summary *summary, uint32_t *pseudo_random) argument 567 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 669 jffs2_sum_write_data(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t infosize, uint32_t datasize, int padsize) argument 845 struct jffs2_eraseblock *jeb; local [all...] |
H A D | nodelist.c | 608 struct jffs2_eraseblock *jeb, 614 BUG_ON(!jeb->allocated_refs); 615 jeb->allocated_refs--; 617 ref = jeb->last_node; 634 if (!jeb->first_node) { 635 jeb->first_node = ref; 636 BUG_ON(ref_offset(ref) != jeb->offset); 637 } else if (unlikely(ref_offset(ref) != jeb->offset + c->sector_size - jeb->free_size)) { 638 uint32_t last_len = ref_totlen(c, jeb, je 607 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 684 jffs2_scan_dirty_space(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t size) argument 714 __ref_totlen(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_node_ref *ref) argument 738 __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 | 26 static int jffs2_garbage_collect_metadata(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 28 static int jffs2_garbage_collect_dirent(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 30 static int jffs2_garbage_collect_deletion_dirent(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 32 static int jffs2_garbage_collect_hole(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 35 static int jffs2_garbage_collect_dnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 38 static int jffs2_garbage_collect_live(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 124 struct jffs2_eraseblock *jeb; local 232 jeb = c->gcblock; 234 if (!jeb) 235 jeb 459 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 668 struct jffs2_eraseblock *jeb = &c->blocks[phys_ofs / c->sector_size]; local 709 jffs2_garbage_collect_metadata(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_inode_info *f, struct jffs2_full_dnode *fn) argument 798 jffs2_garbage_collect_dirent(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_inode_info *f, struct jffs2_full_dirent *fd) argument 842 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 953 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 1164 struct jffs2_eraseblock *jeb; local 1214 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 269 struct jffs2_eraseblock *jeb, *new_jeb; local 785 struct jffs2_eraseblock *jeb; local 1021 jffs2_check_oob_empty(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, int mode) argument 1065 jffs2_check_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 1090 jffs2_write_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) argument 1124 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 | 76 #define jffs2_write_nand_cleanmarker(c,jeb) (-EIO) 82 #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 */ 371 struct jffs2_eraseblock *jeb, 375 struct jffs2_eraseblock *jeb, 431 struct jffs2_eraseblock *jeb, int nr); 459 int jffs2_scan_classify_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 460 int jffs2_scan_dirty_space(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t size); 467 void jffs2_free_jeb_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 473 int jffs2_check_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 474 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 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); 623 struct jffs2_eraseblock *jeb; local 634 jeb = &c->blocks[ref->flash_offset / c->sector_size]; 635 len = ref_totlen(c, jeb, ref); 638 jeb 812 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); 274 struct jffs2_eraseblock *jeb = &c->blocks[flash_ofs / c->sector_size]; local 280 jffs2_dbg_acct_sanity_check(c,jeb); 281 jffs2_dbg_acct_paranoia_check(c, jeb); 299 jffs2_dbg_acct_sanity_check(c,jeb); 300 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 1275 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,
|