f2fs: reorganize f2fs_vm_page_mkwrite
authorNamjae Jeon <namjae.jeon@samsung.com>
Sun, 28 Apr 2013 00:04:18 +0000 (09:04 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 28 May 2013 06:03:02 +0000 (15:03 +0900)
commit9851e6e18943f2537acb44a4eb51c6958e8dbc3e
tree0d7b1320573fccb84bf7275f817c52728cd0a38e
parent145b04e5ed66033b5a3d315394dd1384e3f5f70a
f2fs: reorganize f2fs_vm_page_mkwrite

Few things can be changed in the default mkwrite function
1) Make file_update_time at the start before acquiring any lock
2) the condition page_offset(page) >= i_size_read(inode) should be
 changed to page_offset(page) > i_size_read
3) Move wait_on_page_writeback.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/file.c