Re: [PATCH 1/2 v3] f2fs: fix wrong calculation of block age

From: Chao Yu
Date: Fri Feb 03 2023 - 01:12:07 EST


On 2023/2/2 16:20, qixiaoyu1 wrote:
Currently we wrongly calculate the new block age to
old * LAST_AGE_WEIGHT / 100.

Fix it to new * (100 - LAST_AGE_WEIGHT) / 100
+ old * LAST_AGE_WEIGHT / 100.

Signed-off-by: qixiaoyu1 <qixiaoyu1@xxxxxxxxxx>
Signed-off-by: xiongping1 <xiongping1@xxxxxxxxxx>

Reviewed-by: Chao Yu <chao@xxxxxxxxxx>

Thanks,