]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0775c529618bc616cd526e89c1bf98db71e3ad6b
tree2834b57b958d2b444d40aa8144ac60ee739507ac
parent4ea415a150cdadfac6a1a995b03ea78a67456faf
f2fs: check truncation of mapping after lock_page

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>
fs/f2fs/checkpoint.c
fs/f2fs/data.c
fs/f2fs/file.c
fs/f2fs/node.c