ftl: fix bug in root recovery by marking page descriptors with a magic value

This commit is contained in:
S.J.R. van Schaik 2017-07-31 14:17:11 +02:00
parent 23c861eab5
commit dc6365c7f8
3 changed files with 12 additions and 10 deletions

View file

@ -7,8 +7,8 @@ int read_page_group(struct ftl_map *map,
int read_page_desc(struct ftl_map *map,
struct ftl_page_desc *page_desc, uint32_t upage);
int write_page_desc(struct ftl_map *map,
const struct ftl_page_desc *page_desc);
struct ftl_page_desc *page_desc);
int write_upage(struct ftl_map *map, const void *page,
const struct ftl_page_desc *page_desc);
struct ftl_page_desc *page_desc);
int trace_path(struct ftl_map *map, struct ftl_page_desc *new_page_desc,
uint32_t *page, uint32_t va);