]> Git Repo - linux.git/commitdiff
f2fs: don't change wbc->sync_mode
authorChao Yu <[email protected]>
Mon, 4 Jun 2018 15:20:35 +0000 (23:20 +0800)
committerJaegeuk Kim <[email protected]>
Mon, 4 Jun 2018 21:32:44 +0000 (14:32 -0700)
We should never falsify wbc->sync_mode passed from mm, otherwise
mm can trigger writeback with wrong IO priority.

Signed-off-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
fs/f2fs/node.c

index 513f03d823b69f7ed6411991843ec8229e2a3ed8..64ad5466887ff5f415eba85bbc0e7647ff0210bc 100644 (file)
@@ -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);
This page took 0.058192 seconds and 4 git commands to generate.