f2fs: avoid unneeded data copy in f2fs_ioc_move_range()
authorChao Yu <yuchao0@huawei.com>
Tue, 10 Nov 2020 01:24:36 +0000 (09:24 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 3 Dec 2020 06:00:20 +0000 (22:00 -0800)
commit3a1b9eaf727b4ab84ebf059e09c38fc6a53e5614
tree3ae23231f3cd67ecba7b01ee4a6fc45e72c6258e
parente1e8debec6564d0c355aab84c93de8e357f397bd
f2fs: avoid unneeded data copy in f2fs_ioc_move_range()

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: Chao Yu <yuchao0@huawei.com>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c