diff options
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, | |||
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->snap->cow->bdev); |
44 | 44 | ||
45 | if (size < (tc->next_free + store->snap->chunk_size)) | 45 | if (size < (tc->next_free + store->chunk_size)) |
46 | return -1; | 46 | return -1; |
47 | 47 | ||
48 | e->new_chunk = sector_to_chunk(store->snap, tc->next_free); | 48 | e->new_chunk = sector_to_chunk(store->snap, tc->next_free); |
49 | tc->next_free += store->snap->chunk_size; | 49 | tc->next_free += store->chunk_size; |
50 | 50 | ||
51 | return 0; | 51 | return 0; |
52 | } | 52 | } |