linux/fs/f2fs
qixiaoyu1 b03a41a495 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>
2023-02-05 19:30:05 -08:00
..
acl.c fs: pass dentry to set acl method 2022-10-19 12:55:42 +02:00
acl.h fs: pass dentry to set acl method 2022-10-19 12:55:42 +02:00
checkpoint.c f2fs: reduce stack memory cost by using bitfield in struct f2fs_io_info 2023-02-02 13:37:16 -08:00
compress.c f2fs: clean up i_compress_flag and i_compress_level usage 2023-02-02 13:37:17 -08:00
data.c f2fs: reduce stack memory cost by using bitfield in struct f2fs_io_info 2023-02-02 13:37:16 -08:00
debug.c f2fs: fix some format WARNING in debug.c and sysfs.c 2022-12-12 14:59:39 -08:00
dir.c f2fs: merge f2fs_show_injection_info() into time_to_inject() 2023-01-11 11:15:19 -08:00
extent_cache.c f2fs: fix wrong calculation of block age 2023-02-05 19:30:05 -08:00
f2fs.h f2fs: clean up i_compress_flag and i_compress_level usage 2023-02-02 13:37:17 -08:00
file.c f2fs: fix to update age extent in f2fs_do_zero_range() 2023-02-02 13:37:17 -08:00
gc.c f2fs: reduce stack memory cost by using bitfield in struct f2fs_io_info 2023-02-02 13:37:16 -08:00
gc.h f2fs: convert discard_wake and gc_wake to bool type 2023-01-11 11:15:19 -08:00
hash.c f2fs: don't use casefolded comparison for "." and ".." 2022-05-17 11:19:23 -07:00
inline.c f2fs: fix information leak in f2fs_move_inline_dirents() 2023-01-31 10:47:46 -08:00
inode.c f2fs: retry to update the inode page given data corruption 2023-02-02 13:37:17 -08:00
iostat.c f2fs: fix to avoid potential memory corruption in __update_iostat_latency() 2023-02-02 13:37:17 -08:00
iostat.h f2fs: iostat: support accounting compressed IO 2022-08-29 21:15:51 -07:00
Kconfig f2fs: introduce F2FS_UNFAIR_RWSEM to support unfair rwsem 2022-03-04 09:15:53 -08:00
Makefile f2fs: separate out iostat feature 2021-08-23 10:25:51 -07:00
namei.c f2fs: remove unneeded f2fs_cp_error() in f2fs_create_whiteout() 2023-01-31 10:47:44 -08:00
node.c f2fs: reduce stack memory cost by using bitfield in struct f2fs_io_info 2023-02-02 13:37:16 -08:00
node.h f2fs: add block_age-based extent cache 2022-12-12 14:53:56 -08:00
recovery.c f2fs: do some cleanup for f2fs module init 2022-12-08 09:32:20 -08:00
segment.c f2fs: reduce stack memory cost by using bitfield in struct f2fs_io_info 2023-02-02 13:37:16 -08:00
segment.h f2fs: add a f2fs_curseg_valid_blocks helper 2023-02-02 13:37:15 -08:00
shrinker.c f2fs: add block_age-based extent cache 2022-12-12 14:53:56 -08:00
super.c f2fs: return true if all cmd were issued or no cmd need to be issued for f2fs_issue_discard_timeout() 2023-01-31 10:47:45 -08:00
sysfs.c f2fs: fix to check warm_data_age_threshold 2023-01-31 10:47:45 -08:00
verity.c fs: f2fs: initialize fsdata in pagecache_write() 2023-01-31 10:47:45 -08:00
xattr.c f2fs: support recording errors into superblock 2022-10-04 13:31:45 -07:00
xattr.h f2fs: code cleanup by removing ifdef macro surrounding 2020-05-26 18:56:10 -07:00