Thread (7 messages) 7 messages, 7 authors, 2021-03-23

Re: [LTP] [f2fs] 02eb84b96b: ltp.swapon03.fail

From: Richard Palethorpe <hidden>
Date: 2021-03-08 11:54:02
Also in: lkml, ltp, oe-lkp

Hello,
kern  :err   : [  187.461914] F2FS-fs (sda1): Swapfile does not align to section
commit 02eb84b96bc1b382dd138bf60724edbefe77b025
Author: huangjianan@oppo.com [off-list ref]
Date:   Mon Mar 1 12:58:44 2021 +0800
    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 [off-list ref]
    Signed-off-by: Guo Weichao [off-list ref]
    Reviewed-by: Chao Yu [off-list ref]
    Signed-off-by: Jaegeuk Kim [off-list ref]
The test uses fallocate to preallocate the swap file and writes zeros to
it. I'm not sure what pin refers to?

-- 
Thank you,
Richard.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help