• Home
  • Raw
  • Download

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
242 jeb = c->gcblock; in jffs2_garbage_collect_pass()
244 if (!jeb) in jffs2_garbage_collect_pass()
245 jeb = jffs2_find_gc_block(c); in jffs2_garbage_collect_pass()
247 if (!jeb) { in jffs2_garbage_collect_pass()
261 jeb->offset, jeb->used_size, jeb->dirty_size, jeb->free_size); in jffs2_garbage_collect_pass()
265 if (!jeb->used_size) { in jffs2_garbage_collect_pass()
270 raw = jeb->gc_node; in jffs2_garbage_collect_pass()
271 gcblock_dirty = jeb->dirty_size; in jffs2_garbage_collect_pass()
280 jeb->offset, jeb->free_size, in jffs2_garbage_collect_pass()
281 jeb->dirty_size, jeb->used_size); in jffs2_garbage_collect_pass()
282 jeb->gc_node = raw; in jffs2_garbage_collect_pass()
288 jeb->gc_node = raw; in jffs2_garbage_collect_pass()
333 __func__, jeb->offset, ref_offset(raw), ref_flags(raw), in jffs2_garbage_collect_pass()
444 ret = jffs2_garbage_collect_live(c, jeb, raw, f); in jffs2_garbage_collect_pass()
449 if (jeb->dirty_size == gcblock_dirty && !ref_obsolete(jeb->gc_node)) { in jffs2_garbage_collect_pass()
452 ref_offset(jeb->gc_node)); in jffs2_garbage_collect_pass()
477 static int jffs2_garbage_collect_live(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, in jffs2_garbage_collect_live() argument
493 if (c->gcblock != jeb) { in jffs2_garbage_collect_live()
509 ret = jffs2_garbage_collect_metadata(c, jeb, f, fn); in jffs2_garbage_collect_live()
537 ret = jffs2_garbage_collect_hole(c, jeb, f, fn, start, end); in jffs2_garbage_collect_live()
540 ret = jffs2_garbage_collect_dnode(c, jeb, f, fn, start, end); in jffs2_garbage_collect_live()
552 ret = jffs2_garbage_collect_dirent(c, jeb, f, fd); in jffs2_garbage_collect_live()
554 ret = jffs2_garbage_collect_deletion_dirent(c, jeb, f, fd); in jffs2_garbage_collect_live()
694 struct jffs2_eraseblock *jeb = &c->blocks[phys_ofs / c->sector_size]; in jffs2_garbage_collect_pristine() local
700 jffs2_dbg_acct_sanity_check(c,jeb); in jffs2_garbage_collect_pristine()
701 jffs2_dbg_acct_paranoia_check(c, jeb); in jffs2_garbage_collect_pristine()
711 jffs2_dbg_acct_sanity_check(c,jeb); in jffs2_garbage_collect_pristine()
712 jffs2_dbg_acct_paranoia_check(c, jeb); in jffs2_garbage_collect_pristine()
738 static int jffs2_garbage_collect_metadata(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, in jffs2_garbage_collect_metadata() argument
830 static int jffs2_garbage_collect_dirent(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, in jffs2_garbage_collect_dirent() argument
875 …ic int jffs2_garbage_collect_deletion_dirent(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, in jffs2_garbage_collect_deletion_dirent() argument
893 uint32_t rawlen = ref_totlen(c, jeb, fd->raw); in jffs2_garbage_collect_deletion_dirent()
965 return jffs2_garbage_collect_dirent(c, jeb, f, fd); in jffs2_garbage_collect_deletion_dirent()
993 static int jffs2_garbage_collect_hole(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, in jffs2_garbage_collect_hole() argument
1207 struct jffs2_eraseblock *jeb; in jffs2_garbage_collect_dnode() local
1209 jeb = &c->blocks[raw->flash_offset / c->sector_size]; in jffs2_garbage_collect_dnode()
1211 if (jeb == c->gcblock) { in jffs2_garbage_collect_dnode()
1219 if (!ISDIRTY(jeb->dirty_size + jeb->wasted_size)) { in jffs2_garbage_collect_dnode()
1223 jeb->offset); in jffs2_garbage_collect_dnode()
1230 jeb->offset); in jffs2_garbage_collect_dnode()
1263 struct jffs2_eraseblock *jeb; in jffs2_garbage_collect_dnode() local
1265 jeb = &c->blocks[raw->flash_offset / c->sector_size]; in jffs2_garbage_collect_dnode()
1267 if (jeb == c->gcblock) { in jffs2_garbage_collect_dnode()
1275 if (!ISDIRTY(jeb->dirty_size + jeb->wasted_size)) { in jffs2_garbage_collect_dnode()
1279 jeb->offset); in jffs2_garbage_collect_dnode()
1286 jeb->offset); in jffs2_garbage_collect_dnode()