/* During commit it is sometimes necessary to copy a pnode (see dirty_cow_pnode) and the lprops that the pnode contains. When that happens, references in the category heaps to those lprops must be updated to point to the new lprops. This function does that.  */
static void lpt_heap_replace(struct ubifs_info *c, struct ubifs_lprops *old_lprops, struct ubifs_lprops *new_lprops, int cat)
/* During commit it is sometimes necessary to copy a pnode (see dirty_cow_pnode) and the lprops that the pnode contains. When that happens, references in the category heaps to those lprops must be updated to point to the new lprops. This function does that.  */
static void lpt_heap_replace(struct ubifs_info *c, struct ubifs_lprops *old_lprops, struct ubifs_lprops *new_lprops, int cat)
{
	struct ubifs_lpt_heap *heap;
	int hpos = new_lprops->hpos;
	heap = &c->lpt_heap[cat - 1];
	heap->arr[hpos] = new_lprops;
}