f2fs: check truncation of mapping after lock_page
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Fri, 26 Apr 2013 02:55:17 +0000 (11:55 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 29 Apr 2013 02:19:32 +0000 (11:19 +0900)
We call lock_page when we need to update a page after readpage.
Between grab and lock page, the page can be truncated by other thread.
So, we should check the page after lock_page whether it was truncated or not.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>

No differences found