Commit dbf9782c authored by Mike Snitzer's avatar Mike Snitzer

dm: remove exports for request-based interfaces without external callers

Remove exports for dm_dispatch_request, dm_requeue_unmapped_request,
and dm_kill_unmapped_request.
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent db507b3f
...@@ -1062,7 +1062,7 @@ static void dm_unprep_request(struct request *rq) ...@@ -1062,7 +1062,7 @@ static void dm_unprep_request(struct request *rq)
/* /*
* Requeue the original request of a clone. * Requeue the original request of a clone.
*/ */
void dm_requeue_unmapped_request(struct request *clone) static void dm_requeue_unmapped_request(struct request *clone)
{ {
int rw = rq_data_dir(clone); int rw = rq_data_dir(clone);
struct dm_rq_target_io *tio = clone->end_io_data; struct dm_rq_target_io *tio = clone->end_io_data;
...@@ -1079,7 +1079,6 @@ void dm_requeue_unmapped_request(struct request *clone) ...@@ -1079,7 +1079,6 @@ void dm_requeue_unmapped_request(struct request *clone)
rq_completed(md, rw, 0); rq_completed(md, rw, 0);
} }
EXPORT_SYMBOL_GPL(dm_requeue_unmapped_request);
static void __stop_queue(struct request_queue *q) static void __stop_queue(struct request_queue *q)
{ {
...@@ -1177,7 +1176,7 @@ static void dm_complete_request(struct request *clone, int error) ...@@ -1177,7 +1176,7 @@ static void dm_complete_request(struct request *clone, int error)
* Target's rq_end_io() function isn't called. * Target's rq_end_io() function isn't called.
* This may be used when the target's map_rq() function fails. * This may be used when the target's map_rq() function fails.
*/ */
void dm_kill_unmapped_request(struct request *clone, int error) static void dm_kill_unmapped_request(struct request *clone, int error)
{ {
struct dm_rq_target_io *tio = clone->end_io_data; struct dm_rq_target_io *tio = clone->end_io_data;
struct request *rq = tio->orig; struct request *rq = tio->orig;
...@@ -1185,7 +1184,6 @@ void dm_kill_unmapped_request(struct request *clone, int error) ...@@ -1185,7 +1184,6 @@ void dm_kill_unmapped_request(struct request *clone, int error)
rq->cmd_flags |= REQ_FAILED; rq->cmd_flags |= REQ_FAILED;
dm_complete_request(clone, error); dm_complete_request(clone, error);
} }
EXPORT_SYMBOL_GPL(dm_kill_unmapped_request);
/* /*
* Called with the queue lock held * Called with the queue lock held
...@@ -1686,7 +1684,7 @@ static void dm_request(struct request_queue *q, struct bio *bio) ...@@ -1686,7 +1684,7 @@ static void dm_request(struct request_queue *q, struct bio *bio)
_dm_request(q, bio); _dm_request(q, bio);
} }
void dm_dispatch_request(struct request *rq) static void dm_dispatch_request(struct request *rq)
{ {
int r; int r;
...@@ -1698,7 +1696,6 @@ void dm_dispatch_request(struct request *rq) ...@@ -1698,7 +1696,6 @@ void dm_dispatch_request(struct request *rq)
if (r) if (r)
dm_complete_request(rq, r); dm_complete_request(rq, r);
} }
EXPORT_SYMBOL_GPL(dm_dispatch_request);
static int dm_rq_bio_constructor(struct bio *bio, struct bio *bio_orig, static int dm_rq_bio_constructor(struct bio *bio, struct bio *bio_orig,
void *data) void *data)
......
...@@ -600,9 +600,6 @@ static inline unsigned long to_bytes(sector_t n) ...@@ -600,9 +600,6 @@ static inline unsigned long to_bytes(sector_t n)
/*----------------------------------------------------------------- /*-----------------------------------------------------------------
* Helper for block layer and dm core operations * Helper for block layer and dm core operations
*---------------------------------------------------------------*/ *---------------------------------------------------------------*/
void dm_dispatch_request(struct request *rq);
void dm_requeue_unmapped_request(struct request *rq);
void dm_kill_unmapped_request(struct request *rq, int error);
int dm_underlying_device_busy(struct request_queue *q); int dm_underlying_device_busy(struct request_queue *q);
#endif /* _LINUX_DEVICE_MAPPER_H */ #endif /* _LINUX_DEVICE_MAPPER_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment