]> git.proxmox.com Git - mirror_zfs.git/commit - module/os/linux/zfs/zpl_file_range.c
linux: implement filesystem-side copy/clone functions for EL7
authorRob Norris <rob.norris@klarasystems.com>
Sun, 25 Jun 2023 10:50:19 +0000 (20:50 +1000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 24 Jul 2023 23:37:04 +0000 (16:37 -0700)
commit6b0a4be5fec60eb774c5393a0093150c608b7496
treeb647c7557043435e7335e11be6caa52a6292d972
parent9927f219f1e9f4ee886d426190500abf5b1d602e
linux: implement filesystem-side copy/clone functions for EL7

Redhat have backported copy_file_range and clone_file_range to the EL7
kernel using an "extended file operations" wrapper structure. This
connects all that up to let cloning work there too.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Kay Pedersen <mail@mkwg.de>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Sponsored-By: OpenDrives Inc.
Sponsored-By: Klara Inc.
Closes #15050
config/kernel-vfs-extended-file_range.m4 [new file with mode: 0644]
config/kernel.m4
include/os/linux/zfs/sys/zpl.h
module/os/linux/zfs/zfs_vfsops.c
module/os/linux/zfs/zfs_znode.c
module/os/linux/zfs/zpl_file.c
module/os/linux/zfs/zpl_file_range.c