[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <57c26fef-5566-cf91-3768-206ed7f09c7e@kernel.org>
Date: Mon, 1 Mar 2021 22:15:57 +0800
From: Chao Yu <chao@...nel.org>
To: Huang Jianan <huangjianan@...o.com>,
linux-f2fs-devel@...ts.sourceforge.net
Cc: linux-kernel@...r.kernel.org, zhangshiming@...o.com
Subject: Re: [f2fs-dev] [PATCH v2 3/3] f2fs: check if swapfile is
section-alligned
On 2021/3/1 12:58, Huang Jianan via Linux-f2fs-devel wrote:
> 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@...o.com>
> Signed-off-by: Guo Weichao <guoweichao@...o.com>
Reviewed-by: Chao Yu <yuchao0@...wei.com>
Thanks,
Powered by blists - more mailing lists