From: Chao Yu Date: Mon, 4 Jun 2018 15:20:35 +0000 (+0800) Subject: f2fs: don't change wbc->sync_mode X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6cf9490912e1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git f2fs: don't change wbc->sync_mode We should never falsify wbc->sync_mode passed from mm, otherwise mm can trigger writeback with wrong IO priority. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 6148175da92f..f18b4ce95c21 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -1741,7 +1741,6 @@ static int f2fs_write_node_pages(struct address_space *mapping, trace_f2fs_writepages(mapping->host, wbc, NODE); diff = nr_pages_to_write(sbi, NODE, wbc); - wbc->sync_mode = WB_SYNC_NONE; blk_start_plug(&plug); f2fs_sync_node_pages(sbi, wbc, true, FS_NODE_IO); blk_finish_plug(&plug);