Commit 52f80337 authored by Jaegeuk Kim's avatar Jaegeuk Kim

f2fs: don't need to sync node page at every time

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: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 2049d4fc
...@@ -1627,7 +1627,6 @@ static int f2fs_write_end(struct file *file, ...@@ -1627,7 +1627,6 @@ static int f2fs_write_end(struct file *file,
if (pos + copied > i_size_read(inode)) { if (pos + copied > i_size_read(inode)) {
i_size_write(inode, pos + copied); i_size_write(inode, pos + copied);
mark_inode_dirty(inode); mark_inode_dirty(inode);
update_inode_page(inode);
} }
f2fs_put_page(page, 1); f2fs_put_page(page, 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment