/linux-2.6.39/fs/jffs2/ |
D | debug.c | 27 struct jffs2_eraseblock *jeb) in __jffs2_dbg_acct_sanity_check_nolock() argument 29 if (unlikely(jeb && jeb->used_size + jeb->dirty_size + in __jffs2_dbg_acct_sanity_check_nolock() 30 jeb->free_size + jeb->wasted_size + in __jffs2_dbg_acct_sanity_check_nolock() 31 jeb->unchecked_size != c->sector_size)) { in __jffs2_dbg_acct_sanity_check_nolock() 32 JFFS2_ERROR("eeep, space accounting for block at 0x%08x is screwed.\n", jeb->offset); in __jffs2_dbg_acct_sanity_check_nolock() 34 jeb->free_size, jeb->dirty_size, jeb->used_size, in __jffs2_dbg_acct_sanity_check_nolock() 35 jeb->wasted_size, jeb->unchecked_size, c->sector_size); in __jffs2_dbg_acct_sanity_check_nolock() 51 struct jffs2_eraseblock *jeb) in __jffs2_dbg_acct_sanity_check() argument 54 jffs2_dbg_acct_sanity_check_nolock(c, jeb); in __jffs2_dbg_acct_sanity_check() 160 struct jffs2_eraseblock *jeb; in __jffs2_dbg_superblock_counts() local [all …]
|
D | nodemgmt.c | 183 static void jffs2_close_nextblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) in jffs2_close_nextblock() argument 188 jeb->offset)); in jffs2_close_nextblock() 192 if (ISDIRTY (jeb->wasted_size + jeb->dirty_size)) { in jffs2_close_nextblock() 193 c->dirty_size += jeb->wasted_size; in jffs2_close_nextblock() 194 c->wasted_size -= jeb->wasted_size; in jffs2_close_nextblock() 195 jeb->dirty_size += jeb->wasted_size; in jffs2_close_nextblock() 196 jeb->wasted_size = 0; in jffs2_close_nextblock() 197 if (VERYDIRTY(c, jeb->dirty_size)) { in jffs2_close_nextblock() 199 jeb->offset, jeb->free_size, jeb->dirty_size, jeb->used_size)); in jffs2_close_nextblock() 200 list_add_tail(&jeb->list, &c->very_dirty_list); in jffs2_close_nextblock() [all …]
|
D | erase.c | 23 struct jffs2_eraseblock *jeb; member 30 static void jffs2_erase_failed(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_… 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) in jffs2_erase_block() argument 40 ret = jffs2_flash_erase(c, jeb); in jffs2_erase_block() 42 jffs2_erase_succeeded(c, jeb); in jffs2_erase_block() 45 bad_offset = jeb->offset; in jffs2_erase_block() 50 jeb->offset, jeb->offset, jeb->offset + c->sector_size)); in jffs2_erase_block() 56 list_move(&jeb->list, &c->erase_pending_list); in jffs2_erase_block() [all …]
|
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) in file_dirty() argument 71 if ((ret = jffs2_prealloc_raw_node_refs(c, jeb, 1))) in file_dirty() 73 if ((ret = jffs2_scan_dirty_space(c, jeb, jeb->free_size))) in file_dirty() 77 jeb->dirty_size += jeb->wasted_size; in file_dirty() 78 c->dirty_size += jeb->wasted_size; in file_dirty() 79 c->wasted_size -= jeb->wasted_size; in file_dirty() 80 jeb->wasted_size = 0; in file_dirty() [all …]
|
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) \ argument 240 __jffs2_dbg_acct_paranoia_check(c,jeb) [all …]
|
D | summary.c | 250 struct jffs2_eraseblock *jeb; in jffs2_sum_add_kvec() local 258 jeb = &c->blocks[ofs / c->sector_size]; in jffs2_sum_add_kvec() 259 ofs -= jeb->offset; in jffs2_sum_add_kvec() 369 struct jffs2_eraseblock *jeb, in sum_link_node_ref() argument 374 if ((ofs & ~3) > c->sector_size - jeb->free_size) { in sum_link_node_ref() 376 jffs2_scan_dirty_space(c, jeb, (ofs & ~3) - (c->sector_size - jeb->free_size)); in sum_link_node_ref() 379 return jffs2_link_node_ref(c, jeb, jeb->offset + ofs, len, ic); in sum_link_node_ref() 384 static int jffs2_sum_process_sum_data(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, in jffs2_sum_process_sum_data() argument 401 err = jffs2_prealloc_raw_node_refs(c, jeb, 2); in jffs2_sum_process_sum_data() 413 jeb->offset + je32_to_cpu(spi->offset), in jffs2_sum_process_sum_data() [all …]
|
D | nodelist.c | 608 struct jffs2_eraseblock *jeb, in jffs2_link_node_ref() argument 614 BUG_ON(!jeb->allocated_refs); in jffs2_link_node_ref() 615 jeb->allocated_refs--; in jffs2_link_node_ref() 617 ref = jeb->last_node; in jffs2_link_node_ref() 634 if (!jeb->first_node) { in jffs2_link_node_ref() 635 jeb->first_node = ref; in jffs2_link_node_ref() 636 BUG_ON(ref_offset(ref) != jeb->offset); in jffs2_link_node_ref() 637 } else if (unlikely(ref_offset(ref) != jeb->offset + c->sector_size - jeb->free_size)) { in jffs2_link_node_ref() 638 uint32_t last_len = ref_totlen(c, jeb, jeb->last_node); in jffs2_link_node_ref() 642 ref_offset(jeb->last_node), in jffs2_link_node_ref() [all …]
|
D | wbuf.c | 114 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); in jffs2_refile_wbuf_blocks() local 116 …D1(printk(KERN_DEBUG "Removing eraseblock at 0x%08x from erasable_pending_wbuf_list...\n", jeb->of… in jffs2_refile_wbuf_blocks() 122 list_add_tail(&jeb->list, &c->erase_pending_list); in jffs2_refile_wbuf_blocks() 129 list_add_tail(&jeb->list, &c->erasable_list); in jffs2_refile_wbuf_blocks() 137 static void jffs2_block_refile(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, int allow_emp… in jffs2_block_refile() argument 139 D1(printk("About to refile bad block at %08x\n", jeb->offset)); in jffs2_block_refile() 142 if (c->nextblock == jeb) in jffs2_block_refile() 145 list_del(&jeb->list); in jffs2_block_refile() 146 if (jeb->first_node) { in jffs2_block_refile() 147 D1(printk("Refiling block at %08x to bad_used_list\n", jeb->offset)); in jffs2_block_refile() [all …]
|
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 …ic 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; in jffs2_garbage_collect_pass() local 233 jeb = c->gcblock; in jffs2_garbage_collect_pass() 235 if (!jeb) in jffs2_garbage_collect_pass() 236 jeb = jffs2_find_gc_block(c); in jffs2_garbage_collect_pass() [all …]
|
D | malloc.c | 209 struct jffs2_eraseblock *jeb, int nr) in jffs2_prealloc_raw_node_refs() argument 216 p = &jeb->last_node; in jffs2_prealloc_raw_node_refs() 219 dbg_memalloc("Reserving %d refs for block @0x%08x\n", nr, jeb->offset); in jffs2_prealloc_raw_node_refs() 240 jeb->allocated_refs = nr; in jffs2_prealloc_raw_node_refs() 243 nr, jeb->offset, jeb->last_node, jeb->last_node->flash_offset, in jffs2_prealloc_raw_node_refs() 244 jeb->last_node->next_in_ino); in jffs2_prealloc_raw_node_refs()
|
D | os-linux.h | 76 #define jffs2_write_nand_cleanmarker(c,jeb) (-EIO) argument 82 #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…
|
D | nodelist.h | 372 struct jffs2_eraseblock *jeb, 376 struct jffs2_eraseblock *jeb, 432 struct jffs2_eraseblock *jeb, int nr); 460 int jffs2_scan_classify_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 461 int jffs2_scan_dirty_space(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t size); 468 void jffs2_free_jeb_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 474 int jffs2_check_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 475 int jffs2_write_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb);
|
D | readinode.c | 33 struct jffs2_eraseblock *jeb; in check_node_data() local 114 jeb = &c->blocks[ref->flash_offset / c->sector_size]; in check_node_data() 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() 130 jffs2_dbg_acct_paranoia_check_nolock(c, jeb); in check_node_data() 623 struct jffs2_eraseblock *jeb; in read_direntry() local 634 jeb = &c->blocks[ref->flash_offset / c->sector_size]; in read_direntry() 635 len = ref_totlen(c, jeb, ref); in read_direntry() 638 jeb->used_size += len; in read_direntry() [all …]
|
D | write.c | 126 struct jffs2_eraseblock *jeb = &c->blocks[flash_ofs / c->sector_size]; in jffs2_write_dnode() local 132 jffs2_dbg_acct_sanity_check(c,jeb); in jffs2_write_dnode() 133 jffs2_dbg_acct_paranoia_check(c, jeb); in jffs2_write_dnode() 152 jffs2_dbg_acct_sanity_check(c,jeb); in jffs2_write_dnode() 153 jffs2_dbg_acct_paranoia_check(c, jeb); in jffs2_write_dnode() 274 struct jffs2_eraseblock *jeb = &c->blocks[flash_ofs / c->sector_size]; in jffs2_write_dirent() local 280 jffs2_dbg_acct_sanity_check(c,jeb); in jffs2_write_dirent() 281 jffs2_dbg_acct_paranoia_check(c, jeb); in jffs2_write_dirent() 299 jffs2_dbg_acct_sanity_check(c,jeb); in jffs2_write_dirent() 300 jffs2_dbg_acct_paranoia_check(c, jeb); in jffs2_write_dirent()
|
D | xattr.c | 130 struct jffs2_eraseblock *jeb; in do_verify_xattr_datum() local 180 jeb = &c->blocks[ref_offset(raw) / c->sector_size]; in do_verify_xattr_datum() 181 totlen = PAD(ref_totlen(c, jeb, raw)); in do_verify_xattr_datum() 184 jeb->unchecked_size -= totlen; jeb->used_size += totlen; in do_verify_xattr_datum() 439 struct jffs2_eraseblock *jeb; in verify_xattr_ref() local 484 jeb = &c->blocks[ref_offset(raw) / c->sector_size]; in verify_xattr_ref() 485 totlen = PAD(ref_totlen(c, jeb, raw)); in verify_xattr_ref() 488 jeb->unchecked_size -= totlen; jeb->used_size += totlen; in verify_xattr_ref() 1275 struct jffs2_eraseblock *jeb; in jffs2_verify_xattr() local 1290 jeb = &c->blocks[ref_offset(raw) / c->sector_size]; in jffs2_verify_xattr() [all …]
|
D | summary.h | 189 int jffs2_sum_scan_sumnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb,
|
/linux-2.6.39/kernel/ |
D | jump_label.c | 55 const struct jump_entry *jeb = b; in jump_label_cmp() local 57 if (jea->key < jeb->key) in jump_label_cmp() 60 if (jea->key > jeb->key) in jump_label_cmp()
|