Home | History | Annotate | Download | only in ubifs

Lines Matching refs:lst

540 	ubifs_assert(c->lst.empty_lebs >= 0 &&
541 c->lst.empty_lebs <= c->main_lebs);
544 ubifs_assert(c->lst.taken_empty_lebs >= 0);
545 ubifs_assert(c->lst.taken_empty_lebs <= c->lst.empty_lebs);
546 ubifs_assert(!(c->lst.total_free & 7) && !(c->lst.total_dirty & 7));
547 ubifs_assert(!(c->lst.total_dead & 7) && !(c->lst.total_dark & 7));
548 ubifs_assert(!(c->lst.total_used & 7));
563 c->lst.taken_empty_lebs -= 1;
570 c->lst.total_dead -= old_spc;
572 c->lst.total_dark -= ubifs_calc_dark(c, old_spc);
574 c->lst.total_used -= c->leb_size - old_spc;
579 c->lst.total_free += free - lprops->free;
584 c->lst.empty_lebs += 1;
586 c->lst.empty_lebs -= 1;
592 c->lst.total_dirty += dirty - lprops->dirty;
600 c->lst.idx_lebs -= 1;
602 c->lst.idx_lebs += 1;
611 c->lst.total_dead += new_spc;
613 c->lst.total_dark += ubifs_calc_dark(c, new_spc);
615 c->lst.total_used += c->leb_size - new_spc;
619 c->lst.taken_empty_lebs += 1;
632 void ubifs_get_lp_stats(struct ubifs_info *c, struct ubifs_lp_stats *lst)
635 memcpy(lst, &c->lst, sizeof(struct ubifs_lp_stats));
1013 * @lst: lprops statistics to update
1022 struct ubifs_lp_stats *lst)
1094 lst->empty_lebs += 1;
1095 lst->total_free += c->leb_size;
1096 lst->total_dark += ubifs_calc_dark(c, c->leb_size);
1101 lst->total_free += lp->free;
1102 lst->total_dirty += lp->dirty;
1103 lst->total_dark += ubifs_calc_dark(c, c->leb_size);
1211 lst->empty_lebs += 1;
1214 lst->idx_lebs += 1;
1217 lst->total_used += c->leb_size - free - dirty;
1218 lst->total_free += free;
1219 lst->total_dirty += dirty;
1225 lst->total_dead += spc;
1227 lst->total_dark += ubifs_calc_dark(c, spc);
1260 struct ubifs_lp_stats lst;
1275 memset(&lst, 0, sizeof(struct ubifs_lp_stats));
1278 &lst);
1282 if (lst.empty_lebs != c->lst.empty_lebs ||
1283 lst.idx_lebs != c->lst.idx_lebs ||
1284 lst.total_free != c->lst.total_free ||
1285 lst.total_dirty != c->lst.total_dirty ||
1286 lst.total_used != c->lst.total_used) {
1289 lst.empty_lebs, lst.idx_lebs, lst.total_free,
1290 lst.total_dirty, lst.total_used);
1292 c->lst.empty_lebs, c->lst.idx_lebs, c->lst.total_free,
1293 c->lst.total_dirty, c->lst.total_used);
1298 if (lst.total_dead != c->lst.total_dead ||
1299 lst.total_dark != c->lst.total_dark) {
1302 lst.total_dead, lst.total_dark);
1304 c->lst.total_dead, c->lst.total_dark);