mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 14:50:19 +00:00
dm vdo wait-queue: remove unused debug function vdo_waitq_get_next_waiter
Reviewed-by: Ken Raeburn <raeburn@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org> Signed-off-by: Matthew Sakai <msakai@redhat.com>
This commit is contained in:
parent
d6e260cc42
commit
cd1227dd83
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user