ftl: use write_page_desc() in ftl_trim()
This commit is contained in:
parent
7a3e5a7679
commit
22028021ca
3 changed files with 7 additions and 2 deletions
|
@ -125,7 +125,10 @@ int ftl_trim(struct ftl_map *map, uint32_t va)
|
|||
alt_page << map->log2_page_size, 1 << map->log2_page_size) == 0)
|
||||
return -1;
|
||||
|
||||
return write_upage(map, NULL, &page_desc);
|
||||
if (prepare_head(map) < 0)
|
||||
return -1;
|
||||
|
||||
return write_page_desc(map, &page_desc);
|
||||
}
|
||||
|
||||
/* Returns the amount of used pages with a unique virtual address multiplied by
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue