[Devel] [PATCH RHEL8 COMMIT] ploop: Rename arg in ploop_init_end_io()

Konstantin Khorenko khorenko at virtuozzo.com
Mon May 17 19:04:37 MSK 2021


The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.30
------>
commit f184104acc26fadecbd41398488594e3d09483c3
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date:   Mon May 17 19:04:37 2021 +0300

    ploop: Rename arg in ploop_init_end_io()
    
    Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
    
    =====================
    Patchset description:
    
    dm-ploop: Kill loop
    
    Intermediate patches can't be base for bisect.
    
    In scope of https://jira.sw.ru/browse/PSBM-123654
    
    Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 drivers/md/dm-ploop-map.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/drivers/md/dm-ploop-map.c b/drivers/md/dm-ploop-map.c
index b643a4380fab..0b902a67f5de 100644
--- a/drivers/md/dm-ploop-map.c
+++ b/drivers/md/dm-ploop-map.c
@@ -72,23 +72,23 @@ static struct dm_ploop_endio_hook *bio_to_endio_hook(struct bio *bio)
 }
 
 static void __ploop_init_end_io(struct ploop *ploop,
-				struct dm_ploop_endio_hook *h)
+				struct dm_ploop_endio_hook *pio)
 {
-	h->action = PLOOP_END_IO_NONE;
-	h->ref_index = PLOOP_REF_INDEX_INVALID;
-	h->piwb = NULL;
-	INIT_LIST_HEAD(&h->list);
-	h->endio_bio_list = NULL;
+	pio->action = PLOOP_END_IO_NONE;
+	pio->ref_index = PLOOP_REF_INDEX_INVALID;
+	pio->piwb = NULL;
+	INIT_LIST_HEAD(&pio->list);
+	pio->endio_bio_list = NULL;
 	/* FIXME: assign real cluster? */
-	h->cluster = UINT_MAX;
-	RB_CLEAR_NODE(&h->node);
+	pio->cluster = UINT_MAX;
+	RB_CLEAR_NODE(&pio->node);
 }
 
 static void ploop_init_end_io(struct ploop *ploop, struct bio *bio)
 {
-	struct dm_ploop_endio_hook *h = bio_to_endio_hook(bio);
+	struct dm_ploop_endio_hook *pio = bio_to_endio_hook(bio);
 
-	__ploop_init_end_io(ploop, h);
+	__ploop_init_end_io(ploop, pio);
 }
 
 /* Get cluster related to bio sectors */


More information about the Devel mailing list