diff options
author | Jonathan Brassow <jbrassow@redhat.com> | 2009-04-02 20:55:32 +0200 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2009-04-02 20:55:32 +0200 |
commit | d0216849519bec8dc96301a3cd80316e71243839 (patch) | |
tree | 06e7f1d2028e784213e17f1a8ea1abae9ffb0ab9 /drivers/md/dm-exception-store.c | |
parent | dm exception store: move dm_target pointer (diff) | |
download | linux-d0216849519bec8dc96301a3cd80316e71243839.tar.xz linux-d0216849519bec8dc96301a3cd80316e71243839.zip |
dm exception store: move chunk_fields
Move chunk fields from snapshot to exception store.
Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-exception-store.c')
-rw-r--r-- | drivers/md/dm-exception-store.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/md/dm-exception-store.c b/drivers/md/dm-exception-store.c index fe0cfa677139..59c949b53106 100644 --- a/drivers/md/dm-exception-store.c +++ b/drivers/md/dm-exception-store.c @@ -138,6 +138,8 @@ int dm_exception_store_type_unregister(struct dm_exception_store_type *type) EXPORT_SYMBOL(dm_exception_store_type_unregister); int dm_exception_store_create(const char *type_name, struct dm_target *ti, + chunk_t chunk_size, chunk_t chunk_mask, + chunk_t chunk_shift, struct dm_exception_store **store) { int r = 0; @@ -157,6 +159,10 @@ int dm_exception_store_create(const char *type_name, struct dm_target *ti, tmp_store->type = type; tmp_store->ti = ti; + tmp_store->chunk_size = chunk_size; + tmp_store->chunk_mask = chunk_mask; + tmp_store->chunk_shift = chunk_shift; + r = type->ctr(tmp_store, 0, NULL); if (r) { put_type(type); |