Commit cd1227dd authored by Mike Snitzer's avatar Mike Snitzer

dm vdo wait-queue: remove unused debug function vdo_waitq_get_next_waiter

Reviewed-by: default avatarKen Raeburn <raeburn@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
Signed-off-by: default avatarMatthew Sakai <msakai@redhat.com>
parent d6e260cc
......@@ -207,21 +207,3 @@ bool vdo_waitq_notify_next_waiter(struct vdo_wait_queue *waitq,
return true;
}
/**
* vdo_waitq_get_next_waiter() - Get the waiter after this one, for debug iteration.
* @waitq: The vdo_wait_queue.
* @waiter: A waiter.
*
* Return: The next waiter, or NULL.
*/
const struct vdo_waiter *vdo_waitq_get_next_waiter(const struct vdo_wait_queue *waitq,
const struct vdo_waiter *waiter)
{
struct vdo_waiter *first_waiter = vdo_waitq_get_first_waiter(waitq);
if (waiter == NULL)
return first_waiter;
return ((waiter->next_waiter != first_waiter) ? waiter->next_waiter : NULL);
}
......@@ -135,7 +135,4 @@ static inline size_t __must_check vdo_waitq_num_waiters(const struct vdo_wait_qu
return waitq->length;
}
const struct vdo_waiter * __must_check
vdo_waitq_get_next_waiter(const struct vdo_wait_queue *waitq, const struct vdo_waiter *waiter);
#endif /* VDO_WAIT_QUEUE_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment