fix Implement ksu_wrapper_dedupe_file_range function

Added a new function for deduplicating file ranges.
This commit is contained in:
小 小w
2025-11-18 10:26:30 +08:00
committed by GitHub
parent 722980e221
commit 0b35c9ae1d

View File

@@ -286,6 +286,7 @@ static int ksu_wrapper_clone_file_range(struct file *file_in, loff_t pos_in,
} }
return -EINVAL; return -EINVAL;
} }
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
static int ksu_wrapper_dedupe_file_range(struct file *src_file, loff_t loff, static int ksu_wrapper_dedupe_file_range(struct file *src_file, loff_t loff,
struct file *dst_file, loff_t dst_loff, u64 len) { struct file *dst_file, loff_t dst_loff, u64 len) {