Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Commit 51688f9

Browse files
authored
file_operations: Restore copy_file_range (#240)
This was a copy/paste mistake, copy_file_range (unlike clone_file_range / dedupe_file_range) still exists in current kernels and so it needs only a lower bound. Fixes: 240393d ("Add backwards compatbility down to kernel 4.4 (fixes #199)")
1 parent fb18729 commit 51688f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/file_operations.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ impl FileOperationsVtable {
150150
#[cfg(all(kernel_4_5_0_or_greater, not(kernel_4_20_0_or_greater)))]
151151
clone_file_range: None,
152152
compat_ioctl: None,
153-
#[cfg(all(kernel_4_5_0_or_greater, not(kernel_4_20_0_or_greater)))]
153+
#[cfg(kernel_4_5_0_or_greater)]
154154
copy_file_range: None,
155155
#[cfg(all(kernel_4_5_0_or_greater, not(kernel_4_20_0_or_greater)))]
156156
dedupe_file_range: None,

0 commit comments

Comments
 (0)