From 6c7594acaa73cbd97cab80261c786711681bcaae Mon Sep 17 00:00:00 2001 From: "S.J.R. van Schaik" Date: Mon, 24 Jul 2017 15:02:48 +0200 Subject: [PATCH] ftl: invalidate cached va during sync --- source/ftl/ftl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ftl/ftl.c b/source/ftl/ftl.c index 3f7bb54..6f08e40 100644 --- a/source/ftl/ftl.c +++ b/source/ftl/ftl.c @@ -138,7 +138,7 @@ int ftl_sync(struct ftl_map *map) return -1; map->offset = 0; - map->flags &= ~FTL_DIRTY; + map->flags &= ~(FTL_CACHED_VA | FTL_UNMAPPED | FTL_DIRTY); return 0; }