[Devel] [PATCH RH8 07/18] ploop: Unexport ploop_inflight_bios_ref_switch()

Kirill Tkhai ktkhai at virtuozzo.com
Wed Jun 16 18:46:52 MSK 2021


Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 drivers/md/dm-ploop-cmd.c |    2 +-
 drivers/md/dm-ploop.h     |    1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/md/dm-ploop-cmd.c b/drivers/md/dm-ploop-cmd.c
index 25ebdb878c22..4837c875ceaa 100644
--- a/drivers/md/dm-ploop-cmd.c
+++ b/drivers/md/dm-ploop-cmd.c
@@ -87,7 +87,7 @@ static int wait_for_completion_maybe_killable(struct completion *comp,
  * weaker, than "dmsetup suspend".
  * It is called from kwork only, so this can't be executed in parallel.
  */
-int ploop_inflight_bios_ref_switch(struct ploop *ploop, bool killable)
+static int ploop_inflight_bios_ref_switch(struct ploop *ploop, bool killable)
 {
 	struct completion *comp = &ploop->inflight_bios_ref_comp;
 	unsigned int index = ploop->inflight_bios_ref_index;
diff --git a/drivers/md/dm-ploop.h b/drivers/md/dm-ploop.h
index ecfc4dab81d3..bc2090274705 100644
--- a/drivers/md/dm-ploop.h
+++ b/drivers/md/dm-ploop.h
@@ -511,7 +511,6 @@ extern void process_deferred_cmd(struct ploop *ploop,
 			struct ploop_index_wb *piwb);
 extern int ploop_clone_and_map(struct dm_target *ti, struct request *rq,
 		    union map_info *map_context, struct request **clone);
-extern int ploop_inflight_bios_ref_switch(struct ploop *ploop, bool killable);
 extern struct pio *find_lk_of_cluster(struct ploop *ploop, u32 cluster);
 extern void init_pio(struct ploop *ploop, unsigned int bi_op, struct pio *pio);
 extern int ploop_rw_page_sync(unsigned rw, struct file *file,




More information about the Devel mailing list