mufs: flash_erase() operates on blocks rather than bytes
This commit is contained in:
parent
286c5ebefe
commit
7107daa4b5
1 changed files with 1 additions and 2 deletions
|
@ -74,8 +74,7 @@ int mufs_free_block(struct mufs *fs, uint32_t block)
|
|||
if (block < 1 + nbitmap_size)
|
||||
return -1;
|
||||
|
||||
flash_erase(fs->dev, block << fs->dev->log2_block_size,
|
||||
1 << fs->dev->log2_block_size);
|
||||
flash_erase(fs->dev, block, 1);
|
||||
|
||||
return mufs_mark_block(fs, block - 1 - nbitmap_size, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue