]> git.karo-electronics.de Git - linux-beck.git/commitdiff
f2fs: submit bio for node blocks in the reclaim path
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 19 Nov 2014 18:54:48 +0000 (10:54 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 20 Nov 2014 06:49:32 +0000 (22:49 -0800)
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>
fs/f2fs/node.c

index 478ce1eacd54aba739aca4b392e6913c6010925d..dbf49cc8029726dbc73cb8de37e9b3f6f7cb9a87 100644 (file)
@@ -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: