diff --git a/config/user-falloc_fl_punch_hole.m4 b/config/user-falloc_fl_punch_hole.m4 deleted file mode 100644 index 038e590ac7f8..000000000000 --- a/config/user-falloc_fl_punch_hole.m4 +++ /dev/null @@ -1,23 +0,0 @@ -dnl # -dnl # Check if the libc supports file hole punching. -dnl # -AC_DEFUN([ZFS_AC_CONFIG_USER_FALLOC_FL_PUNCH_HOLE], [ - AC_MSG_CHECKING([whether FALLOC_FL_PUNCH_HOLE is defined in userspace]) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM( - [ - #include - ], - [ - #ifndef FALLOC_FL_PUNCH_HOLE - #error FALLOC_FL_PUNCH_HOLE is undefined - #endif - ])], - [ - AC_DEFINE([HAVE_USER_FALLOC_FL_PUNCH_HOLE], 1, - [Define to 1 if the userspace provides FALLOC_FL_PUNCH_HOLE]) - AC_MSG_RESULT([yes]) - ], - [ - AC_MSG_RESULT([no]) - ]) -]) diff --git a/config/user.m4 b/config/user.m4 index 2b9c997b0bbf..4fcef3d5b64f 100644 --- a/config/user.m4 +++ b/config/user.m4 @@ -11,5 +11,4 @@ AC_DEFUN([ZFS_AC_CONFIG_USER], [ ZFS_AC_CONFIG_USER_LIBSELINUX ZFS_AC_CONFIG_USER_FRAME_LARGER_THAN ZFS_AC_CONFIG_USER_STACK_GUARD - ZFS_AC_CONFIG_USER_FALLOC_FL_PUNCH_HOLE ]) diff --git a/lib/libzpool/kernel.c b/lib/libzpool/kernel.c index e9e1703e3ced..b69f62a9106d 100644 --- a/lib/libzpool/kernel.c +++ b/lib/libzpool/kernel.c @@ -37,10 +37,7 @@ #include #include #include - -#ifdef HAVE_USER_FALLOC_FL_PUNCH_HOLE #include -#endif /* * Emulation of kernel services in userland. @@ -716,7 +713,7 @@ fop_space(vnode_t *vp, int cmd, struct flock *bfp, int flag, * device, but in practice that never happens, so don't bother. */ -#ifndef HAVE_USER_FALLOC_FL_PUNCH_HOLE +#ifndef FALLOC_FL_PUNCH_HOLE return EOPNOTSUPP;