/* Must be called when done iterating over list, as it decrements the refcount of the current node. Necessary in case iteration exited before the end of the list was reached, and always good form.  */
void klist_iter_exit(struct klist_iter *i)
/* Must be called when done iterating over list, as it decrements the refcount of the current node. Necessary in case iteration exited before the end of the list was reached, and always good form.  */
void klist_iter_exit(struct klist_iter *i)
{
	if (i->i_cur) {
		klist_put(i->i_cur, false);
		i->i_cur = NULL;
	}
}