Skip to content

Commit

Permalink
f2fs: don't change wbc->sync_mode
Browse files Browse the repository at this point in the history
We should never falsify wbc->sync_mode passed from mm, otherwise
mm can trigger writeback with wrong IO priority.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: khusika <khusikadhamar@gmail.com>
  • Loading branch information
chaseyu authored and khusika committed Aug 9, 2018
1 parent 5459aab commit 93b7e26
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/f2fs/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -1745,7 +1745,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);
Expand Down

0 comments on commit 93b7e26

Please sign in to comment.