f2fs: fix to unmap pages from userspace process in punch_hole()
stable inclusion from stable-5.10.67 commit 4b71928e5c547e774cb4767da0959f9970a4f0f0 bugzilla: 182619 https://gitee.com/openeuler/kernel/issues/I4EWO7 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=4b71928e5c547e774cb4767da0959f9970a4f0f0 -------------------------------- [ Upstream commit c8dc3047 ] We need to unmap pages from userspace process before removing pagecache in punch_hole() like we did in f2fs_setattr(). Similar change: commit 5e44f8c3 ("ext4: hole-punch use truncate_pagecache_range") Fixes: fbfa2cc5 ("f2fs: add file operations") Signed-off-by: NChao Yu <chao@kernel.org> Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: NWeilong Chen <chenweilong@huawei.com> Signed-off-by: NChen Jun <chenjun102@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录