summaryrefslogtreecommitdiff
path: root/drivers/md/dm-vdo/dump.c
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@kernel.org>2023-11-20 17:29:16 -0500
committerMike Snitzer <snitzer@kernel.org>2024-02-20 13:43:16 -0500
commitd6e260cc426164820a496528fda809add15be1ea (patch)
tree594ae42262158deda5a56c09d5b33368b5899840 /drivers/md/dm-vdo/dump.c
parent46a707cce078303e4114ae5547eb48162bae7323 (diff)
downloadlwn-d6e260cc426164820a496528fda809add15be1ea.tar.gz
lwn-d6e260cc426164820a496528fda809add15be1ea.zip
dm vdo wait-queue: add proper namespace to interface
Rename various interfaces and structs associated with vdo's wait-queue, e.g.: s/wait_queue/vdo_wait_queue/, s/waiter/vdo_waiter/, etc. Now all function names start with "vdo_waitq_" or "vdo_waiter_". Reviewed-by: Ken Raeburn <raeburn@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org> Signed-off-by: Matthew Sakai <msakai@redhat.com>
Diffstat (limited to 'drivers/md/dm-vdo/dump.c')
-rw-r--r--drivers/md/dm-vdo/dump.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/md/dm-vdo/dump.c b/drivers/md/dm-vdo/dump.c
index 99266a946ed7..91bc8ed36aa7 100644
--- a/drivers/md/dm-vdo/dump.c
+++ b/drivers/md/dm-vdo/dump.c
@@ -146,25 +146,25 @@ void vdo_dump_all(struct vdo *vdo, const char *why)
}
/*
- * Dump out the data_vio waiters on a wait queue.
+ * Dump out the data_vio waiters on a waitq.
* wait_on should be the label to print for queue (e.g. logical or physical)
*/
-static void dump_vio_waiters(struct wait_queue *queue, char *wait_on)
+static void dump_vio_waiters(struct vdo_wait_queue *waitq, char *wait_on)
{
- struct waiter *waiter, *first = vdo_get_first_waiter(queue);
+ struct vdo_waiter *waiter, *first = vdo_waitq_get_first_waiter(waitq);
struct data_vio *data_vio;
if (first == NULL)
return;
- data_vio = waiter_as_data_vio(first);
+ data_vio = vdo_waiter_as_data_vio(first);
uds_log_info(" %s is locked. Waited on by: vio %px pbn %llu lbn %llu d-pbn %llu lastOp %s",
wait_on, data_vio, data_vio->allocation.pbn, data_vio->logical.lbn,
data_vio->duplicate.pbn, get_data_vio_operation_name(data_vio));
for (waiter = first->next_waiter; waiter != first; waiter = waiter->next_waiter) {
- data_vio = waiter_as_data_vio(waiter);
+ data_vio = vdo_waiter_as_data_vio(waiter);
uds_log_info(" ... and : vio %px pbn %llu lbn %llu d-pbn %llu lastOp %s",
data_vio, data_vio->allocation.pbn, data_vio->logical.lbn,
data_vio->duplicate.pbn,
@@ -177,7 +177,7 @@ static void dump_vio_waiters(struct wait_queue *queue, char *wait_on)
* logging brevity:
*
* R => vio completion result not VDO_SUCCESS
- * W => vio is on a wait queue
+ * W => vio is on a waitq
* D => vio is a duplicate
* p => vio is a partial block operation
* z => vio is a zero block