summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-07-07 10:06:23 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2016-07-08 10:33:35 -0700
commita2ee0a300344a6da76186129b078113354fe13d2 (patch)
treea0532b49de8d2e03d211bb6d89f3668de132ed02 /fs/f2fs
parentc24a0fd655431e9f14c8a8754d0a6cc247f9e9e5 (diff)
downloadlinux-stable-a2ee0a300344a6da76186129b078113354fe13d2.tar.gz
linux-stable-a2ee0a300344a6da76186129b078113354fe13d2.tar.bz2
linux-stable-a2ee0a300344a6da76186129b078113354fe13d2.zip
f2fs: move i_size_write in f2fs_write_end
We don't need to do i_size_write under page lock. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index b6fd5bd05e41..20b30162e7b4 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -1685,11 +1685,11 @@ static int f2fs_write_end(struct file *file,
trace_f2fs_write_end(inode, pos, len, copied);
set_page_dirty(page);
+ f2fs_put_page(page, 1);
if (pos + copied > i_size_read(inode))
f2fs_i_size_write(inode, pos + copied);
- f2fs_put_page(page, 1);
f2fs_update_time(F2FS_I_SB(inode), REQ_TIME);
return copied;
}