Lines Matching refs:lst
542 ubifs_assert(c->lst.empty_lebs >= 0 && in ubifs_change_lp()
543 c->lst.empty_lebs <= c->main_lebs); in ubifs_change_lp()
546 ubifs_assert(c->lst.taken_empty_lebs >= 0); in ubifs_change_lp()
547 ubifs_assert(c->lst.taken_empty_lebs <= c->lst.empty_lebs); in ubifs_change_lp()
548 ubifs_assert(!(c->lst.total_free & 7) && !(c->lst.total_dirty & 7)); in ubifs_change_lp()
549 ubifs_assert(!(c->lst.total_dead & 7) && !(c->lst.total_dark & 7)); in ubifs_change_lp()
550 ubifs_assert(!(c->lst.total_used & 7)); in ubifs_change_lp()
565 c->lst.taken_empty_lebs -= 1; in ubifs_change_lp()
572 c->lst.total_dead -= old_spc; in ubifs_change_lp()
574 c->lst.total_dark -= ubifs_calc_dark(c, old_spc); in ubifs_change_lp()
576 c->lst.total_used -= c->leb_size - old_spc; in ubifs_change_lp()
581 c->lst.total_free += free - lprops->free; in ubifs_change_lp()
586 c->lst.empty_lebs += 1; in ubifs_change_lp()
588 c->lst.empty_lebs -= 1; in ubifs_change_lp()
594 c->lst.total_dirty += dirty - lprops->dirty; in ubifs_change_lp()
602 c->lst.idx_lebs -= 1; in ubifs_change_lp()
604 c->lst.idx_lebs += 1; in ubifs_change_lp()
613 c->lst.total_dead += new_spc; in ubifs_change_lp()
615 c->lst.total_dark += ubifs_calc_dark(c, new_spc); in ubifs_change_lp()
617 c->lst.total_used += c->leb_size - new_spc; in ubifs_change_lp()
621 c->lst.taken_empty_lebs += 1; in ubifs_change_lp()
634 void ubifs_get_lp_stats(struct ubifs_info *c, struct ubifs_lp_stats *lst) in ubifs_get_lp_stats() argument
637 memcpy(lst, &c->lst, sizeof(struct ubifs_lp_stats)); in ubifs_get_lp_stats()
1024 struct ubifs_lp_stats *lst) in scan_check_cb() argument
1096 lst->empty_lebs += 1; in scan_check_cb()
1097 lst->total_free += c->leb_size; in scan_check_cb()
1098 lst->total_dark += ubifs_calc_dark(c, c->leb_size); in scan_check_cb()
1103 lst->total_free += lp->free; in scan_check_cb()
1104 lst->total_dirty += lp->dirty; in scan_check_cb()
1105 lst->total_dark += ubifs_calc_dark(c, c->leb_size); in scan_check_cb()
1213 lst->empty_lebs += 1; in scan_check_cb()
1216 lst->idx_lebs += 1; in scan_check_cb()
1219 lst->total_used += c->leb_size - free - dirty; in scan_check_cb()
1220 lst->total_free += free; in scan_check_cb()
1221 lst->total_dirty += dirty; in scan_check_cb()
1227 lst->total_dead += spc; in scan_check_cb()
1229 lst->total_dark += ubifs_calc_dark(c, spc); in scan_check_cb()
1262 struct ubifs_lp_stats lst; in dbg_check_lprops() local
1277 memset(&lst, 0, sizeof(struct ubifs_lp_stats)); in dbg_check_lprops()
1280 &lst); in dbg_check_lprops()
1284 if (lst.empty_lebs != c->lst.empty_lebs || in dbg_check_lprops()
1285 lst.idx_lebs != c->lst.idx_lebs || in dbg_check_lprops()
1286 lst.total_free != c->lst.total_free || in dbg_check_lprops()
1287 lst.total_dirty != c->lst.total_dirty || in dbg_check_lprops()
1288 lst.total_used != c->lst.total_used) { in dbg_check_lprops()
1291 lst.empty_lebs, lst.idx_lebs, lst.total_free, in dbg_check_lprops()
1292 lst.total_dirty, lst.total_used); in dbg_check_lprops()
1294 c->lst.empty_lebs, c->lst.idx_lebs, c->lst.total_free, in dbg_check_lprops()
1295 c->lst.total_dirty, c->lst.total_used); in dbg_check_lprops()
1300 if (lst.total_dead != c->lst.total_dead || in dbg_check_lprops()
1301 lst.total_dark != c->lst.total_dark) { in dbg_check_lprops()
1304 lst.total_dead, lst.total_dark); in dbg_check_lprops()
1306 c->lst.total_dead, c->lst.total_dark); in dbg_check_lprops()