Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libf2fs: Fix calculation of usable segments for single zoned
There was a bug that did not subtract the super block area when calculating the usable segments for a single zoned device with a conventional zone. This bug resulted in incorrect the overprovision and reserved area. <256MiB legacy block + zoned block w/ 32MiB zone size> Info: Overprovision ratio = 3.570% Info: Overprovision segments = 656 (GC reserved = 560) <8 conventional zone + 1016 sequential zone w/ 32MiB zone size> Info: Overprovision ratio = 3.700% Info: Overprovision segments = 676 (GC reserved = 578) This patch fixes the bug by subtracting the super block area when there is only one zoned device. Signed-off-by: Yonggil Song <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
- Loading branch information