From 36971300b098de5250c74a339d38a14cf1292490 Mon Sep 17 00:00:00 2001 From: "S.J.R. van Schaik" Date: Mon, 9 Oct 2017 16:24:56 +0200 Subject: [PATCH] ftl: map: only declare __wrap_find_block() in testing mode --- source/ftl/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ftl/map.c b/source/ftl/map.c index ba79d63..365ec87 100644 --- a/source/ftl/map.c +++ b/source/ftl/map.c @@ -270,10 +270,10 @@ int find_block(struct ftl_map *map, struct ftl_page_group *group, #ifdef find_block #undef find_block #define find_block __wrap_find_block -#endif int find_block(struct ftl_map *map, struct ftl_page_group *group, uint32_t *where, uint32_t block); +#endif /* Given the block number of the first block, attempts to use binary search to * find the last block that is in use.