/* calc_data_growth - calculate approximate amount of new data from budgeting request.  */
static int calc_data_growth(const struct ubifs_info *c, const struct ubifs_budget_req *req)
/* calc_data_growth - calculate approximate amount of new data from budgeting request.  */
static int calc_data_growth(const struct ubifs_info *c, const struct ubifs_budget_req *req)
{
	int data_growth;
	data_growth = req->new_ino  ? c->inode_budget : 0;
	if (req->new_page)
		data_growth += c->page_budget;
	if (req->new_dent)
		data_growth += c->dent_budget;
	data_growth += req->new_ino_d;
	return data_growth;
}