/* This function is the same as 'ubifs_change_one_lp()' but @dirty is added to current dirty space, not substitutes it.  */
int ubifs_update_one_lp(struct ubifs_info *c, int lnum, int free, int dirty, int flags_set, int flags_clean)
/* This function is the same as 'ubifs_change_one_lp()' but @dirty is added to current dirty space, not substitutes it.  */
int ubifs_update_one_lp(struct ubifs_info *c, int lnum, int free, int dirty, int flags_set, int flags_clean)
{
	int err = 0, flags;
	const struct ubifs_lprops *lp;
	ubifs_get_lprops(c);
	lp = ubifs_lpt_lookup_dirty(c, lnum);
	if (IS_ERR(lp)) {
		err = PTR_ERR(lp);
		goto out;
	}
	flags = (lp->flags | flags_set) & ~flags_clean;
	lp = ubifs_change_lp(c, lp, free, lp->dirty + dirty, flags, 0);
	if (IS_ERR(lp))
		err = PTR_ERR(lp);
out:
	ubifs_release_lprops(c);
	return err;
}