f2fs: remove redundant code from f2fs_write_begin
authorNamjae Jeon <namjae.jeon@samsung.com>
Sun, 4 Aug 2013 14:10:28 +0000 (23:10 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 6 Aug 2013 13:00:35 +0000 (22:00 +0900)
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.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Pankaj Kumar <pankaj.km@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/data.c

index 027341cacd2b6694a9645080a9151811874606d4..f458883af815b56e8850210284615fe4f17fcf0b 100644 (file)
@@ -634,9 +634,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);