|
@@ -553,6 +553,8 @@ static int init_hash_tables(struct dm_snapshot *s)
|
|
hash_size = min(origin_dev_size, cow_dev_size) >> s->store->chunk_shift;
|
|
hash_size = min(origin_dev_size, cow_dev_size) >> s->store->chunk_shift;
|
|
hash_size = min(hash_size, max_buckets);
|
|
hash_size = min(hash_size, max_buckets);
|
|
|
|
|
|
|
|
+ if (hash_size < 64)
|
|
|
|
+ hash_size = 64;
|
|
hash_size = rounddown_pow_of_two(hash_size);
|
|
hash_size = rounddown_pow_of_two(hash_size);
|
|
if (init_exception_table(&s->complete, hash_size,
|
|
if (init_exception_table(&s->complete, hash_size,
|
|
DM_CHUNK_CONSECUTIVE_BITS))
|
|
DM_CHUNK_CONSECUTIVE_BITS))
|