aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2014-12-16 18:44:36 -0500
committerMike Snitzer <snitzer@redhat.com>2015-02-09 12:59:48 -0500
commitdbf9782c1078c537831201c73ac60c9623ae9370 (patch)
treed73089cb19bb3ff6dad700b5c65add460a397fe5 /drivers/md
parentdb507b3ffd9b7a1c87e732ac6e2c3a5d0babb15a (diff)
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: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 71e6b73fe78d..5920a9af7bd6 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -1062,7 +1062,7 @@ static void dm_unprep_request(struct request *rq)
1062/* 1062/*
1063 * Requeue the original request of a clone. 1063 * Requeue the original request of a clone.
1064 */ 1064 */
1065void dm_requeue_unmapped_request(struct request *clone) 1065static void dm_requeue_unmapped_request(struct request *clone)
1066{ 1066{
1067 int rw = rq_data_dir(clone); 1067 int rw = rq_data_dir(clone);
1068 struct dm_rq_target_io *tio = clone->end_io_data; 1068 struct dm_rq_target_io *tio = clone->end_io_data;
@@ -1079,7 +1079,6 @@ void dm_requeue_unmapped_request(struct request *clone)
1079 1079
1080 rq_completed(md, rw, 0); 1080 rq_completed(md, rw, 0);
1081} 1081}
1082EXPORT_SYMBOL_GPL(dm_requeue_unmapped_request);
1083 1082
1084static void __stop_queue(struct request_queue *q) 1083static void __stop_queue(struct request_queue *q)
1085{ 1084{
@@ -1177,7 +1176,7 @@ static void dm_complete_request(struct request *clone, int error)
1177 * Target's rq_end_io() function isn't called. 1176 * Target's rq_end_io() function isn't called.
1178 * This may be used when the target's map_rq() function fails. 1177 * This may be used when the target's map_rq() function fails.
1179 */ 1178 */
1180void dm_kill_unmapped_request(struct request *clone, int error) 1179static void dm_kill_unmapped_request(struct request *clone, int error)
1181{ 1180{
1182 struct dm_rq_target_io *tio = clone->end_io_data; 1181 struct dm_rq_target_io *tio = clone->end_io_data;
1183 struct request *rq = tio->orig; 1182 struct request *rq = tio->orig;
@@ -1185,7 +1184,6 @@ void dm_kill_unmapped_request(struct request *clone, int error)
1185 rq->cmd_flags |= REQ_FAILED; 1184 rq->cmd_flags |= REQ_FAILED;
1186 dm_complete_request(clone, error); 1185 dm_complete_request(clone, error);
1187} 1186}
1188EXPORT_SYMBOL_GPL(dm_kill_unmapped_request);
1189 1187
1190/* 1188/*
1191 * Called with the queue lock held 1189 * Called with the queue lock held
@@ -1686,7 +1684,7 @@ static void dm_request(struct request_queue *q, struct bio *bio)
1686 _dm_request(q, bio); 1684 _dm_request(q, bio);
1687} 1685}
1688 1686
1689void dm_dispatch_request(struct request *rq) 1687static void dm_dispatch_request(struct request *rq)
1690{ 1688{
1691 int r; 1689 int r;
1692 1690
@@ -1698,7 +1696,6 @@ void dm_dispatch_request(struct request *rq)
1698 if (r) 1696 if (r)
1699 dm_complete_request(rq, r); 1697 dm_complete_request(rq, r);
1700} 1698}
1701EXPORT_SYMBOL_GPL(dm_dispatch_request);
1702 1699
1703static int dm_rq_bio_constructor(struct bio *bio, struct bio *bio_orig, 1700static int dm_rq_bio_constructor(struct bio *bio, struct bio *bio_orig,
1704 void *data) 1701 void *data)