Skip to contentSkip to conversation

f2fs: delete unnecessary wait for page writeback

PATCH Superseded Yunlei He 2 participants 2 messages Feb 2, 2016 F2FS file system

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Yunlei He

author
#0 lore raw

PATCH 1/1 f2fs: delete unnecessary wait for page writeback

no need to wait inline file page writeback for no one use it, so this patch delete unnecessary wait.

---
 fs/f2fs/inline.c | 2 --
 1 file changed, 2 deletions(-)
fs/f2fs/inline.c +0 -2
index fc4d298..ec44640 100644
@@ -124,8 +124,6 @@ int f2fs_convert_inline_page(struct dnode_of_data *dn, struct page *page)
 	if (err)
 		return err;
 
-	f2fs_wait_on_page_writeback(page, DATA, true);
-
 	if (PageUptodate(page))
 		goto no_update;
 
Signature · 9 lines
1.9.1


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
maintainer
#1 lore raw

Hi Yunlei,

Quoted 13 lines · Yunlei He

no need to wait inline file page writeback for no one use it, so this patch delete unnecessary wait.

---
 fs/f2fs/inline.c | 2 --
 1 file changed, 2 deletions(-)
fs/f2fs/inline.c +0 -0
index fc4d298..ec44640 100644

fs/f2fs/inline.c int f2fs_convert_inline_page(struct dnode_of_data *dn, struct page *page) · line 128

Quoted 5 lines
fs/f2fs/inline.c +0 -2
@@ -124,8 +124,6 @@ int f2fs_convert_inline_page(struct dnode_of_data *dn, struct page *page)
 	if (err)
 		return err;
 
-	f2fs_wait_on_page_writeback(page, DATA, true);
-

I agreed.
But, I worried about any corner case.
How about adding f2fs_bug_on() here?

Thanks,

Quoted 5 lines
fs/f2fs/inline.c +0 -0
 	if (PageUptodate(page))
 		goto no_update;
 
Signature · 1 line
1.9.1

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140