mirror_zfs/include
Brian Behlendorf 1c7b3eaf87 RHEL 6.4 compat, fallocate()
In the upstream kernel the FALLOC_FL_PUNCH_HOLE #define was
introduced after the fallocate() function was moved from the
inode_operations to the file_operations structure.  Therefore,
the SPL code assumed that if FALLOC_FL_PUNCH_HOLE was defined
it was safe to use f_ops->fallocate().

Unfortunately, the RHEL6.4 kernel has only backported the
FALLOC_FL_PUNCH_HOLE #define and not the fallocate() change.

To address this compatibility issue the spl_filp_fallocate()
helper function was added to properly detect which interface
is available.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2013-01-08 09:53:13 -08:00
..
fs Remove autotools products 2012-08-27 11:46:23 -07:00
linux RHEL 6.4 compat, fallocate() 2013-01-08 09:53:13 -08:00
rpc Remove autotools products 2012-08-27 11:46:23 -07:00
sharefs Remove autotools products 2012-08-27 11:46:23 -07:00
sys Add cv_wait_io() to account I/O time 2013-01-07 10:29:26 -08:00
util Remove autotools products 2012-08-27 11:46:23 -07:00
vm Remove autotools products 2012-08-27 11:46:23 -07:00
Makefile.am Add the release component to headers 2012-01-18 11:06:26 -08:00
spl-ctl.h Public Release Prep 2010-05-17 15:18:00 -07:00
spl-debug.h Add missing spl_debug_* helpers 2012-02-09 16:41:46 -08:00
spl-device.h Public Release Prep 2010-05-17 15:18:00 -07:00
spl-trace.h Split <sys/debug.h> header 2010-07-20 13:29:35 -07:00
splat-ctl.h Add linux compatibility tests 2011-06-21 14:02:46 -07:00
strings.h Public Release Prep 2010-05-17 15:18:00 -07:00
unistd.h Public Release Prep 2010-05-17 15:18:00 -07:00