Skip to contentSkip to conversation

f2fs: modify for accurate fggc node io stat

PATCH Superseded Yunlei He 2 participants 2 messages Oct 25, 2017 F2FS file system

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Yunlei He

author
#0 lore raw

PATCH v2 1/1 f2fs: modify for accurate fggc node io stat

modify for accurate fggc node io stat

---
 fs/f2fs/node.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/node.c +1 -1
index f44d837..f4f2894 100644
@@ -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 {
Signature · 6 lines
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
#1 lore raw
Quoted 12 lines · Yunlei He

modify for accurate fggc node io stat

---
 fs/f2fs/node.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/node.c +0 -0
index f44d837..f4f2894 100644

fs/f2fs/node.c void move_node_page(struct page *node_page, int gc_type) · line 1262

Quoted 5 lines
fs/f2fs/node.c +1 -1
@@ -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,

fs/f2fs/node.c void move_node_page(struct page *node_page, int gc_type) · line 1265

Quoted 4 lines
fs/f2fs/node.c +0 -0
 			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