diff options
author | 2021-03-01 12:58:44 +0800 | |
---|---|---|
committer | 2021-03-12 13:16:43 -0800 | |
commit | 36e4d95891ed37eb98a660babec749be3fb35fd9 (patch) | |
tree | e4567a189009818881cacb4766f8bb06c9de06d4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | f2fs: fix last_lblock check in check_swap_activate_fast (diff) | |
download | linux-dev-36e4d95891ed37eb98a660babec749be3fb35fd9.tar.xz linux-dev-36e4d95891ed37eb98a660babec749be3fb35fd9.zip |
f2fs: check if swapfile is section-alligned
If the swapfile isn't created by pin and fallocate, it can't be
guaranteed section-aligned, so it may be selected by f2fs gc. When
gc_pin_file_threshold is reached, the address of swapfile may change,
but won't be synchronized to swap_extent, so swap will write to wrong
address, which will cause data corruption.
Signed-off-by: Huang Jianan <huangjianan@oppo.com>
Signed-off-by: Guo Weichao <guoweichao@oppo.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions