[Devel] [PATCH RH8 3/3] ploop: Revert e2b93c8c4bd2 "dm: Introduce dm_request_set_error()"

Kirill Tkhai ktkhai at virtuozzo.com
Fri May 21 13:05:23 MSK 2021


Now it is unused.

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 drivers/md/dm-ploop-map.c |    1 -
 drivers/md/dm-rq.c        |    8 --------
 2 files changed, 9 deletions(-)

diff --git a/drivers/md/dm-ploop-map.c b/drivers/md/dm-ploop-map.c
index f8c3b0caa160..c7e6de166cb3 100644
--- a/drivers/md/dm-ploop-map.c
+++ b/drivers/md/dm-ploop-map.c
@@ -36,7 +36,6 @@
  * become handled in ploop_map() as before.
  */
 
-extern void dm_request_set_error(struct request *rq, blk_status_t error);
 static void handle_cleanup(struct ploop *ploop, struct pio *pio);
 
 #define DM_MSG_PREFIX "ploop"
diff --git a/drivers/md/dm-rq.c b/drivers/md/dm-rq.c
index f5cdcc3aec52..22cb572ad33c 100644
--- a/drivers/md/dm-rq.c
+++ b/drivers/md/dm-rq.c
@@ -285,14 +285,6 @@ void dm_complete_request(struct request *rq, blk_status_t error)
 }
 EXPORT_SYMBOL_GPL(dm_complete_request);
 
-void dm_request_set_error(struct request *rq, blk_status_t error)
-{
-	struct dm_rq_target_io *tio = tio_from_request(rq);
-
-	tio->error = error;
-}
-EXPORT_SYMBOL_GPL(dm_request_set_error);
-
 /*
  * Complete the not-mapped clone and the original request with the error status
  * through softirq context.




More information about the Devel mailing list