Lines Matching refs:jeb
28 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 …ic 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 = jffs2_find_gc_block(c); in jffs2_garbage_collect_pass()
267 if (!jeb) { in jffs2_garbage_collect_pass()
281 jeb->offset, jeb->used_size, jeb->dirty_size, jeb->free_size); in jffs2_garbage_collect_pass()
285 if (!jeb->used_size) { in jffs2_garbage_collect_pass()
290 raw = jeb->gc_node; in jffs2_garbage_collect_pass()
291 gcblock_dirty = jeb->dirty_size; in jffs2_garbage_collect_pass()
300 jeb->offset, jeb->free_size, in jffs2_garbage_collect_pass()
301 jeb->dirty_size, jeb->used_size); in jffs2_garbage_collect_pass()
302 jeb->gc_node = raw; in jffs2_garbage_collect_pass()
308 jeb->gc_node = raw; in jffs2_garbage_collect_pass()
353 __func__, jeb->offset, ref_offset(raw), ref_flags(raw), in jffs2_garbage_collect_pass()
464 ret = jffs2_garbage_collect_live(c, jeb, raw, f); in jffs2_garbage_collect_pass()
469 if (jeb->dirty_size == gcblock_dirty && !ref_obsolete(jeb->gc_node)) { in jffs2_garbage_collect_pass()
472 ref_offset(jeb->gc_node)); in jffs2_garbage_collect_pass()
497 static int jffs2_garbage_collect_live(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, in jffs2_garbage_collect_live() argument
513 if (c->gcblock != jeb) { in jffs2_garbage_collect_live()
529 ret = jffs2_garbage_collect_metadata(c, jeb, f, fn); in jffs2_garbage_collect_live()
557 ret = jffs2_garbage_collect_hole(c, jeb, f, fn, start, end); in jffs2_garbage_collect_live()
560 ret = jffs2_garbage_collect_dnode(c, jeb, f, fn, start, end); in jffs2_garbage_collect_live()
572 ret = jffs2_garbage_collect_dirent(c, jeb, f, fd); in jffs2_garbage_collect_live()
574 ret = jffs2_garbage_collect_deletion_dirent(c, jeb, f, fd); in jffs2_garbage_collect_live()
714 struct jffs2_eraseblock *jeb = &c->blocks[phys_ofs / c->sector_size]; in jffs2_garbage_collect_pristine() local
720 jffs2_dbg_acct_sanity_check(c,jeb); in jffs2_garbage_collect_pristine()
721 jffs2_dbg_acct_paranoia_check(c, jeb); in jffs2_garbage_collect_pristine()
731 jffs2_dbg_acct_sanity_check(c,jeb); in jffs2_garbage_collect_pristine()
732 jffs2_dbg_acct_paranoia_check(c, jeb); in jffs2_garbage_collect_pristine()
758 static int jffs2_garbage_collect_metadata(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, in jffs2_garbage_collect_metadata() argument
850 static int jffs2_garbage_collect_dirent(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, in jffs2_garbage_collect_dirent() argument
895 …ic int jffs2_garbage_collect_deletion_dirent(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, in jffs2_garbage_collect_deletion_dirent() argument
913 uint32_t rawlen = ref_totlen(c, jeb, fd->raw); in jffs2_garbage_collect_deletion_dirent()
985 return jffs2_garbage_collect_dirent(c, jeb, f, fd); in jffs2_garbage_collect_deletion_dirent()
1013 static int jffs2_garbage_collect_hole(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, in jffs2_garbage_collect_hole() argument
1228 struct jffs2_eraseblock *jeb; in jffs2_garbage_collect_dnode() local
1230 jeb = &c->blocks[raw->flash_offset / c->sector_size]; in jffs2_garbage_collect_dnode()
1232 if (jeb == c->gcblock) { in jffs2_garbage_collect_dnode()
1240 if (!ISDIRTY(jeb->dirty_size + jeb->wasted_size)) { in jffs2_garbage_collect_dnode()
1244 jeb->offset); in jffs2_garbage_collect_dnode()
1251 jeb->offset); in jffs2_garbage_collect_dnode()
1284 struct jffs2_eraseblock *jeb; in jffs2_garbage_collect_dnode() local
1286 jeb = &c->blocks[raw->flash_offset / c->sector_size]; in jffs2_garbage_collect_dnode()
1288 if (jeb == c->gcblock) { in jffs2_garbage_collect_dnode()
1296 if (!ISDIRTY(jeb->dirty_size + jeb->wasted_size)) { in jffs2_garbage_collect_dnode()
1300 jeb->offset); in jffs2_garbage_collect_dnode()
1307 jeb->offset); in jffs2_garbage_collect_dnode()