f2fs: avoid unneeded data copy in f2fs_ioc_move_range()
stable inclusion from stable-5.10.38 commit 23ecfe7f2c1f399eda6233809f9b8f550f7c7c38 bugzilla: 51875 CVE: NA -------------------------------- [ Upstream commit 3a1b9eaf ] Fields in struct f2fs_move_range won't change in f2fs_ioc_move_range(), let's avoid copying this structure's data to userspace. Signed-off-by: NChao Yu <yuchao0@huawei.com> Reviewed-by: NEric Biggers <ebiggers@google.com> 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: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录