From: Yunlei He Subject: [PATCH] f2fs: modify for accurate fggc node io stat Date: Tue, 24 Oct 2017 18:34:08 +0800 Message-ID: <1508841248-13825-1-git-send-email-heyunlei@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.89) (envelope-from ) id 1e6wa4-0007Xq-8D for linux-f2fs-devel@lists.sourceforge.net; Tue, 24 Oct 2017 10:37:08 +0000 Received: from szxga05-in.huawei.com ([45.249.212.191]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1e6wa2-0005UA-8Q for linux-f2fs-devel@lists.sourceforge.net; Tue, 24 Oct 2017 10:37:08 +0000 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: jaegeuk@kernel.org, linux-f2fs-devel@lists.sourceforge.net, yuchao0@huawei.com Cc: ning.jia@huawei.com, Yunlei He modify for accurate fggc node io stat Signed-off-by: Yunlei He --- fs/f2fs/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index f44d837..daa9086 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -1259,7 +1259,7 @@ void move_node_page(struct page *node_page, int gc_type) if (!clear_page_dirty_for_io(node_page)) goto out_page; - if (NODE_MAPPING(sbi)->a_ops->writepage(node_page, &wbc)) + if (__write_node_page(page, false, NULL, wbc, false, FS_GC_NODE_IO)) unlock_page(node_page); goto release_page; } else { -- 2.7.4 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot