ftl: copy dev->log2_block_size to log2_erase_size in reset_map()

This commit is contained in:
S.J.R. van Schaik 2017-06-16 14:41:12 +02:00
parent 4292ef2f26
commit dfa497198f

View file

@ -301,8 +301,8 @@ static int find_head(struct ftl_map *map)
static void reset_map(struct ftl_map *map)
{
map->log2_erase_size = ilog2(4 * KIB);
map->log2_page_size = ilog2(4 * KIB);
map->log2_erase_size = dev->log2_block_size;
map->log2_page_size = ilog2(1 * KIB);
map->log2_block_size = ilog2(64 * KIB);
find_block_div(map);