Home
last modified time | relevance | path

Searched refs:jeb (Results 1 - 25 of 34) sorted by relevance

12

/kernel/linux/linux-5.10/fs/jffs2/
H A Ddebug.c29 struct jffs2_eraseblock *jeb) in __jffs2_dbg_acct_sanity_check_nolock()
31 if (unlikely(jeb && jeb->used_size + jeb->dirty_size + in __jffs2_dbg_acct_sanity_check_nolock()
32 jeb->free_size + jeb->wasted_size + in __jffs2_dbg_acct_sanity_check_nolock()
33 jeb->unchecked_size != c->sector_size)) { in __jffs2_dbg_acct_sanity_check_nolock()
34 JFFS2_ERROR("eeep, space accounting for block at 0x%08x is screwed.\n", jeb->offset); in __jffs2_dbg_acct_sanity_check_nolock()
36 jeb->free_size, jeb in __jffs2_dbg_acct_sanity_check_nolock()
28 __jffs2_dbg_acct_sanity_check_nolock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) __jffs2_dbg_acct_sanity_check_nolock() argument
52 __jffs2_dbg_acct_sanity_check(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) __jffs2_dbg_acct_sanity_check() argument
162 struct jffs2_eraseblock *jeb; __jffs2_dbg_superblock_counts() local
301 __jffs2_dbg_acct_paranoia_check(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) __jffs2_dbg_acct_paranoia_check() argument
310 __jffs2_dbg_acct_paranoia_check_nolock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) __jffs2_dbg_acct_paranoia_check_nolock() argument
392 __jffs2_dbg_dump_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) __jffs2_dbg_dump_node_refs() argument
401 __jffs2_dbg_dump_node_refs_nolock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) __jffs2_dbg_dump_node_refs_nolock() argument
435 __jffs2_dbg_dump_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) __jffs2_dbg_dump_jeb() argument
443 __jffs2_dbg_dump_jeb_nolock(struct jffs2_eraseblock *jeb) __jffs2_dbg_dump_jeb_nolock() argument
506 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
528 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
551 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
572 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
588 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
603 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
619 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
635 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
651 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
667 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
683 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
[all...]
H A Derase.c24 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) in jffs2_erase_block()
34 ret = jffs2_flash_erase(c, jeb); in jffs2_erase_block()
36 jffs2_erase_succeeded(c, jeb); in jffs2_erase_block()
39 bad_offset = jeb->offset; in jffs2_erase_block()
45 jeb->offset, jeb->offset, jeb in jffs2_erase_block()
28 jffs2_erase_block(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) jffs2_erase_block() argument
103 struct jffs2_eraseblock *jeb; jffs2_erase_pending_blocks() local
161 jffs2_erase_succeeded(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) jffs2_erase_succeeded() argument
174 jffs2_erase_failed(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset) jffs2_erase_failed() argument
208 jffs2_remove_node_refs_from_ino_list(struct jffs2_sb_info *c, struct jffs2_raw_node_ref *ref, struct jffs2_eraseblock *jeb) jffs2_remove_node_refs_from_ino_list() argument
289 jffs2_free_jeb_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) jffs2_free_jeb_node_refs() argument
313 jffs2_block_check_erase(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t *bad_offset) jffs2_block_check_erase() argument
400 jffs2_mark_erased_block(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) jffs2_mark_erased_block() argument
[all...]
H A Dnodemgmt.c243 static void jffs2_close_nextblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) in jffs2_close_nextblock() argument
248 __func__, jeb->offset); in jffs2_close_nextblock()
252 if (ISDIRTY (jeb->wasted_size + jeb->dirty_size)) { in jffs2_close_nextblock()
253 c->dirty_size += jeb->wasted_size; in jffs2_close_nextblock()
254 c->wasted_size -= jeb->wasted_size; in jffs2_close_nextblock()
255 jeb->dirty_size += jeb->wasted_size; in jffs2_close_nextblock()
256 jeb->wasted_size = 0; in jffs2_close_nextblock()
257 if (VERYDIRTY(c, jeb in jffs2_close_nextblock()
357 struct jffs2_eraseblock *jeb = c->nextblock; jffs2_do_reserve_space() local
504 struct jffs2_eraseblock *jeb; jffs2_add_physical_node_ref() local
581 struct jffs2_eraseblock *jeb; jffs2_mark_node_obsolete() local
842 struct jffs2_eraseblock *jeb; jffs2_thread_should_wake() local
[all...]
H A Dscan.c39 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) in file_dirty() argument
73 if ((ret = jffs2_prealloc_raw_node_refs(c, jeb, 1))) in file_dirty()
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()
80 c->dirty_size += jeb in file_dirty()
144 struct jffs2_eraseblock *jeb = &c->blocks[i]; jffs2_scan_medium() local
310 jffs2_scan_classify_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) jffs2_scan_classify_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) jffs2_scan_xattr_node() 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) jffs2_scan_xref_node() 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) jffs2_scan_eraseblock() 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) jffs2_scan_inode_node() 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) jffs2_scan_dirent_node() argument
[all...]
H A Ddebug.h174 struct jffs2_eraseblock *jeb);
177 struct jffs2_eraseblock *jeb);
186 struct jffs2_eraseblock *jeb);
189 struct jffs2_eraseblock *jeb);
196 __jffs2_dbg_dump_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb);
198 __jffs2_dbg_dump_jeb_nolock(struct jffs2_eraseblock *jeb);
205 struct jffs2_eraseblock *jeb);
208 struct jffs2_eraseblock *jeb);
223 #define jffs2_dbg_acct_paranoia_check(c, jeb) \
224 __jffs2_dbg_acct_paranoia_check(c,jeb)
[all...]
H A Dsummary.c106 /* 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 */ in jffs2_sum_add_inode_mem()
144 temp->offset = cpu_to_je32(ofs); /* relative from the beginning of the jeb */ in jffs2_sum_add_dirent_mem()
252 struct jffs2_eraseblock *jeb; in jffs2_sum_add_kvec() local
255 dbg_summary("Summary is disabled for this jeb! Skipping summary info!\n"); in jffs2_sum_add_kvec()
260 jeb = &c->blocks[ofs / c->sector_size]; in jffs2_sum_add_kvec()
261 ofs -= jeb->offset; in jffs2_sum_add_kvec()
371 struct jffs2_eraseblock *jeb, in sum_link_node_ref()
376 if ((ofs & ~3) > c->sector_size - jeb->free_size) { in sum_link_node_ref()
378 jffs2_scan_dirty_space(c, jeb, (of in sum_link_node_ref()
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) sum_link_node_ref() 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) jffs2_sum_process_sum_data() 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) jffs2_sum_scan_sumnode() argument
674 jffs2_sum_write_data(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t infosize, uint32_t datasize, int padsize) jffs2_sum_write_data() argument
853 struct jffs2_eraseblock *jeb; global() variable
[all...]
H A Dnodelist.c586 struct jffs2_eraseblock *jeb, in jffs2_link_node_ref()
592 BUG_ON(!jeb->allocated_refs); in jffs2_link_node_ref()
593 jeb->allocated_refs--; in jffs2_link_node_ref()
595 ref = jeb->last_node; in jffs2_link_node_ref()
612 if (!jeb->first_node) { in jffs2_link_node_ref()
613 jeb->first_node = ref; in jffs2_link_node_ref()
614 BUG_ON(ref_offset(ref) != jeb->offset); in jffs2_link_node_ref()
615 } else if (unlikely(ref_offset(ref) != jeb->offset + c->sector_size - jeb->free_size)) { in jffs2_link_node_ref()
616 uint32_t last_len = ref_totlen(c, jeb, je in jffs2_link_node_ref()
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) jffs2_link_node_ref() argument
662 jffs2_scan_dirty_space(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t size) jffs2_scan_dirty_space() argument
692 __ref_totlen(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_node_ref *ref) __ref_totlen() argument
718 __jffs2_ref_totlen(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_node_ref *ref) __jffs2_ref_totlen() argument
[all...]
H A Dgc.c28 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; in jffs2_garbage_collect_pass() local
262 jeb = c->gcblock; in jffs2_garbage_collect_pass()
264 if (!jeb) in jffs2_garbage_collect_pass()
265 jeb in jffs2_garbage_collect_pass()
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) jffs2_garbage_collect_live() argument
714 struct jffs2_eraseblock *jeb = &c->blocks[phys_ofs / c->sector_size]; jffs2_garbage_collect_pristine() 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) jffs2_garbage_collect_metadata() 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) jffs2_garbage_collect_dirent() 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) jffs2_garbage_collect_deletion_dirent() 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) jffs2_garbage_collect_hole() argument
1228 struct jffs2_eraseblock *jeb; jffs2_garbage_collect_dnode() local
1284 struct jffs2_eraseblock *jeb; jffs2_garbage_collect_dnode() local
[all...]
H A Dwbuf.c117 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); in jffs2_refile_wbuf_blocks() local
120 jeb->offset); in jffs2_refile_wbuf_blocks()
126 list_add_tail(&jeb->list, &c->erase_pending_list); in jffs2_refile_wbuf_blocks()
133 list_add_tail(&jeb->list, &c->erasable_list); in jffs2_refile_wbuf_blocks()
141 static void jffs2_block_refile(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, int allow_empty) in jffs2_block_refile() argument
143 jffs2_dbg(1, "About to refile bad block at %08x\n", jeb->offset); in jffs2_block_refile()
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 in jffs2_block_refile()
277 struct jffs2_eraseblock *jeb, *new_jeb; jffs2_wbuf_recover() local
798 struct jffs2_eraseblock *jeb; jffs2_flash_writev() local
1033 jffs2_check_oob_empty(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, int mode) jffs2_check_oob_empty() argument
1076 jffs2_check_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) jffs2_check_nand_cleanmarker() argument
1100 jffs2_write_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) jffs2_write_nand_cleanmarker() argument
1133 jffs2_write_nand_badblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset) jffs2_write_nand_badblock() argument
[all...]
H A Dmalloc.c202 struct jffs2_eraseblock *jeb, int nr) in jffs2_prealloc_raw_node_refs()
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()
214 /* If jeb->last_node is really a valid node then skip over it */ 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()
201 jffs2_prealloc_raw_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, int nr) jffs2_prealloc_raw_node_refs() argument
H A Dos-linux.h77 #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 Dnodelist.h91 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);
/kernel/linux/linux-6.6/fs/jffs2/
H A Ddebug.c29 struct jffs2_eraseblock *jeb) in __jffs2_dbg_acct_sanity_check_nolock()
31 if (unlikely(jeb && jeb->used_size + jeb->dirty_size + in __jffs2_dbg_acct_sanity_check_nolock()
32 jeb->free_size + jeb->wasted_size + in __jffs2_dbg_acct_sanity_check_nolock()
33 jeb->unchecked_size != c->sector_size)) { in __jffs2_dbg_acct_sanity_check_nolock()
34 JFFS2_ERROR("eeep, space accounting for block at 0x%08x is screwed.\n", jeb->offset); in __jffs2_dbg_acct_sanity_check_nolock()
36 jeb->free_size, jeb in __jffs2_dbg_acct_sanity_check_nolock()
28 __jffs2_dbg_acct_sanity_check_nolock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) __jffs2_dbg_acct_sanity_check_nolock() argument
52 __jffs2_dbg_acct_sanity_check(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) __jffs2_dbg_acct_sanity_check() argument
162 struct jffs2_eraseblock *jeb; __jffs2_dbg_superblock_counts() local
301 __jffs2_dbg_acct_paranoia_check(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) __jffs2_dbg_acct_paranoia_check() argument
310 __jffs2_dbg_acct_paranoia_check_nolock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) __jffs2_dbg_acct_paranoia_check_nolock() argument
392 __jffs2_dbg_dump_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) __jffs2_dbg_dump_node_refs() argument
401 __jffs2_dbg_dump_node_refs_nolock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) __jffs2_dbg_dump_node_refs_nolock() argument
435 __jffs2_dbg_dump_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) __jffs2_dbg_dump_jeb() argument
443 __jffs2_dbg_dump_jeb_nolock(struct jffs2_eraseblock *jeb) __jffs2_dbg_dump_jeb_nolock() argument
506 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
528 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
551 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
572 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
588 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
603 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
619 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
635 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
651 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
667 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
683 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); __jffs2_dbg_dump_block_lists_nolock() local
[all...]
H A Derase.c24 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) in jffs2_erase_block()
34 ret = jffs2_flash_erase(c, jeb); in jffs2_erase_block()
36 jffs2_erase_succeeded(c, jeb); in jffs2_erase_block()
39 bad_offset = jeb->offset; in jffs2_erase_block()
45 jeb->offset, jeb->offset, jeb in jffs2_erase_block()
28 jffs2_erase_block(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) jffs2_erase_block() argument
101 struct jffs2_eraseblock *jeb; jffs2_erase_pending_blocks() local
159 jffs2_erase_succeeded(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) jffs2_erase_succeeded() argument
172 jffs2_erase_failed(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset) jffs2_erase_failed() argument
206 jffs2_remove_node_refs_from_ino_list(struct jffs2_sb_info *c, struct jffs2_raw_node_ref *ref, struct jffs2_eraseblock *jeb) jffs2_remove_node_refs_from_ino_list() argument
287 jffs2_free_jeb_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) jffs2_free_jeb_node_refs() argument
311 jffs2_block_check_erase(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t *bad_offset) jffs2_block_check_erase() argument
398 jffs2_mark_erased_block(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) jffs2_mark_erased_block() argument
[all...]
H A Dnodemgmt.c243 static void jffs2_close_nextblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) in jffs2_close_nextblock() argument
248 __func__, jeb->offset); in jffs2_close_nextblock()
252 if (ISDIRTY (jeb->wasted_size + jeb->dirty_size)) { in jffs2_close_nextblock()
253 c->dirty_size += jeb->wasted_size; in jffs2_close_nextblock()
254 c->wasted_size -= jeb->wasted_size; in jffs2_close_nextblock()
255 jeb->dirty_size += jeb->wasted_size; in jffs2_close_nextblock()
256 jeb->wasted_size = 0; in jffs2_close_nextblock()
257 if (VERYDIRTY(c, jeb in jffs2_close_nextblock()
357 struct jffs2_eraseblock *jeb = c->nextblock; jffs2_do_reserve_space() local
504 struct jffs2_eraseblock *jeb; jffs2_add_physical_node_ref() local
581 struct jffs2_eraseblock *jeb; jffs2_mark_node_obsolete() local
842 struct jffs2_eraseblock *jeb; jffs2_thread_should_wake() local
[all...]
H A Dscan.c39 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) in file_dirty() argument
73 if ((ret = jffs2_prealloc_raw_node_refs(c, jeb, 1))) in file_dirty()
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()
80 c->dirty_size += jeb in file_dirty()
144 struct jffs2_eraseblock *jeb = &c->blocks[i]; jffs2_scan_medium() local
310 jffs2_scan_classify_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) jffs2_scan_classify_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) jffs2_scan_xattr_node() 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) jffs2_scan_xref_node() 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) jffs2_scan_eraseblock() 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) jffs2_scan_inode_node() 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) jffs2_scan_dirent_node() argument
[all...]
H A Ddebug.h175 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 Dsummary.c106 /* 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 */ in jffs2_sum_add_inode_mem()
144 temp->offset = cpu_to_je32(ofs); /* relative from the beginning of the jeb */ in jffs2_sum_add_dirent_mem()
252 struct jffs2_eraseblock *jeb; in jffs2_sum_add_kvec() local
255 dbg_summary("Summary is disabled for this jeb! Skipping summary info!\n"); in jffs2_sum_add_kvec()
260 jeb = &c->blocks[ofs / c->sector_size]; in jffs2_sum_add_kvec()
261 ofs -= jeb->offset; in jffs2_sum_add_kvec()
371 struct jffs2_eraseblock *jeb, in sum_link_node_ref()
376 if ((ofs & ~3) > c->sector_size - jeb->free_size) { in sum_link_node_ref()
378 jffs2_scan_dirty_space(c, jeb, (of in sum_link_node_ref()
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) sum_link_node_ref() 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) jffs2_sum_process_sum_data() 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) jffs2_sum_scan_sumnode() argument
674 jffs2_sum_write_data(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t infosize, uint32_t datasize, int padsize) jffs2_sum_write_data() argument
853 struct jffs2_eraseblock *jeb; global() variable
[all...]
H A Dnodelist.c586 struct jffs2_eraseblock *jeb, in jffs2_link_node_ref()
592 BUG_ON(!jeb->allocated_refs); in jffs2_link_node_ref()
593 jeb->allocated_refs--; in jffs2_link_node_ref()
595 ref = jeb->last_node; in jffs2_link_node_ref()
612 if (!jeb->first_node) { in jffs2_link_node_ref()
613 jeb->first_node = ref; in jffs2_link_node_ref()
614 BUG_ON(ref_offset(ref) != jeb->offset); in jffs2_link_node_ref()
615 } else if (unlikely(ref_offset(ref) != jeb->offset + c->sector_size - jeb->free_size)) { in jffs2_link_node_ref()
616 uint32_t last_len = ref_totlen(c, jeb, je in jffs2_link_node_ref()
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) jffs2_link_node_ref() argument
662 jffs2_scan_dirty_space(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t size) jffs2_scan_dirty_space() argument
692 __ref_totlen(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_node_ref *ref) __ref_totlen() argument
718 __jffs2_ref_totlen(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_node_ref *ref) __jffs2_ref_totlen() argument
[all...]
H A Dgc.c28 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; in jffs2_garbage_collect_pass() local
262 jeb = c->gcblock; in jffs2_garbage_collect_pass()
264 if (!jeb) in jffs2_garbage_collect_pass()
265 jeb in jffs2_garbage_collect_pass()
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) jffs2_garbage_collect_live() argument
714 struct jffs2_eraseblock *jeb = &c->blocks[phys_ofs / c->sector_size]; jffs2_garbage_collect_pristine() 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) jffs2_garbage_collect_metadata() 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) jffs2_garbage_collect_dirent() 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) jffs2_garbage_collect_deletion_dirent() 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) jffs2_garbage_collect_hole() argument
1228 struct jffs2_eraseblock *jeb; jffs2_garbage_collect_dnode() local
1284 struct jffs2_eraseblock *jeb; jffs2_garbage_collect_dnode() local
[all...]
H A Dwbuf.c117 struct jffs2_eraseblock *jeb = list_entry(this, struct jffs2_eraseblock, list); in jffs2_refile_wbuf_blocks() local
120 jeb->offset); in jffs2_refile_wbuf_blocks()
126 list_add_tail(&jeb->list, &c->erase_pending_list); in jffs2_refile_wbuf_blocks()
133 list_add_tail(&jeb->list, &c->erasable_list); in jffs2_refile_wbuf_blocks()
141 static void jffs2_block_refile(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, int allow_empty) in jffs2_block_refile() argument
143 jffs2_dbg(1, "About to refile bad block at %08x\n", jeb->offset); in jffs2_block_refile()
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 in jffs2_block_refile()
277 struct jffs2_eraseblock *jeb, *new_jeb; jffs2_wbuf_recover() local
798 struct jffs2_eraseblock *jeb; jffs2_flash_writev() local
1033 jffs2_check_oob_empty(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, int mode) jffs2_check_oob_empty() argument
1076 jffs2_check_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) jffs2_check_nand_cleanmarker() argument
1100 jffs2_write_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) jffs2_write_nand_cleanmarker() argument
1133 jffs2_write_nand_badblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset) jffs2_write_nand_badblock() argument
[all...]
H A Dmalloc.c202 struct jffs2_eraseblock *jeb, int nr) in jffs2_prealloc_raw_node_refs()
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()
214 /* If jeb->last_node is really a valid node then skip over it */ 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()
201 jffs2_prealloc_raw_node_refs(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, int nr) jffs2_prealloc_raw_node_refs() argument
H A Dos-linux.h77 #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);
/kernel/linux/linux-5.10/kernel/
H A Djump_label.c38 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()
57 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 in jump_label_swap()
[all...]
/kernel/linux/linux-6.6/kernel/
H A Djump_label.c38 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()
57 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 in jump_label_swap()
[all...]

Completed in 15 milliseconds

12