diff options
author | Chao Yu <yuchao0@huawei.com> | 2018-06-04 23:20:35 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-06-04 14:32:44 -0700 |
commit | aae764ece6076b0852b95943c40748569c7b8585 (patch) | |
tree | d667f786a87658a47bf3123374c1ef5872a86805 /fs/f2fs/node.c | |
parent | a1f72ac2c0a8d8a3488b31867c9255264331a4db (diff) | |
download | linux-aae764ece6076b0852b95943c40748569c7b8585.tar.bz2 |
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 <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/node.c')
-rw-r--r-- | fs/f2fs/node.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 513f03d823b6..64ad5466887f 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); |