Lines Matching refs:dd_growth

94 	liab = c->bi.idx_growth + c->bi.data_growth + c->bi.dd_growth;  in get_liability()
335 outstanding = c->bi.data_growth + c->bi.dd_growth; in do_budget_space()
397 int dd_growth; in calc_dd_growth() local
399 dd_growth = req->dirtied_page ? c->bi.page_budget : 0; in calc_dd_growth()
402 dd_growth += c->bi.inode_budget * req->dirtied_ino; in calc_dd_growth()
404 dd_growth += c->bi.dent_budget; in calc_dd_growth()
405 dd_growth += req->dirtied_ino_d; in calc_dd_growth()
406 return dd_growth; in calc_dd_growth()
424 int err, idx_growth, data_growth, dd_growth, retried = 0; in ubifs_budget_space() local
438 dd_growth = calc_dd_growth(c, req); in ubifs_budget_space()
439 if (!data_growth && !dd_growth) in ubifs_budget_space()
447 ubifs_assert(c, c->bi.dd_growth >= 0); in ubifs_budget_space()
457 c->bi.dd_growth += dd_growth; in ubifs_budget_space()
463 req->dd_growth = dd_growth; in ubifs_budget_space()
471 c->bi.dd_growth -= dd_growth; in ubifs_budget_space()
526 ubifs_assert(c, req->dd_growth >= 0); in ubifs_release_budget()
531 req->dd_growth = calc_dd_growth(c, req); in ubifs_release_budget()
535 if (!req->data_growth && !req->dd_growth) in ubifs_release_budget()
545 c->bi.dd_growth -= req->dd_growth; in ubifs_release_budget()
550 ubifs_assert(c, c->bi.dd_growth >= 0); in ubifs_release_budget()
554 ubifs_assert(c, !(c->bi.dd_growth & 7)); in ubifs_release_budget()
575 c->bi.dd_growth += c->bi.page_budget; in ubifs_convert_page_budget()
597 req.dd_growth = c->bi.inode_budget + ALIGN(ui->data_len, 8); in ubifs_release_dirty_inode_budget()
668 outstanding = c->bi.data_growth + c->bi.dd_growth; in ubifs_get_free_space_nolock()