aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/kcopyd.c
diff options
context:
space:
mode:
authorHeinz Mauelshagen <hjm@redhat.com>2008-04-24 16:43:17 -0400
committerAlasdair G Kergon <agk@redhat.com>2008-04-25 08:26:43 -0400
commit22a1ceb1e6a7fbce95a1531ff10bb4fb036d4a37 (patch)
tree5b6ebebc747a0027626684a153b418a26119d074 /drivers/md/kcopyd.c
parente01fd7eeb00f8078103f4ed3e8ef64474c11f300 (diff)
dm io: clean interface
Clean up the dm-io interface to prepare for publishing it in include/linux. Signed-off-by: Heinz Mauelshagen <hjm@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/kcopyd.c')
-rw-r--r--drivers/md/kcopyd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/md/kcopyd.c b/drivers/md/kcopyd.c
index e76b52ade690..21fea42c68c4 100644
--- a/drivers/md/kcopyd.c
+++ b/drivers/md/kcopyd.c
@@ -25,6 +25,7 @@
25#include <linux/mutex.h> 25#include <linux/mutex.h>
26 26
27#include "kcopyd.h" 27#include "kcopyd.h"
28#include "dm.h"
28 29
29static struct workqueue_struct *_kcopyd_wq; 30static struct workqueue_struct *_kcopyd_wq;
30static struct work_struct _kcopyd_work; 31static struct work_struct _kcopyd_work;
@@ -175,13 +176,13 @@ struct kcopyd_job {
175 * Either READ or WRITE 176 * Either READ or WRITE
176 */ 177 */
177 int rw; 178 int rw;
178 struct io_region source; 179 struct dm_io_region source;
179 180
180 /* 181 /*
181 * The destinations for the transfer. 182 * The destinations for the transfer.
182 */ 183 */
183 unsigned int num_dests; 184 unsigned int num_dests;
184 struct io_region dests[KCOPYD_MAX_REGIONS]; 185 struct dm_io_region dests[KCOPYD_MAX_REGIONS];
185 186
186 sector_t offset; 187 sector_t offset;
187 unsigned int nr_pages; 188 unsigned int nr_pages;
@@ -526,8 +527,8 @@ static void split_job(struct kcopyd_job *job)
526 segment_complete(0, 0u, job); 527 segment_complete(0, 0u, job);
527} 528}
528 529
529int kcopyd_copy(struct kcopyd_client *kc, struct io_region *from, 530int kcopyd_copy(struct kcopyd_client *kc, struct dm_io_region *from,
530 unsigned int num_dests, struct io_region *dests, 531 unsigned int num_dests, struct dm_io_region *dests,
531 unsigned int flags, kcopyd_notify_fn fn, void *context) 532 unsigned int flags, kcopyd_notify_fn fn, void *context)
532{ 533{
533 struct kcopyd_job *job; 534 struct kcopyd_job *job;