/* Return a pointer to the item which follows the given item in the AIL. If the given item is the last item in the list, then return NULL.  */
STATIC xfs_log_item_t * xfs_ail_next(struct xfs_ail *, xfs_log_item_t *)
/* Return a pointer to the item which follows the given item in the AIL. If the given item is the last item in the list, then return NULL.  */
STATIC xfs_log_item_t * xfs_ail_next(struct xfs_ail *, xfs_log_item_t *)
{
	if (lip->li_ail.next == &ailp->xa_ail)
		return NULL;
	return list_first_entry(&lip->li_ail, xfs_log_item_t, li_ail);
}