/* Get the next item in the traversal and advance the cursor. If the cursor was invalidated (inidicated by a lip of 1), restart the traversal.  */
struct xfs_log_item* xfs_trans_ail_cursor_next(struct xfs_ail *ailp, struct xfs_ail_cursor *cur)
/* Get the next item in the traversal and advance the cursor. If the cursor was invalidated (inidicated by a lip of 1), restart the traversal.  */
struct xfs_log_item* xfs_trans_ail_cursor_next(struct xfs_ail *ailp, struct xfs_ail_cursor *cur)
{
	struct xfs_log_item	*lip = cur->item;
	if ((__psint_t)lip & 1)
		lip = xfs_ail_min(ailp);
	xfs_trans_ail_cursor_set(ailp, cur, lip);
	return lip;
}