]> git.karo-electronics.de Git - linux-beck.git/commitdiff
f2fs: don't need to sync node page at every time
authorJaegeuk Kim <jaegeuk@kernel.org>
Mon, 25 Jan 2016 18:46:58 +0000 (10:46 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 23 Feb 2016 00:07:23 +0000 (16:07 -0800)
In write_end, we don't need to sync inode page at every time.
Instead, we can expect f2fs_write_inode will update later.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c

index a11a8c789cd5edecd1fc66a487b03c0f220c689c..24c65e9823b7c70f14b62e52e9e30b032a437426 100644 (file)
@@ -1627,7 +1627,6 @@ static int f2fs_write_end(struct file *file,
        if (pos + copied > i_size_read(inode)) {
                i_size_write(inode, pos + copied);
                mark_inode_dirty(inode);
-               update_inode_page(inode);
        }
 
        f2fs_put_page(page, 1);