Skip to contentSkip to conversation

f2fs: remove redundant code from f2fs_write_begin

PATCH In review Namjae Jeon 1 participant 1 message Aug 4, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/3 f2fs: remove redundant code from f2fs_write_begin

From: Namjae Jeon <[email protected]>

This code is being used for nobh_write_end() function. But since now f2fs_write_end function is added so there is no need for this code.

---
 fs/f2fs/data.c |    3 ---
 1 file changed, 3 deletions(-)
fs/f2fs/data.c +0 -3
index 19cd7c6..ae1558e 100644
@@ -635,9 +635,6 @@ static int f2fs_write_begin(struct file *file, struct address_space *mapping,
 	int err = 0;
 	int ilock;
 
-	/* for nobh_write_end */
-	*fsdata = NULL;
-
 	f2fs_balance_fs(sbi);
 repeat:
 	page = grab_cache_page_write_begin(mapping, index, flags);
Signature · 1 line
1.7.9.5