[Devel] [PATCH RH8 15/22] ploop: Rename ploop_submit_index_wb_sync()

Kirill Tkhai ktkhai at virtuozzo.com
Wed Jun 30 13:34:11 MSK 2021


Now it's async

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 drivers/md/dm-ploop-cmd.c |    4 ++--
 drivers/md/dm-ploop-map.c |    5 ++---
 drivers/md/dm-ploop.h     |    2 +-
 3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/drivers/md/dm-ploop-cmd.c b/drivers/md/dm-ploop-cmd.c
index 7a5012bbe2fb..00cb83345853 100644
--- a/drivers/md/dm-ploop-cmd.c
+++ b/drivers/md/dm-ploop-cmd.c
@@ -321,7 +321,7 @@ static int ploop_grow_relocate_cluster(struct ploop *ploop,
 	init_completion(&comp);
 	piwb->comp = &comp;
 	/* Write new index on disk */
-	ploop_submit_index_wb_sync(ploop, piwb);
+	ploop_index_wb_submit(ploop, piwb);
 	wait_for_completion(&comp);
 
 	ret = blk_status_to_errno(piwb->bi_status);
@@ -379,7 +379,7 @@ static int ploop_grow_update_header(struct ploop *ploop,
 	ploop_make_md_wb(ploop, md);
 	init_completion(&comp);
 	piwb->comp = &comp;
-	ploop_submit_index_wb_sync(ploop, piwb);
+	ploop_index_wb_submit(ploop, piwb);
 	wait_for_completion(&comp);
 
 	ret = blk_status_to_errno(piwb->bi_status);
diff --git a/drivers/md/dm-ploop-map.c b/drivers/md/dm-ploop-map.c
index 319acfa831eb..ce887a885017 100644
--- a/drivers/md/dm-ploop-map.c
+++ b/drivers/md/dm-ploop-map.c
@@ -1489,8 +1489,7 @@ static void md_write_endio(struct pio *pio, void *piwb_ptr, blk_status_t bi_stat
 	ploop_bat_write_complete(piwb, bi_status);
 }
 
-void ploop_submit_index_wb_sync(struct ploop *ploop,
-				struct ploop_index_wb *piwb)
+void ploop_index_wb_submit(struct ploop *ploop, struct ploop_index_wb *piwb)
 {
 	loff_t pos = (loff_t)piwb->page_id << PAGE_SHIFT;
 	struct pio *pio = piwb->pio;
@@ -1608,7 +1607,7 @@ static void submit_metadata_writeback(struct ploop *ploop)
 		md->status &= ~MD_DIRTY;
 		write_unlock_irq(&ploop->bat_rwlock);
 
-		ploop_submit_index_wb_sync(ploop, md->piwb);
+		ploop_index_wb_submit(ploop, md->piwb);
 	}
 }
 
diff --git a/drivers/md/dm-ploop.h b/drivers/md/dm-ploop.h
index 1634ba8fc5da..4471c3ecb5df 100644
--- a/drivers/md/dm-ploop.h
+++ b/drivers/md/dm-ploop.h
@@ -542,7 +542,7 @@ extern void map_and_submit_rw(struct ploop *ploop, u32 dst_clu, struct pio *pio,
 extern int ploop_prepare_reloc_index_wb(struct ploop *, struct md_page **,
 					unsigned int, unsigned int *);
 extern void ploop_break_bat_update(struct ploop *ploop, struct md_page *);
-extern void ploop_submit_index_wb_sync(struct ploop *, struct ploop_index_wb *);
+extern void ploop_index_wb_submit(struct ploop *, struct ploop_index_wb *);
 extern int ploop_message(struct dm_target *ti, unsigned int argc, char **argv,
 			 char *result, unsigned int maxlen);
 




More information about the Devel mailing list