ftl: change uint8_t to void in write_upage
This commit is contained in:
parent
6a2c499d7a
commit
d631e3012e
3 changed files with 3 additions and 3 deletions
|
@ -36,7 +36,7 @@ int ftl_read(struct ftl_map *map, void *data, size_t len, uint32_t va)
|
|||
int ftl_write(struct ftl_map *map, uint32_t va, const void *udata,
|
||||
size_t len)
|
||||
{
|
||||
uint8_t data[1 << map->log2_page_size];
|
||||
char data[1 << map->log2_page_size];
|
||||
struct ftl_page_desc page_desc;
|
||||
int ret;
|
||||
uint32_t mask, offset, page;
|
||||
|
|
|
@ -119,7 +119,7 @@ static int write_page_desc(struct ftl_map *map,
|
|||
* group, whereupon the head is incremented to point to the next available user
|
||||
* page.
|
||||
*/
|
||||
int write_upage(struct ftl_map *map, const uint8_t *page,
|
||||
int write_upage(struct ftl_map *map, const void *page,
|
||||
const struct ftl_page_desc *page_desc)
|
||||
{
|
||||
if (prepare_head(map) < 0)
|
||||
|
|
|
@ -6,7 +6,7 @@ int read_page_group(struct ftl_map *map,
|
|||
struct ftl_page_group *group, uint32_t group_no);
|
||||
int read_page_desc(struct ftl_map *map,
|
||||
struct ftl_page_desc *page_desc, uint32_t upage);
|
||||
int write_upage(struct ftl_map *map, const uint8_t *page,
|
||||
int write_upage(struct ftl_map *map, const void *page,
|
||||
const 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);
|
||||
|
|
Loading…
Add table
Reference in a new issue