[Devel] [PATCH RH8 05/14] ploop: Rename in submit_cluster_write()

Kirill Tkhai ktkhai at virtuozzo.com
Fri Jun 25 18:09:30 MSK 2021


No functional changes

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 drivers/md/dm-ploop-map.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/md/dm-ploop-map.c b/drivers/md/dm-ploop-map.c
index a9c8a6d3dca2..9bf3554d4f95 100644
--- a/drivers/md/dm-ploop-map.c
+++ b/drivers/md/dm-ploop-map.c
@@ -1210,7 +1210,7 @@ static void initiate_cluster_cow(struct ploop *ploop, unsigned int level,
 
 static void submit_cluster_write(struct ploop_cow *cow)
 {
-	struct pio *pio = cow->aux_pio;
+	struct pio *aux_pio = cow->aux_pio;
 	struct ploop *ploop = cow->ploop;
 	unsigned int dst_clu;
 
@@ -1218,14 +1218,14 @@ static void submit_cluster_write(struct ploop_cow *cow)
 		goto error;
 	cow->dst_clu = dst_clu;
 
-	init_pio(ploop, REQ_OP_WRITE, pio);
-	pio_prepare_offsets(ploop, pio, dst_clu);
+	init_pio(ploop, REQ_OP_WRITE, aux_pio);
+	pio_prepare_offsets(ploop, aux_pio, dst_clu);
 
 	BUG_ON(irqs_disabled());
-	pio->endio_cb = ploop_cow_endio;
-	pio->endio_cb_data = cow;
+	aux_pio->endio_cb = ploop_cow_endio;
+	aux_pio->endio_cb_data = cow;
 
-	map_and_submit_rw(ploop, dst_clu, pio, top_level(ploop));
+	map_and_submit_rw(ploop, dst_clu, aux_pio, top_level(ploop));
 	return;
 error:
 	complete_cow(cow, BLK_STS_IOERR);




More information about the Devel mailing list