diff options
| author | qixiaoyu1 <qxy65535@gmail.com> | 2023-02-02 16:20:27 +0800 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2023-02-05 19:30:05 -0800 |
| commit | b03a41a495df35f8e8d25220878bd6b8472d9396 (patch) | |
| tree | 7be4793abf7e3c13db683e0344f6d1f484b3af30 /net/lapb/lapb_out.c | |
| parent | a84153f939808102dfa10904aa0f743e734a3e1d (diff) | |
f2fs: fix wrong calculation of block age
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@xiaomi.com>
Signed-off-by: xiongping1 <xiongping1@xiaomi.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions
