From 012785ef352d6eee983e087adad71692b3aeb354 Mon Sep 17 00:00:00 2001 From: Masaki Matsushita Date: Sat, 12 Sep 2020 13:36:53 +0900 Subject: Check copy_file_range(2) is actually supported. see also: https://gitlab.com/gitlab-org/gitlab/-/issues/218999#note_363225872 --- io.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'io.c') diff --git a/io.c b/io.c index 0d6e217857..3cf0285717 100644 --- a/io.c +++ b/io.c @@ -11074,10 +11074,6 @@ nogvl_copy_stream_wait_write(struct copy_stream_struct *stp) return 0; } -#if defined HAVE_COPY_FILE_RANGE || (defined __linux__ && defined __NR_copy_file_range) -# define USE_COPY_FILE_RANGE -#endif - #ifdef USE_COPY_FILE_RANGE static ssize_t -- cgit v1.2.3