/* Apply all entries in the replay list to the TNC. Returns zero in case of success and a negative error code in case of failure.  */
static int apply_replay_list(struct ubifs_info *c)
/* Apply all entries in the replay list to the TNC. Returns zero in case of success and a negative error code in case of failure.  */
static int apply_replay_list(struct ubifs_info *c)
{
	struct replay_entry *r;
	int err;
	list_sort(c, &c->replay_list, &replay_entries_cmp);
	list_for_each_entry(r, &c->replay_list, list) {
		cond_resched();
		err = apply_replay_entry(c, r);
		if (err)
			return err;
	}
	return 0;
}