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

tags/0.1.0
S.J.R. van Schaik 8 years ago
parent 4292ef2f26
commit dfa497198f
  1. 4
      source/ftl/map.c

@ -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);

Loading…
Cancel
Save