ftl: copy dev->log2_block_size to log2_erase_size in reset_map()
This commit is contained in:
parent
4292ef2f26
commit
dfa497198f
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue