Lines Matching refs:available
109 * as not available);
178 * The index head is not available for the in-the-gaps method, so add an
188 * ubifs_calc_available - calculate available FS space.
192 * This function calculates and returns amount of FS space available for use.
197 long long available;
199 available = c->main_bytes - c->lst.total_used;
202 * Now 'available' contains theoretically available flash space
220 available -= (long long)subtract_lebs * c->leb_size;
222 /* Subtract the dead space which is not available for use */
223 available -= c->lst.total_dead;
231 available -= c->lst.total_dark;
235 * @min_idx_lebs. Those extra LEBs are assumed to be available, but
241 available -= subtract_lebs * c->dark_wm;
245 return available > 0 ? available : 0;
292 long long outstanding, available;
305 * The number of LEBs that are available to be used by the index is:
310 * @c->lst.empty_lebs are available because they are empty.
311 * @c->freeable_cnt are available because they contain only free and
312 * dirty space, @c->idx_gc_cnt are available because they are index
334 available = ubifs_calc_available(c, min_idx_lebs);
337 if (unlikely(available < outstanding)) {
338 dbg_budg("out of data space: available %lld, outstanding %lld",
339 available, outstanding);
343 if (available - outstanding <= c->rp_size && !can_use_rp(c))
608 * (e.g., via the 'statfs()' call) reports that it has N bytes available, they
665 long long available, outstanding, free;
669 available = ubifs_calc_available(c, c->bi.min_idx_lebs);
677 * Thus, amend the available space.
689 available += lebs * (c->dark_wm - c->leb_overhead);
691 if (available > outstanding)
692 free = ubifs_reported_space(c, available - outstanding);