• Home
  • Raw
  • Download

Lines Matching refs:free

42 		return lprops->free;  in get_heap_comp_val()
44 return lprops->free + lprops->dirty; in get_heap_comp_val()
416 if (lprops->free == c->leb_size) { in ubifs_categorize_lprops()
421 if (lprops->free + lprops->dirty == c->leb_size) { in ubifs_categorize_lprops()
429 if (lprops->dirty + lprops->free >= c->min_idx_node_sz) in ubifs_categorize_lprops()
433 lprops->dirty > lprops->free) in ubifs_categorize_lprops()
435 if (lprops->free > 0) in ubifs_categorize_lprops()
536 int free, int dirty, int flags, in ubifs_change_lp() argument
546 lprops->lnum, free, dirty, flags); in ubifs_change_lp()
558 ubifs_assert(free == LPROPS_NC || free >= 0); in ubifs_change_lp()
568 ubifs_assert(!(lprops->free & 7) && !(lprops->dirty & 7)); in ubifs_change_lp()
571 if ((lprops->flags & LPROPS_TAKEN) && lprops->free == c->leb_size) in ubifs_change_lp()
577 old_spc = lprops->free + lprops->dirty; in ubifs_change_lp()
586 if (free != LPROPS_NC) { in ubifs_change_lp()
587 free = ALIGN(free, 8); in ubifs_change_lp()
588 c->lst.total_free += free - lprops->free; in ubifs_change_lp()
591 if (free == c->leb_size) { in ubifs_change_lp()
592 if (lprops->free != c->leb_size) in ubifs_change_lp()
594 } else if (lprops->free == c->leb_size) in ubifs_change_lp()
596 lprops->free = free; in ubifs_change_lp()
618 new_spc = lprops->free + lprops->dirty; in ubifs_change_lp()
627 if ((lprops->flags & LPROPS_TAKEN) && lprops->free == c->leb_size) in ubifs_change_lp()
663 int ubifs_change_one_lp(struct ubifs_info *c, int lnum, int free, int dirty, in ubifs_change_one_lp() argument
678 lp = ubifs_change_lp(c, lp, free, dirty, flags, idx_gc_cnt); in ubifs_change_one_lp()
702 int ubifs_update_one_lp(struct ubifs_info *c, int lnum, int free, int dirty, in ubifs_update_one_lp() argument
717 lp = ubifs_change_lp(c, lp, free, lp->dirty + dirty, flags, 0); in ubifs_update_one_lp()
804 ubifs_assert(lprops->free == c->leb_size); in ubifs_fast_find_empty()
827 ubifs_assert(lprops->free + lprops->dirty == c->leb_size); in ubifs_fast_find_freeable()
851 ubifs_assert(lprops->free + lprops->dirty == c->leb_size); in ubifs_fast_find_frdi_idx()
875 if (lprops->free != c->leb_size) { in dbg_check_cats()
877 lprops->lnum, lprops->free, lprops->dirty, in dbg_check_cats()
883 lprops->lnum, lprops->free, lprops->dirty, in dbg_check_cats()
891 if (lprops->free + lprops->dirty != c->leb_size) { in dbg_check_cats()
893 lprops->lnum, lprops->free, lprops->dirty, in dbg_check_cats()
899 lprops->lnum, lprops->free, lprops->dirty, in dbg_check_cats()
921 if (lprops->free + lprops->dirty != c->leb_size) { in dbg_check_cats()
923 lprops->lnum, lprops->free, lprops->dirty, in dbg_check_cats()
929 lprops->lnum, lprops->free, lprops->dirty, in dbg_check_cats()
935 lprops->lnum, lprops->free, lprops->dirty, in dbg_check_cats()
1035 int cat, lnum = lp->lnum, is_idx = 0, used = 0, free, dirty, ret; in scan_check_cb() local
1098 if (lp->free == c->leb_size) { in scan_check_cb()
1104 if (lp->free + lp->dirty == c->leb_size && in scan_check_cb()
1106 lst->total_free += lp->free; in scan_check_cb()
1157 free = c->leb_size - sleb->endpt; in scan_check_cb()
1160 if (free > c->leb_size || free < 0 || dirty > c->leb_size || in scan_check_cb()
1163 lnum, free, dirty); in scan_check_cb()
1167 if (lp->free + lp->dirty == c->leb_size && in scan_check_cb()
1168 free + dirty == c->leb_size) in scan_check_cb()
1170 (!is_idx && free == c->leb_size) || in scan_check_cb()
1171 lp->free == c->leb_size) { in scan_check_cb()
1179 free = lp->free; in scan_check_cb()
1184 if (is_idx && lp->free + lp->dirty == free + dirty && in scan_check_cb()
1197 free = lp->free; in scan_check_cb()
1201 if (lp->free != free || lp->dirty != dirty) in scan_check_cb()
1205 if (free == c->leb_size) in scan_check_cb()
1219 if (free == c->leb_size) in scan_check_cb()
1226 lst->total_used += c->leb_size - free - dirty; in scan_check_cb()
1227 lst->total_free += free; in scan_check_cb()
1231 int spc = free + dirty; in scan_check_cb()
1245 lnum, lp->free, lp->dirty, lp->flags, free, dirty); in scan_check_cb()