f2fs: reorganize f2fs_vm_page_mkwrite
authorNamjae Jeon <namjae.jeon@samsung.com>
Sun, 28 Apr 2013 00:04:18 +0000 (09:04 +0900)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:43:46 +0000 (11:43 +0900)
commitf5542c6492f0cf5adeb350cb6657679bfa9b95d6
tree12b1a0308614007a504ad58541a9f1175f1dea44
parentac9c8379c8ddf9b710b832d4c826801085594f03
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