Skip to contentSkip to conversation

f2fs: avoid unneeded SetPageUptodate in f2fs_write_end

PATCH New Chao Yu 1 participant 1 message Jun 12, 2014

Subsystems (2)
lore
Share & tools
lore

Chao Yu

author
#0 lore raw

PATCH 2/3 f2fs: avoid unneeded SetPageUptodate in f2fs_write_end

We have already set page update in ->write_begin, so we should remove redundant SetPageUptodate in ->write_end.

---
 fs/f2fs/data.c |    1 -
 1 file changed, 1 deletion(-)
fs/f2fs/data.c +0 -1
index c1fb6dd..fd133cf 100644
@@ -1003,7 +1003,6 @@ static int f2fs_write_end(struct file *file,
 
 	trace_f2fs_write_end(inode, pos, len, copied);
 
-	SetPageUptodate(page);
 	set_page_dirty(page);
 
 	if (pos + copied > i_size_read(inode)) {
Signature · 10 lines
1.7.9.5



------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems