summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorhuangjianan@oppo.com <huangjianan@oppo.com>2021-03-01 07:58:44 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2021-03-13 00:16:43 +0300
commit36e4d95891ed37eb98a660babec749be3fb35fd9 (patch)
treee4567a189009818881cacb4766f8bb06c9de06d4 /lib/mpi/mpi-sub-ui.c
parent1da66103837077df70ddf7a49c46dfd025001a60 (diff)
downloadlinux-36e4d95891ed37eb98a660babec749be3fb35fd9.tar.xz
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 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions