huangjianan@oppo.com 36e4d95891 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>
2021-03-12 13:16:43 -08:00
..
2021-02-23 13:39:45 -08:00
2021-01-24 14:27:20 +01:00
2020-12-17 11:18:00 -08:00
2021-03-12 13:16:41 -08:00
2020-12-02 22:00:22 -08:00
2021-01-27 15:20:07 -08:00
2021-02-23 13:39:45 -08:00
2021-02-26 15:49:51 -07:00
2021-02-23 13:39:45 -08:00