summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/checkpoint.c
diff options
context:
space:
mode:
authorYunlong Song <yunlong.song@huawei.com>2017-07-27 20:11:00 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2017-08-03 19:05:04 -0700
commit401db79f61e0810e7c9fa3c7425c0aef84e5c30a (patch)
tree760c461eb6470452cda5e42a8c26dd231f5a5bfe /fs/f2fs/checkpoint.c
parentddc34e328d067b15b937dea7ad29034920130200 (diff)
downloadlinux-stable-401db79f61e0810e7c9fa3c7425c0aef84e5c30a.tar.gz
linux-stable-401db79f61e0810e7c9fa3c7425c0aef84e5c30a.tar.bz2
linux-stable-401db79f61e0810e7c9fa3c7425c0aef84e5c30a.zip
f2fs: provide f2fs_balance_fs to __write_node_page
Let node writeback also do f2fs_balance_fs to ensure there are always enough free segments. Signed-off-by: Yunlong Song <yunlong.song@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r--fs/f2fs/checkpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index 5b876f6d3f6b..3c84a2520796 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -1017,7 +1017,7 @@ retry_flush_nodes:
if (get_pages(sbi, F2FS_DIRTY_NODES)) {
up_write(&sbi->node_write);
- err = sync_node_pages(sbi, &wbc);
+ err = sync_node_pages(sbi, &wbc, false);
if (err) {
up_write(&sbi->node_change);
f2fs_unlock_all(sbi);