summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2014-11-19 10:54:48 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2014-11-19 22:49:32 -0800
commit27c6bd60ac9bf8114f6bb41eda6addc16a6b76a9 (patch)
treedfd15f37f6fa4c32c4d24992d95f6d8ff0c11e75 /fs/f2fs/node.c
parent67298804f34452a53a9ec9e609d95aa35084132b (diff)
downloadlinux-27c6bd60ac9bf8114f6bb41eda6addc16a6b76a9.tar.bz2
f2fs: submit bio for node blocks in the reclaim path
If a node page is request to be written during the reclaiming path, we should submit the bio to avoid pending to recliam it. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/node.c')
-rw-r--r--fs/f2fs/node.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index 478ce1eacd54..dbf49cc80297 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -1326,6 +1326,10 @@ static int f2fs_write_node_page(struct page *page,
dec_page_count(sbi, F2FS_DIRTY_NODES);
up_read(&sbi->node_write);
unlock_page(page);
+
+ if (wbc->for_reclaim)
+ f2fs_submit_merged_bio(sbi, NODE, WRITE);
+
return 0;
redirty_out: