diff options
author | Jonathan Brassow <jbrassow@redhat.com> | 2009-04-02 14:55:33 -0400 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2009-04-02 14:55:33 -0400 |
commit | 49beb2b87a972a994ff77633234ca3bf0d30a1d8 (patch) | |
tree | 4b281ebd48624d0fbe74b93fa72baa834211ca2f /drivers/md/dm-snap-transient.c | |
parent | d0216849519bec8dc96301a3cd80316e71243839 (diff) |
dm exception store: move cow pointer
Move COW device 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-snap-transient.c')
-rw-r--r-- | drivers/md/dm-snap-transient.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-snap-transient.c b/drivers/md/dm-snap-transient.c index c542ababb418..77f58be080c4 100644 --- a/drivers/md/dm-snap-transient.c +++ b/drivers/md/dm-snap-transient.c | |||
@@ -40,7 +40,7 @@ static int transient_prepare_exception(struct dm_exception_store *store, | |||
40 | struct dm_snap_exception *e) | 40 | struct dm_snap_exception *e) |
41 | { | 41 | { |
42 | struct transient_c *tc = store->context; | 42 | struct transient_c *tc = store->context; |
43 | sector_t size = get_dev_size(store->snap->cow->bdev); | 43 | sector_t size = get_dev_size(store->cow->bdev); |
44 | 44 | ||
45 | if (size < (tc->next_free + store->chunk_size)) | 45 | if (size < (tc->next_free + store->chunk_size)) |
46 | return -1; | 46 | return -1; |
@@ -64,7 +64,7 @@ static void transient_fraction_full(struct dm_exception_store *store, | |||
64 | sector_t *numerator, sector_t *denominator) | 64 | sector_t *numerator, sector_t *denominator) |
65 | { | 65 | { |
66 | *numerator = ((struct transient_c *) store->context)->next_free; | 66 | *numerator = ((struct transient_c *) store->context)->next_free; |
67 | *denominator = get_dev_size(store->snap->cow->bdev); | 67 | *denominator = get_dev_size(store->cow->bdev); |
68 | } | 68 | } |
69 | 69 | ||
70 | static int transient_ctr(struct dm_exception_store *store, | 70 | static int transient_ctr(struct dm_exception_store *store, |