All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] f2fs: modify for accurate fggc node io stat
@ 2017-10-25  3:05 Yunlei He
  2017-10-25  5:51 ` Chao Yu
  0 siblings, 1 reply; 2+ messages in thread
From: Yunlei He @ 2017-10-25  3:05 UTC (permalink / raw)
  To: jaegeuk, linux-f2fs-devel, yuchao0; +Cc: ning.jia, Yunlei He

modify for accurate fggc node io stat

Signed-off-by: Yunlei He <heyunlei@huawei.com>
---
 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..f4f2894 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] f2fs: modify for accurate fggc node io stat
  2017-10-25  3:05 [PATCH v2] f2fs: modify for accurate fggc node io stat Yunlei He
@ 2017-10-25  5:51 ` Chao Yu
  0 siblings, 0 replies; 2+ messages in thread
From: Chao Yu @ 2017-10-25  5:51 UTC (permalink / raw)
  To: Yunlei He, jaegeuk, linux-f2fs-devel; +Cc: ning.jia

On 2017/10/25 11:05, Yunlei He wrote:
> modify for accurate fggc node io stat
> 
> Signed-off-by: Yunlei He <heyunlei@huawei.com>
> ---
>  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..f4f2894 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))

There are some compile errors, and please don't make line being over 80 column
as much as possible to keep code style consistent.

Thanks,

>  			unlock_page(node_page);
>  		goto release_page;
>  	} else {
> 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-25  5:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-25  3:05 [PATCH v2] f2fs: modify for accurate fggc node io stat Yunlei He
2017-10-25  5:51 ` Chao Yu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.