ftl: map: only declare __wrap_find_block() in testing mode

This commit is contained in:
S.J.R. van Schaik 2017-10-09 16:24:56 +02:00
parent adbd045af5
commit 36971300b0

View file

@ -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.