/* This function releases budget corresponding to a dirty inode. It is usually called when after the inode has been written to the media and marked as clean. It also causes the "no space" flags to be cleared.  */
void ubifs_release_dirty_inode_budget(struct ubifs_info *c, struct ubifs_inode *ui)
/* This function releases budget corresponding to a dirty inode. It is usually called when after the inode has been written to the media and marked as clean. It also causes the "no space" flags to be cleared.  */
void ubifs_release_dirty_inode_budget(struct ubifs_info *c, struct ubifs_inode *ui)
{
	struct ubifs_budget_req req;
	memset(&req, 0, sizeof(struct ubifs_budget_req));
	req.dd_growth = c->inode_budget + ALIGN(ui->data_len, 8);
	ubifs_release_budget(c, &req);
}