]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Mon, 20 May 2013 07:05:44 +0000 (16:05 +0900)
commitcf62008f0e702f68a06f5074ebc1ca6d0d6dbf0a
treeba8fd7a3128599fdcac2b3e563b68d33f1665be9
parent05a862107d71414002d1bb2b3ddb49e722acf7d4
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