Skip to content

Commit

Permalink
Remove useless configure checking.
Browse files Browse the repository at this point in the history
Reverts a remarkably dumb part of
4e789e1.

"Yo Dawg, we heard you like configure checks so we put a #define in
your #define so you can #ifdef while you #ifdef"
  • Loading branch information
dechamps committed Sep 20, 2012
1 parent 906e314 commit 464818e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 28 deletions.
23 changes: 0 additions & 23 deletions config/user-falloc_fl_punch_hole.m4

This file was deleted.

1 change: 0 additions & 1 deletion config/user.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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
])
5 changes: 1 addition & 4 deletions lib/libzpool/kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@
#include <sys/utsname.h>
#include <sys/time.h>
#include <sys/systeminfo.h>

#ifdef HAVE_USER_FALLOC_FL_PUNCH_HOLE
#include <linux/falloc.h>
#endif

/*
* Emulation of kernel services in userland.
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 464818e

Please sign in to comment.