Linux 3.5 compat, iops->truncate_range() removed
The vmtruncate_range() support has been removed from the kernel in favor of using the fallocate method in the file_operations table. Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #784
This commit is contained in:
parent
756c3e5a9c
commit
ea1fdf46e2
|
@ -108,6 +108,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -85,6 +85,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -88,6 +88,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -88,6 +88,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -88,6 +88,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -88,6 +88,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -88,6 +88,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -88,6 +88,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -88,6 +88,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -88,6 +88,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
dnl #
|
||||
dnl # 3.5.0 API change
|
||||
dnl # torvalds/linux@17cf28afea2a1112f240a3a2da8af883be024811 removed
|
||||
dnl # truncate_range(). The file hole punching functionality is now
|
||||
dnl # provided by fallocate()
|
||||
dnl #
|
||||
AC_DEFUN([ZFS_AC_KERNEL_TRUNCATE_RANGE], [
|
||||
AC_MSG_CHECKING([whether iops->truncate_range() exists])
|
||||
ZFS_LINUX_TRY_COMPILE([
|
||||
#include <linux/fs.h>
|
||||
void truncate_range(struct inode *inode, loff_t start,
|
||||
loff_t end) { return; }
|
||||
static struct inode_operations iops __attribute__ ((unused)) = {
|
||||
.truncate_range = truncate_range,
|
||||
};
|
||||
],[
|
||||
],[
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_INODE_TRUNCATE_RANGE, 1,
|
||||
[iops->truncate_range() exists])
|
||||
],[
|
||||
AC_MSG_RESULT(no)
|
||||
])
|
||||
])
|
|
@ -47,6 +47,7 @@ AC_DEFUN([ZFS_AC_CONFIG_KERNEL], [
|
|||
ZFS_AC_KERNEL_NR_CACHED_OBJECTS
|
||||
ZFS_AC_KERNEL_FREE_CACHED_OBJECTS
|
||||
ZFS_AC_KERNEL_FALLOCATE
|
||||
ZFS_AC_KERNEL_TRUNCATE_RANGE
|
||||
ZFS_AC_KERNEL_CREATE_UMODE_T
|
||||
ZFS_AC_KERNEL_AUTOMOUNT
|
||||
ZFS_AC_KERNEL_ENCODE_FH_WITH_INODE
|
||||
|
|
|
@ -16135,6 +16135,75 @@ fi
|
|||
|
||||
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
|
||||
$as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
|
||||
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.c
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
|
||||
|
||||
#include <linux/fs.h>
|
||||
void truncate_range(struct inode *inode, loff_t start,
|
||||
loff_t end) { return; }
|
||||
static struct inode_operations iops __attribute__ ((unused)) = {
|
||||
.truncate_range = truncate_range,
|
||||
};
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
|
||||
_ACEOF
|
||||
|
||||
|
||||
rm -Rf build && mkdir -p build
|
||||
echo "obj-m := conftest.o" >build/Makefile
|
||||
if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define HAVE_INODE_TRUNCATE_RANGE 1
|
||||
_ACEOF
|
||||
|
||||
|
||||
else
|
||||
$as_echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
|
||||
|
||||
|
||||
fi
|
||||
|
||||
rm -Rf build
|
||||
|
||||
|
||||
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
|
||||
$as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
|
||||
|
||||
|
@ -22732,6 +22801,75 @@ fi
|
|||
|
||||
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
|
||||
$as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
|
||||
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.c
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
|
||||
|
||||
#include <linux/fs.h>
|
||||
void truncate_range(struct inode *inode, loff_t start,
|
||||
loff_t end) { return; }
|
||||
static struct inode_operations iops __attribute__ ((unused)) = {
|
||||
.truncate_range = truncate_range,
|
||||
};
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
|
||||
_ACEOF
|
||||
|
||||
|
||||
rm -Rf build && mkdir -p build
|
||||
echo "obj-m := conftest.o" >build/Makefile
|
||||
if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define HAVE_INODE_TRUNCATE_RANGE 1
|
||||
_ACEOF
|
||||
|
||||
|
||||
else
|
||||
$as_echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
|
||||
|
||||
|
||||
fi
|
||||
|
||||
rm -Rf build
|
||||
|
||||
|
||||
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
|
||||
$as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
|
||||
|
||||
|
|
|
@ -86,6 +86,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -85,6 +85,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -85,6 +85,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -86,6 +86,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -86,6 +86,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -85,6 +85,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -86,6 +86,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -85,6 +85,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -87,6 +87,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -85,6 +85,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -85,6 +85,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -85,6 +85,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -328,6 +328,7 @@ out:
|
|||
return (error);
|
||||
}
|
||||
|
||||
#ifdef HAVE_INODE_TRUNCATE_RANGE
|
||||
static void
|
||||
zpl_truncate_range(struct inode* ip, loff_t start, loff_t end)
|
||||
{
|
||||
|
@ -354,6 +355,7 @@ zpl_truncate_range(struct inode* ip, loff_t start, loff_t end)
|
|||
|
||||
crfree(cr);
|
||||
}
|
||||
#endif /* HAVE_INODE_TRUNCATE_RANGE */
|
||||
|
||||
#ifdef HAVE_INODE_FALLOCATE
|
||||
static long
|
||||
|
@ -379,7 +381,9 @@ const struct inode_operations zpl_inode_operations = {
|
|||
.getxattr = generic_getxattr,
|
||||
.removexattr = generic_removexattr,
|
||||
.listxattr = zpl_xattr_list,
|
||||
#ifdef HAVE_INODE_TRUNCATE_RANGE
|
||||
.truncate_range = zpl_truncate_range,
|
||||
#endif /* HAVE_INODE_TRUNCATE_RANGE */
|
||||
#ifdef HAVE_INODE_FALLOCATE
|
||||
.fallocate = zpl_fallocate,
|
||||
#endif /* HAVE_INODE_FALLOCATE */
|
||||
|
|
|
@ -86,6 +86,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -86,6 +86,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -86,6 +86,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -86,6 +86,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -86,6 +86,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -85,6 +85,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -86,6 +86,7 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-set-nlink.m4 \
|
||||
$(top_srcdir)/config/kernel-show-options.m4 \
|
||||
$(top_srcdir)/config/kernel-shrink.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-range.m4 \
|
||||
$(top_srcdir)/config/kernel-truncate-setsize.m4 \
|
||||
$(top_srcdir)/config/kernel-xattr-handler.m4 \
|
||||
$(top_srcdir)/config/kernel.m4 \
|
||||
|
|
|
@ -162,6 +162,9 @@
|
|||
/* fops->fallocate() exists */
|
||||
#undef HAVE_INODE_FALLOCATE
|
||||
|
||||
/* iops->truncate_range() exists */
|
||||
#undef HAVE_INODE_TRUNCATE_RANGE
|
||||
|
||||
/* insert_inode_locked() is available */
|
||||
#undef HAVE_INSERT_INODE_LOCKED
|
||||
|
||||
|
|
Loading…
Reference in New Issue