ftl: call trace_path() in ftl_sync() to get the page descriptor to write out

tags/0.1.0
S.J.R. van Schaik 7 years ago
parent dddba0af8f
commit 4c2f4eab24
  1. 5
      source/ftl/ftl.c

@ -132,6 +132,7 @@ int ftl_sync(struct ftl_map *map)
{
struct ftl_page_desc page_desc;
size_t len;
int ret;
uint32_t dst, src;
if (!(map->outstanding.flags & FTL_PRESENT))
@ -148,6 +149,10 @@ int ftl_sync(struct ftl_map *map)
page_desc.nused_pages = map->nused_pages;
if ((ret = trace_path(map, &page_desc, NULL, map->outstanding.va)) < 0 &&
ret != -ERR_NOT_FOUND)
return -1;
if (write_page_desc(map, &page_desc) < 0)
return -1;

Loading…
Cancel
Save