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

Konstantin Khorenko khorenko at virtuozzo.com
Mon May 17 19:04:59 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 ea81936a1a2fb56a30ca828ff28fd0a4021c639e
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date:   Mon May 17 19:04:59 2021 +0300

    ploop: Rename 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 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/md/dm-ploop-map.c b/drivers/md/dm-ploop-map.c
index b8a78d50f82e..cd30ff8e238a 100644
--- a/drivers/md/dm-ploop-map.c
+++ b/drivers/md/dm-ploop-map.c
@@ -82,7 +82,7 @@ static void ploop_index_wb_init(struct ploop_index_wb *piwb, struct ploop *ploop
 	piwb->type = PIWB_TYPE_ALLOC;
 }
 
-static void ploop_init_end_io(struct ploop *ploop, struct pio *pio)
+static void init_pio(struct ploop *ploop, struct pio *pio)
 {
 	pio->action = PLOOP_END_IO_NONE;
 	pio->ref_index = PLOOP_REF_INDEX_INVALID;
@@ -1100,7 +1100,7 @@ int submit_cluster_cow(struct ploop *ploop, unsigned int level,
 	pio = alloc_pio_with_pages(ploop);
 	if (!pio)
 		goto err;
-	ploop_init_end_io(ploop, pio);
+	init_pio(ploop, pio);
 
 	cow = kmem_cache_alloc(cow_cache, GFP_NOIO);
 	if (!cow)
@@ -1117,7 +1117,7 @@ int submit_cluster_cow(struct ploop *ploop, unsigned int level,
 	pio->endio_cb = ploop_cow_endio;
 	pio->endio_cb_data = cow;
 
-	ploop_init_end_io(ploop, &cow->hook);
+	init_pio(ploop, &cow->hook);
 	add_cluster_lk(ploop, &cow->hook, cluster);
 
 	/* Stage #0: read secondary delta full cluster */
@@ -1649,7 +1649,7 @@ int ploop_map(struct dm_target *ti, struct bio *bio)
 	unsigned int cluster;
 	unsigned long flags;
 
-	ploop_init_end_io(ploop, pio);
+	init_pio(ploop, pio);
 
 	pio->bi_iter = bio->bi_iter;
 	pio->bi_io_vec = bio->bi_io_vec;


More information about the Devel mailing list