Lines Matching refs:lst

535 	ubifs_assert(c, c->lst.empty_lebs >= 0 &&  in ubifs_change_lp()
536 c->lst.empty_lebs <= c->main_lebs); in ubifs_change_lp()
539 ubifs_assert(c, c->lst.taken_empty_lebs >= 0); in ubifs_change_lp()
540 ubifs_assert(c, c->lst.taken_empty_lebs <= c->lst.empty_lebs); in ubifs_change_lp()
541 ubifs_assert(c, !(c->lst.total_free & 7) && !(c->lst.total_dirty & 7)); in ubifs_change_lp()
542 ubifs_assert(c, !(c->lst.total_dead & 7) && !(c->lst.total_dark & 7)); in ubifs_change_lp()
543 ubifs_assert(c, !(c->lst.total_used & 7)); in ubifs_change_lp()
558 c->lst.taken_empty_lebs -= 1; in ubifs_change_lp()
565 c->lst.total_dead -= old_spc; in ubifs_change_lp()
567 c->lst.total_dark -= ubifs_calc_dark(c, old_spc); in ubifs_change_lp()
569 c->lst.total_used -= c->leb_size - old_spc; in ubifs_change_lp()
574 c->lst.total_free += free - lprops->free; in ubifs_change_lp()
579 c->lst.empty_lebs += 1; in ubifs_change_lp()
581 c->lst.empty_lebs -= 1; in ubifs_change_lp()
587 c->lst.total_dirty += dirty - lprops->dirty; in ubifs_change_lp()
595 c->lst.idx_lebs -= 1; in ubifs_change_lp()
597 c->lst.idx_lebs += 1; in ubifs_change_lp()
606 c->lst.total_dead += new_spc; in ubifs_change_lp()
608 c->lst.total_dark += ubifs_calc_dark(c, new_spc); in ubifs_change_lp()
610 c->lst.total_used += c->leb_size - new_spc; in ubifs_change_lp()
614 c->lst.taken_empty_lebs += 1; in ubifs_change_lp()
627 void ubifs_get_lp_stats(struct ubifs_info *c, struct ubifs_lp_stats *lst) in ubifs_get_lp_stats() argument
630 memcpy(lst, &c->lst, sizeof(struct ubifs_lp_stats)); in ubifs_get_lp_stats()
1019 struct ubifs_lp_stats *lst = arg; in scan_check_cb() local
1086 lst->empty_lebs += 1; in scan_check_cb()
1087 lst->total_free += c->leb_size; in scan_check_cb()
1088 lst->total_dark += ubifs_calc_dark(c, c->leb_size); in scan_check_cb()
1093 lst->total_free += lp->free; in scan_check_cb()
1094 lst->total_dirty += lp->dirty; in scan_check_cb()
1095 lst->total_dark += ubifs_calc_dark(c, c->leb_size); in scan_check_cb()
1207 lst->empty_lebs += 1; in scan_check_cb()
1210 lst->idx_lebs += 1; in scan_check_cb()
1213 lst->total_used += c->leb_size - free - dirty; in scan_check_cb()
1214 lst->total_free += free; in scan_check_cb()
1215 lst->total_dirty += dirty; in scan_check_cb()
1221 lst->total_dead += spc; in scan_check_cb()
1223 lst->total_dark += ubifs_calc_dark(c, spc); in scan_check_cb()
1256 struct ubifs_lp_stats lst; in dbg_check_lprops() local
1271 memset(&lst, 0, sizeof(struct ubifs_lp_stats)); in dbg_check_lprops()
1273 scan_check_cb, &lst); in dbg_check_lprops()
1277 if (lst.empty_lebs != c->lst.empty_lebs || in dbg_check_lprops()
1278 lst.idx_lebs != c->lst.idx_lebs || in dbg_check_lprops()
1279 lst.total_free != c->lst.total_free || in dbg_check_lprops()
1280 lst.total_dirty != c->lst.total_dirty || in dbg_check_lprops()
1281 lst.total_used != c->lst.total_used) { in dbg_check_lprops()
1284 lst.empty_lebs, lst.idx_lebs, lst.total_free, in dbg_check_lprops()
1285 lst.total_dirty, lst.total_used); in dbg_check_lprops()
1287 c->lst.empty_lebs, c->lst.idx_lebs, c->lst.total_free, in dbg_check_lprops()
1288 c->lst.total_dirty, c->lst.total_used); in dbg_check_lprops()
1293 if (lst.total_dead != c->lst.total_dead || in dbg_check_lprops()
1294 lst.total_dark != c->lst.total_dark) { in dbg_check_lprops()
1297 lst.total_dead, lst.total_dark); in dbg_check_lprops()
1299 c->lst.total_dead, c->lst.total_dark); in dbg_check_lprops()