[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f7fba117-ff4a-2c5d-2206-fd039de19ddc@kernel.org>
Date: Fri, 3 Feb 2023 14:11:12 +0800
From: Chao Yu <chao@...nel.org>
To: qixiaoyu1 <qxy65535@...il.com>, Jaegeuk Kim <jaegeuk@...nel.org>
Cc: linux-kernel@...r.kernel.org,
linux-f2fs-devel@...ts.sourceforge.net,
Ping Xiong <xiongping1@...omi.com>,
Xiaoyu Qi <qixiaoyu1@...omi.com>
Subject: Re: [PATCH 1/2 v3] f2fs: fix wrong calculation of block age
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@...omi.com>
> Signed-off-by: xiongping1 <xiongping1@...omi.com>
Reviewed-by: Chao Yu <chao@...nel.org>
Thanks,
Powered by blists - more mailing lists