diff options
author | Heinz Mauelshagen <hjm@redhat.com> | 2008-04-24 16:43:19 -0400 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2008-04-25 08:26:44 -0400 |
commit | eb69aca5d3370b81450d68edeebc2bb9a3eb9689 (patch) | |
tree | ddb4c6d52e963b0898a892aaaee3228680e36449 /drivers/md/dm-snap.c | |
parent | 22a1ceb1e6a7fbce95a1531ff10bb4fb036d4a37 (diff) |
dm kcopyd: clean interface
Clean up the kcopyd 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/dm-snap.c')
-rw-r--r-- | drivers/md/dm-snap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c index bab159b77742..e1dcca99392e 100644 --- a/drivers/md/dm-snap.c +++ b/drivers/md/dm-snap.c | |||
@@ -558,7 +558,7 @@ static int snapshot_ctr(struct dm_target *ti, unsigned int argc, char **argv) | |||
558 | goto bad4; | 558 | goto bad4; |
559 | } | 559 | } |
560 | 560 | ||
561 | r = kcopyd_client_create(SNAPSHOT_PAGES, &s->kcopyd_client); | 561 | r = dm_kcopyd_client_create(SNAPSHOT_PAGES, &s->kcopyd_client); |
562 | if (r) { | 562 | if (r) { |
563 | ti->error = "Could not create kcopyd client"; | 563 | ti->error = "Could not create kcopyd client"; |
564 | goto bad5; | 564 | goto bad5; |
@@ -591,7 +591,7 @@ static int snapshot_ctr(struct dm_target *ti, unsigned int argc, char **argv) | |||
591 | return 0; | 591 | return 0; |
592 | 592 | ||
593 | bad6: | 593 | bad6: |
594 | kcopyd_client_destroy(s->kcopyd_client); | 594 | dm_kcopyd_client_destroy(s->kcopyd_client); |
595 | 595 | ||
596 | bad5: | 596 | bad5: |
597 | s->store.destroy(&s->store); | 597 | s->store.destroy(&s->store); |
@@ -613,7 +613,7 @@ static int snapshot_ctr(struct dm_target *ti, unsigned int argc, char **argv) | |||
613 | 613 | ||
614 | static void __free_exceptions(struct dm_snapshot *s) | 614 | static void __free_exceptions(struct dm_snapshot *s) |
615 | { | 615 | { |
616 | kcopyd_client_destroy(s->kcopyd_client); | 616 | dm_kcopyd_client_destroy(s->kcopyd_client); |
617 | s->kcopyd_client = NULL; | 617 | s->kcopyd_client = NULL; |
618 | 618 | ||
619 | exit_exception_table(&s->pending, pending_cache); | 619 | exit_exception_table(&s->pending, pending_cache); |
@@ -839,7 +839,7 @@ static void start_copy(struct dm_snap_pending_exception *pe) | |||
839 | dest.count = src.count; | 839 | dest.count = src.count; |
840 | 840 | ||
841 | /* Hand over to kcopyd */ | 841 | /* Hand over to kcopyd */ |
842 | kcopyd_copy(s->kcopyd_client, | 842 | dm_kcopyd_copy(s->kcopyd_client, |
843 | &src, 1, &dest, 0, copy_callback, pe); | 843 | &src, 1, &dest, 0, copy_callback, pe); |
844 | } | 844 | } |
845 | 845 | ||