diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-19 13:54:48 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-20 01:49:32 -0500 |
commit | 27c6bd60ac9bf8114f6bb41eda6addc16a6b76a9 (patch) | |
tree | dfd15f37f6fa4c32c4d24992d95f6d8ff0c11e75 /fs/f2fs | |
parent | 67298804f34452a53a9ec9e609d95aa35084132b (diff) |
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')
-rw-r--r-- | fs/f2fs/node.c | 4 |
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, | |||
1326 | dec_page_count(sbi, F2FS_DIRTY_NODES); | 1326 | dec_page_count(sbi, F2FS_DIRTY_NODES); |
1327 | up_read(&sbi->node_write); | 1327 | up_read(&sbi->node_write); |
1328 | unlock_page(page); | 1328 | unlock_page(page); |
1329 | |||
1330 | if (wbc->for_reclaim) | ||
1331 | f2fs_submit_merged_bio(sbi, NODE, WRITE); | ||
1332 | |||
1329 | return 0; | 1333 | return 0; |
1330 | 1334 | ||
1331 | redirty_out: | 1335 | redirty_out: |