From: Jaegeuk Kim Date: Thu, 7 Jul 2016 17:06:23 +0000 (-0700) Subject: f2fs: move i_size_write in f2fs_write_end X-Git-Tag: v4.8-rc1~145^2~15 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a2ee0a300344a6da76186129b078113354fe13d2;p=karo-tx-linux.git 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 --- 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; }