]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
dm mpath: remove map_io()
authorHannes Reinecke <hare@suse.de>
Fri, 28 Feb 2014 14:33:47 +0000 (15:33 +0100)
committerMike Snitzer <snitzer@redhat.com>
Thu, 27 Mar 2014 20:56:25 +0000 (16:56 -0400)
multipath_map() is now just a wrapper around map_io(), so we
can rename map_io() to multipath_map().

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Reviewed-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
drivers/md/dm-mpath.c

index 2c2c33f249986c86e29c9633539e3636078579df..07ca77f2943800c501d8efaf52416a17ca7f2291 100644 (file)
@@ -375,9 +375,13 @@ static int __must_push_back(struct multipath *m)
 
 #define pg_ready(m) (!(m)->queue_io && !(m)->pg_init_required)
 
-static int map_io(struct multipath *m, struct request *clone,
-                 union map_info *map_context)
+/*
+ * Map cloned requests
+ */
+static int multipath_map(struct dm_target *ti, struct request *clone,
+                        union map_info *map_context)
 {
+       struct multipath *m = (struct multipath *) ti->private;
        int r = DM_MAPIO_REQUEUE;
        size_t nr_bytes = blk_rq_bytes(clone);
        unsigned long flags;
@@ -908,17 +912,6 @@ static void multipath_dtr(struct dm_target *ti)
        free_multipath(m);
 }
 
-/*
- * Map cloned requests
- */
-static int multipath_map(struct dm_target *ti, struct request *clone,
-                        union map_info *map_context)
-{
-       struct multipath *m = (struct multipath *) ti->private;
-
-       return map_io(m, clone, map_context);
-}
-
 /*
  * Take a path out of use.
  */