/* This function returns zero in case of success and a negative error code in case of failure.  */
static int replay_buds(struct ubifs_info *c)
/* This function returns zero in case of success and a negative error code in case of failure.  */
static int replay_buds(struct ubifs_info *c)
{
	struct bud_entry *b;
	int err, uninitialized_var(free), uninitialized_var(dirty);
	list_for_each_entry(b, &c->replay_buds, list) {
		err = replay_bud(c, b->bud->lnum, b->bud->start, b->bud->jhead,
				 &free, &dirty);
		if (err)
			return err;
		err = insert_ref_node(c, b->bud->lnum, b->bud->start, b->sqnum,
				      free, dirty);
		if (err)
			return err;
	}
	return 0;
}