Lines Matching refs:spc
465 * @spc: amount of free and dirty space in the LEB
468 * has @spc bytes of free and dirty space.
474 int ubifs_calc_dark(const struct ubifs_info *c, int spc)
476 ubifs_assert(!(spc & 7));
478 if (spc < c->dark_wm)
479 return spc;
486 if (spc - c->dark_wm < MIN_WRITE_SZ)
487 return spc - MIN_WRITE_SZ;
1224 int spc = free + dirty;
1226 if (spc < c->dead_wm)
1227 lst->total_dead += spc;
1229 lst->total_dark += ubifs_calc_dark(c, spc);