Home
last modified time | relevance | path

Searched refs:spc (Results 1 – 3 of 3) sorted by relevance

/fs/ubifs/
Dlprops.c481 int ubifs_calc_dark(const struct ubifs_info *c, int spc) in ubifs_calc_dark() argument
483 ubifs_assert(!(spc & 7)); in ubifs_calc_dark()
485 if (spc < c->dark_wm) in ubifs_calc_dark()
486 return spc; in ubifs_calc_dark()
493 if (spc - c->dark_wm < MIN_WRITE_SZ) in ubifs_calc_dark()
494 return spc - MIN_WRITE_SZ; in ubifs_calc_dark()
1230 int spc = free + dirty; in scan_check_cb() local
1232 if (spc < c->dead_wm) in scan_check_cb()
1233 lst->total_dead += spc; in scan_check_cb()
1235 lst->total_dark += ubifs_calc_dark(c, spc); in scan_check_cb()
Ddebug.c712 int i, spc, dark = 0, dead = 0; in dbg_dump_lprop() local
716 spc = lp->free + lp->dirty; in dbg_dump_lprop()
717 if (spc < c->dead_wm) in dbg_dump_lprop()
718 dead = spc; in dbg_dump_lprop()
720 dark = ubifs_calc_dark(c, spc); in dbg_dump_lprop()
725 lp->dirty, c->leb_size - spc, spc, lp->flags); in dbg_dump_lprop()
730 c->leb_size - spc, spc, dark, dead, in dbg_dump_lprop()
731 (int)(spc / UBIFS_MAX_NODE_SZ), lp->flags); in dbg_dump_lprop()
Dubifs.h1729 int ubifs_calc_dark(const struct ubifs_info *c, int spc);