From f7b11a8726eb2e25c95796596dc0a77b12caa2d2 Mon Sep 17 00:00:00 2001 From: "S.J.R. van Schaik" Date: Mon, 24 Jul 2017 15:03:19 +0200 Subject: [PATCH] ftl: temporarily disable reading the cached va in trace_path() --- source/ftl/map.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/ftl/map.c b/source/ftl/map.c index 7296111..52de529 100644 --- a/source/ftl/map.c +++ b/source/ftl/map.c @@ -382,7 +382,9 @@ int trace_path(struct ftl_map *map, struct ftl_page_desc *new_page_desc, uint8_t depth = 0; uint32_t upage = map->root; - if ((map->flags & FTL_CACHED_VA) && map->last_va == va) { +#if 0 + /* FIXME */ + if (!new_page_desc && (map->flags & FTL_CACHED_VA) && map->last_va == va) { if (map->flags & FTL_UNMAPPED) return -1; @@ -391,6 +393,9 @@ int trace_path(struct ftl_map *map, struct ftl_page_desc *new_page_desc, return 0; } +#endif + + map->flags &= ~(FTL_CACHED_VA | FTL_UNMAPPED); if (new_page_desc) new_page_desc->va = va; @@ -428,7 +433,6 @@ int trace_path(struct ftl_map *map, struct ftl_page_desc *new_page_desc, *page = upage; map->flags |= FTL_CACHED_VA; - map->flags &= ~FTL_UNMAPPED; map->last_va = va; map->last_pa = upage;