--- xfsprogs-3.1.10/io/Makefile +++ xfsprogs-3.1.10-nosyncfilerange/io/Makefile @@ -58,11 +58,6 @@ CFILES += inject.c resblks.c LCFLAGS += -DHAVE_INJECT -DHAVE_RESBLKS endif -ifeq ($(HAVE_SYNC_FILE_RANGE),yes) -CFILES += sync_file_range.c -LCFLAGS += -DHAVE_SYNC_FILE_RANGE -endif - ifeq ($(ENABLE_READLINE),yes) LLDLIBS += $(LIBREADLINE) $(LIBTERMCAP) endif --- xfsprogs-3.1.10/io/init.c +++ xfsprogs-3.1.10-nosyncfilerange/io/init.c @@ -78,7 +78,6 @@ init_commands(void) sendfile_init(); shutdown_init(); truncate_init(); - sync_range_init(); } static int s xfsprogs-3.1.10/io/init.o and xfsprogs-3.1.10-nosyncfilerange/io/init.o differ s xfsprogs-3.1.10/io/inject.o and xfsprogs-3.1.10-nosyncfilerange/io/inject.o differ --- xfsprogs-3.1.10/io/io.h +++ xfsprogs-3.1.10-nosyncfilerange/io/io.h @@ -144,8 +144,3 @@ extern void fiemap_init(void); #define fiemap_init() do { } while (0) #endif -#ifdef HAVE_SYNC_FILE_RANGE -extern void sync_range_init(void); -#else -#define sync_range_init() do { } while (0) -#endif s xfsprogs-3.1.10/io/mmap.o and xfsprogs-3.1.10-nosyncfilerange/io/mmap.o differ s xfsprogs-3.1.10/io/parent.o and xfsprogs-3.1.10-nosyncfilerange/io/parent.o differ