]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: fix to unmap pages from userspace process in punch_hole()
authorChao Yu <chao@kernel.org>
Wed, 25 Aug 2021 11:34:19 +0000 (19:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 10:26:26 +0000 (12:26 +0200)
commitfe484f7bf2ad79c1af986dad76be77681605b59e
tree23758e1b1c5accc4ccee761c2d95347e1f9e96c1
parent92679e47f99ca9615b18f224d3580645009c79c3
f2fs: fix to unmap pages from userspace process in punch_hole()

[ Upstream commit c8dc3047c48540183744f959412d44b08c5435e1 ]

We need to unmap pages from userspace process before removing pagecache
in punch_hole() like we did in f2fs_setattr().

Similar change:
commit 8af3524e4898 ("ext4: hole-punch use truncate_pagecache_range")

Fixes: c2ff561c5743 ("f2fs: add file operations")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/file.c