Home
last modified time | relevance | path

Searched refs:free_size (Results 1 – 12 of 12) sorted by relevance

/fs/jffs2/
Ddebug.c32 jeb->free_size + jeb->wasted_size + in __jffs2_dbg_acct_sanity_check_nolock()
36 jeb->free_size, jeb->dirty_size, jeb->used_size, in __jffs2_dbg_acct_sanity_check_nolock()
41 if (unlikely(c->used_size + c->dirty_size + c->free_size + c->erasing_size + c->bad_size in __jffs2_dbg_acct_sanity_check_nolock()
45 c->free_size, c->dirty_size, c->used_size, c->erasing_size, c->bad_size, in __jffs2_dbg_acct_sanity_check_nolock()
170 free += c->gcblock->free_size; in __jffs2_dbg_superblock_counts()
178 free += c->nextblock->free_size; in __jffs2_dbg_superblock_counts()
186 free += jeb->free_size; in __jffs2_dbg_superblock_counts()
194 free += jeb->free_size; in __jffs2_dbg_superblock_counts()
202 free += jeb->free_size; in __jffs2_dbg_superblock_counts()
210 free += jeb->free_size; in __jffs2_dbg_superblock_counts()
[all …]
Dnodemgmt.c29 avail = c->dirty_size + c->free_size + c->unchecked_size + in jffs2_rp_can_write()
37 opts->rp_size, c->dirty_size, c->free_size, in jffs2_rp_can_write()
140 avail = c->free_size + c->dirty_size + c->erasing_size + c->unchecked_size; in jffs2_reserve_space()
159 c->free_size, c->dirty_size, c->wasted_size, in jffs2_reserve_space()
161 c->free_size + c->dirty_size + in jffs2_reserve_space()
259 jeb->offset, jeb->free_size, jeb->dirty_size, in jffs2_close_nextblock()
264 jeb->offset, jeb->free_size, jeb->dirty_size, in jffs2_close_nextblock()
270 jeb->offset, jeb->free_size, jeb->dirty_size, in jffs2_close_nextblock()
371 minsize, jeb->free_size, in jffs2_do_reserve_space()
378 JFFS2_SUMMARY_FRAME_SIZE) > jeb->free_size)) { in jffs2_do_reserve_space()
[all …]
Dsummary.c376 if ((ofs & ~3) > c->sector_size - jeb->free_size) { in sum_link_node_ref()
378 jffs2_scan_dirty_space(c, jeb, (ofs & ~3) - (c->sector_size - jeb->free_size)); in sum_link_node_ref()
557 c->free_size += c->sector_size - jeb->free_size; in jffs2_sum_process_sum_data()
561 jeb->free_size = c->sector_size; in jffs2_sum_process_sum_data()
655 if (unlikely(jeb->free_size)) { in jffs2_sum_scan_sumnode()
657 jeb->free_size, jeb->offset); in jffs2_sum_scan_sumnode()
658 jeb->wasted_size += jeb->free_size; in jffs2_sum_scan_sumnode()
659 c->wasted_size += jeb->free_size; in jffs2_sum_scan_sumnode()
660 c->free_size -= jeb->free_size; in jffs2_sum_scan_sumnode()
661 jeb->free_size = 0; in jffs2_sum_scan_sumnode()
[all …]
Dnodelist.c615 } else if (unlikely(ref_offset(ref) != jeb->offset + c->sector_size - jeb->free_size)) { in jffs2_link_node_ref()
650 c->free_size -= len; in jffs2_link_node_ref()
651 jeb->free_size -= len; in jffs2_link_node_ref()
667 if (unlikely(size > jeb->free_size)) { in jffs2_scan_dirty_space()
669 size, jeb->free_size, jeb->wasted_size); in jffs2_scan_dirty_space()
678 c->free_size -= size; in jffs2_scan_dirty_space()
680 jeb->free_size -= size; in jffs2_scan_dirty_space()
682 uint32_t ofs = jeb->offset + c->sector_size - jeb->free_size; in jffs2_scan_dirty_space()
713 ref_end = jeb->offset + c->sector_size - jeb->free_size; in __ref_totlen()
743 jeb->free_size); in __jffs2_ref_totlen()
Derase.c144 c->free_size -= jeb->free_size; in jffs2_erase_pending_blocks()
147 jeb->wasted_size = jeb->used_size = jeb->dirty_size = jeb->free_size = 0; in jffs2_erase_pending_blocks()
478 jeb->free_size = c->sector_size; in jffs2_mark_erased_block()
484 c->free_size += c->sector_size; in jffs2_mark_erased_block()
Dscan.c75 if ((ret = jffs2_scan_dirty_space(c, jeb, jeb->free_size))) in file_dirty()
198 if (jeb->free_size > min_free(c) && in jffs2_scan_medium()
199 (!c->nextblock || c->nextblock->free_size < jeb->free_size)) { in jffs2_scan_medium()
233 c->free_size -= c->sector_size; in jffs2_scan_medium()
250 …if (!jffs2_can_mark_obsolete(c) && c->wbuf_pagesize && c->nextblock && (c->nextblock->free_size % … in jffs2_scan_medium()
255 uint32_t skip = c->nextblock->free_size % c->wbuf_pagesize; in jffs2_scan_medium()
937 if (PAD(s->sum_size + JFFS2_SUMMARY_FRAME_SIZE) > jeb->free_size) { in jffs2_scan_eraseblock()
945 jeb->offset, jeb->free_size, jeb->dirty_size, in jffs2_scan_eraseblock()
Dbuild.c375 c->free_size = c->flash_size; in jffs2_do_mount_fs()
390 c->blocks[i].free_size = c->sector_size; in jffs2_do_mount_fs()
Djffs2_fs_sb.h70 uint32_t free_size; member
Dnodelist.h206 #define write_ofs(c) ((c)->nextblock->offset + (c)->sector_size - (c)->nextblock->free_size)
287 uint32_t free_size; /* Note that sector_size - free_size member
Dwbuf.c165 uint32_t oldfree = jeb->free_size; in jffs2_block_refile()
667 if (wbuf_jeb->free_size < waste) { in __jffs2_flush_wbuf()
671 wbuf_jeb->offset, wbuf_jeb->free_size); in __jffs2_flush_wbuf()
Dgc.c261 jeb->offset, jeb->used_size, jeb->dirty_size, jeb->free_size); in jffs2_garbage_collect_pass()
263 …xtblock->used_size, c->nextblock->dirty_size, c->nextblock->wasted_size, c->nextblock->free_size)); in jffs2_garbage_collect_pass()
280 jeb->offset, jeb->free_size, in jffs2_garbage_collect_pass()
Dfs.c222 avail = c->dirty_size + c->free_size; in jffs2_statfs()