]> git.karo-electronics.de Git - linux-beck.git/commit
f2fs: use PGP_LOCK to check its truncation
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 30 Mar 2016 18:25:31 +0000 (11:25 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 15 Apr 2016 15:49:47 +0000 (08:49 -0700)
commit4a6de50d5408cdc699588119e2338e580adc2b73
tree1c5647c9e3d6fd09b4b15282aa3d926f0d030297
parent675f10bde6cc3874632a8f684df2a8a2a8ace76e
f2fs: use PGP_LOCK to check its truncation

Previously, after trylock_page is succeeded, it doesn't check its mapping.
In order to fix that, we can just give PGP_LOCK to pagecache_get_page.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/node.c