diff options
author | Jonathan Brassow <jbrassow@redhat.com> | 2009-04-02 14:55:30 -0400 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2009-04-02 14:55:30 -0400 |
commit | b2a114652940ccf7e9668ad447ca78bf16a31139 (patch) | |
tree | f86e851ff752a8ae5ce1b5571cde1918c86a156a /drivers/md/dm-snap-persistent.c | |
parent | ec44ab9d6681ddf9026b593e866bec9c0e075e1d (diff) |
dm exception store: separate type from instance
Introduce struct dm_exception_store_type.
Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-snap-persistent.c')
-rw-r--r-- | drivers/md/dm-snap-persistent.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/md/dm-snap-persistent.c b/drivers/md/dm-snap-persistent.c index 936b34e0959f..0bbbe3b7431e 100644 --- a/drivers/md/dm-snap-persistent.c +++ b/drivers/md/dm-snap-persistent.c | |||
@@ -683,12 +683,13 @@ int dm_create_persistent(struct dm_exception_store *store) | |||
683 | return -ENOMEM; | 683 | return -ENOMEM; |
684 | } | 684 | } |
685 | 685 | ||
686 | store->destroy = persistent_destroy; | 686 | store->type.dtr = persistent_destroy; |
687 | store->read_metadata = persistent_read_metadata; | 687 | store->type.read_metadata = persistent_read_metadata; |
688 | store->prepare_exception = persistent_prepare_exception; | 688 | store->type.prepare_exception = persistent_prepare_exception; |
689 | store->commit_exception = persistent_commit_exception; | 689 | store->type.commit_exception = persistent_commit_exception; |
690 | store->drop_snapshot = persistent_drop_snapshot; | 690 | store->type.drop_snapshot = persistent_drop_snapshot; |
691 | store->fraction_full = persistent_fraction_full; | 691 | store->type.fraction_full = persistent_fraction_full; |
692 | |||
692 | store->context = ps; | 693 | store->context = ps; |
693 | 694 | ||
694 | return 0; | 695 | return 0; |