ftl: map: only declare __wrap_find_block() in testing mode
This commit is contained in:
parent
adbd045af5
commit
36971300b0
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue