We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebf7747 commit 7e98944Copy full SHA for 7e98944
src/internal/poll/copy_file_range_linux.go
@@ -15,10 +15,7 @@ var isKernelVersionGE53 = sync.OnceValue(func() bool {
15
// copy_file_range(2) is broken in various ways on kernels older than 5.3,
16
// see https://go.dev/issue/42400 and
17
// https://man7.org/linux/man-pages/man2/copy_file_range.2.html#VERSIONS
18
- if major > 5 || (major == 5 && minor >= 3) {
19
- return true
20
- }
21
- return false
+ return major > 5 || (major == 5 && minor >= 3)
22
})
23
24
const maxCopyFileRangeRound = 1 << 30
0 commit comments