f2fs: avoid unneeded SetPageUptodate in f2fs_write_end
authorChao Yu <chao2.yu@samsung.com>
Thu, 12 Jun 2014 05:25:01 +0000 (13:25 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 9 Jul 2014 21:04:24 +0000 (14:04 -0700)
We have already set page update in ->write_begin, so we should remove redundant
SetPageUptodate in ->write_end.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c

index f8cf619..2eb2764 100644 (file)
@@ -1016,7 +1016,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)) {