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-snap-transient.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-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 51bc4a78ce9a..c542ababb418 100644 --- a/drivers/md/dm-snap-transient.c +++ b/drivers/md/dm-snap-transient.c @@ -42,11 +42,11 @@ static int transient_prepare_exception(struct dm_exception_store *store, struct transient_c *tc = store->context; sector_t size = get_dev_size(store->snap->cow->bdev); - if (size < (tc->next_free + store->snap->chunk_size)) + if (size < (tc->next_free + store->chunk_size)) return -1; e->new_chunk = sector_to_chunk(store->snap, tc->next_free); - tc->next_free += store->snap->chunk_size; + tc->next_free += store->chunk_size; return 0; } |