Home
last modified time | relevance | path

Searched refs:nextblock (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/fs/jffs2/
Dnodemgmt.c206 ret = jffs2_prealloc_raw_node_refs(c, c->nextblock, 1); in jffs2_reserve_space()
235 ret = jffs2_prealloc_raw_node_refs(c, c->nextblock, 1); in jffs2_reserve_space_gc()
246 if (c->nextblock == NULL) { in jffs2_close_nextblock()
274 c->nextblock = NULL; in jffs2_close_nextblock()
336 c->nextblock = list_entry(next, struct jffs2_eraseblock, list); in jffs2_find_nextblock()
348 __func__, c->nextblock->offset); in jffs2_find_nextblock()
357 struct jffs2_eraseblock *jeb = c->nextblock; in jffs2_do_reserve_space()
419 jeb = c->nextblock; in jffs2_do_reserve_space()
457 jeb = c->nextblock; in jffs2_do_reserve_space()
515 if ((c->nextblock || ((ofs & 3) != REF_OBSOLETE)) in jffs2_add_physical_node_ref()
[all …]
Dscan.c199 (!c->nextblock || c->nextblock->free_size < jeb->free_size)) { in jffs2_scan_medium()
201 if (c->nextblock) { in jffs2_scan_medium()
202 ret = file_dirty(c, c->nextblock); in jffs2_scan_medium()
212 c->nextblock = jeb; in jffs2_scan_medium()
243 if (c->nextblock && (c->nextblock->dirty_size)) { in jffs2_scan_medium()
244 c->nextblock->wasted_size += c->nextblock->dirty_size; in jffs2_scan_medium()
245 c->wasted_size += c->nextblock->dirty_size; in jffs2_scan_medium()
246 c->dirty_size -= c->nextblock->dirty_size; in jffs2_scan_medium()
247 c->nextblock->dirty_size = 0; in jffs2_scan_medium()
250 …if (!jffs2_can_mark_obsolete(c) && c->wbuf_pagesize && c->nextblock && (c->nextblock->free_size % … in jffs2_scan_medium()
[all …]
Ddebug.c176 if (c->nextblock) { in __jffs2_dbg_superblock_counts()
178 free += c->nextblock->free_size; in __jffs2_dbg_superblock_counts()
179 dirty += c->nextblock->dirty_size; in __jffs2_dbg_superblock_counts()
180 used += c->nextblock->used_size; in __jffs2_dbg_superblock_counts()
181 wasted += c->nextblock->wasted_size; in __jffs2_dbg_superblock_counts()
182 unchecked += c->nextblock->unchecked_size; in __jffs2_dbg_superblock_counts()
483 if (c->nextblock) in __jffs2_dbg_dump_block_lists_nolock()
485 c->nextblock->offset, c->nextblock->used_size, in __jffs2_dbg_dump_block_lists_nolock()
486 c->nextblock->dirty_size, c->nextblock->wasted_size, in __jffs2_dbg_dump_block_lists_nolock()
487 c->nextblock->unchecked_size, c->nextblock->free_size); in __jffs2_dbg_dump_block_lists_nolock()
Djffs2_fs_sb.h94 struct jffs2_eraseblock *nextblock; /* The block we're currently filling */ member
Dgc.c282 D1(if (c->nextblock) in jffs2_garbage_collect_pass()
283 …free_size %08x\n", c->nextblock->offset, c->nextblock->used_size, c->nextblock->dirty_size, c->nex… in jffs2_garbage_collect_pass()
Dwbuf.c146 if (c->nextblock == jeb) in jffs2_block_refile()
147 c->nextblock = NULL; in jffs2_block_refile()
399 ret = jffs2_prealloc_raw_node_refs(c, c->nextblock, nr_refile); in jffs2_wbuf_recover()
600 if (jffs2_prealloc_raw_node_refs(c, wbuf_jeb, c->nextblock->allocated_refs + 1)) in __jffs2_flush_wbuf()
661 (wbuf_jeb == c->nextblock) ? "next" : "", in __jffs2_flush_wbuf()
Dnodelist.h206 #define write_ofs(c) ((c)->nextblock->offset + (c)->sector_size - (c)->nextblock->free_size)
Dsummary.c860 jeb = c->nextblock; in jffs2_sum_write_sumnode()