]> git.hungrycats.org Git - linux/commit
f2fs: fix to check page dirty status before writeback
authorChao Yu <yuchao0@huawei.com>
Fri, 19 Jun 2020 09:14:19 +0000 (17:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Aug 2020 09:42:10 +0000 (11:42 +0200)
commita69c653ee9e029d8cd38eb3cb9850c9e90b8237a
tree6923b038c3644b854f4c63c96b6f9c223fe3e2cd
parent364ae110fd66b491a0b54a8c822f1f7117fa1669
f2fs: fix to check page dirty status before writeback

[ Upstream commit eb1353cfa9c1e9415b03dc117f8399969fa02102 ]

In f2fs_write_raw_pages(), we need to check page dirty status before
writeback, because there could be a racer (e.g. reclaimer) helps
writebacking the dirty page.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/compress.c