Lines Matching full:spc
458 * @spc: amount of free and dirty space in the LEB
461 * has @spc bytes of free and dirty space.
467 int ubifs_calc_dark(const struct ubifs_info *c, int spc) in ubifs_calc_dark() argument
469 ubifs_assert(c, !(spc & 7)); in ubifs_calc_dark()
471 if (spc < c->dark_wm) in ubifs_calc_dark()
472 return spc; in ubifs_calc_dark()
479 if (spc - c->dark_wm < MIN_WRITE_SZ) in ubifs_calc_dark()
480 return spc - MIN_WRITE_SZ; in ubifs_calc_dark()
1218 int spc = free + dirty; in scan_check_cb() local
1220 if (spc < c->dead_wm) 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()