diff options
Diffstat (limited to 'drivers/md/dm-snap.c')
-rw-r--r-- | drivers/md/dm-snap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c index d135212958f1..8a4a9c838afd 100644 --- a/drivers/md/dm-snap.c +++ b/drivers/md/dm-snap.c | |||
@@ -553,6 +553,8 @@ static int init_hash_tables(struct dm_snapshot *s) | |||
553 | hash_size = min(origin_dev_size, cow_dev_size) >> s->store->chunk_shift; | 553 | hash_size = min(origin_dev_size, cow_dev_size) >> s->store->chunk_shift; |
554 | hash_size = min(hash_size, max_buckets); | 554 | hash_size = min(hash_size, max_buckets); |
555 | 555 | ||
556 | if (hash_size < 64) | ||
557 | hash_size = 64; | ||
556 | hash_size = rounddown_pow_of_two(hash_size); | 558 | hash_size = rounddown_pow_of_two(hash_size); |
557 | if (init_exception_table(&s->complete, hash_size, | 559 | if (init_exception_table(&s->complete, hash_size, |
558 | DM_CHUNK_CONSECUTIVE_BITS)) | 560 | DM_CHUNK_CONSECUTIVE_BITS)) |