Lines Matching refs:data_growth
97 liab = c->bi.idx_growth + c->bi.data_growth + c->bi.dd_growth; in get_liability()
339 outstanding = c->bi.data_growth + c->bi.dd_growth; in do_budget_space()
381 int data_growth; in calc_data_growth() local
383 data_growth = req->new_ino ? c->bi.inode_budget : 0; in calc_data_growth()
385 data_growth += c->bi.page_budget; in calc_data_growth()
387 data_growth += c->bi.dent_budget; in calc_data_growth()
388 data_growth += req->new_ino_d; in calc_data_growth()
389 return data_growth; in calc_data_growth()
428 int err, idx_growth, data_growth, dd_growth, retried = 0; in ubifs_budget_space() local
441 data_growth = calc_data_growth(c, req); in ubifs_budget_space()
443 if (!data_growth && !dd_growth) in ubifs_budget_space()
450 ubifs_assert(c, c->bi.data_growth >= 0); in ubifs_budget_space()
460 c->bi.data_growth += data_growth; in ubifs_budget_space()
466 req->data_growth = data_growth; in ubifs_budget_space()
474 c->bi.data_growth -= data_growth; in ubifs_budget_space()
529 ubifs_assert(c, req->data_growth >= 0); in ubifs_release_budget()
534 req->data_growth = calc_data_growth(c, req); in ubifs_release_budget()
539 if (!req->data_growth && !req->dd_growth) in ubifs_release_budget()
548 c->bi.data_growth -= req->data_growth; in ubifs_release_budget()
553 ubifs_assert(c, c->bi.data_growth >= 0); in ubifs_release_budget()
557 ubifs_assert(c, !(c->bi.data_growth & 7)); in ubifs_release_budget()
577 c->bi.data_growth -= c->bi.page_budget; in ubifs_convert_page_budget()
672 outstanding = c->bi.data_growth + c->bi.dd_growth; in ubifs_get_free_space_nolock()