Notable upstream pull request merges:
#15024 Add missed DMU_PROJECTUSED_OBJECT prefetch
#15029 Do not request data L1 buffers on scan prefetch
#15036 FreeBSD: catch up to __FreeBSD_version 1400093
#15039 Fix raw receive with different indirect block size
#15047 FreeBSD: Fix build on stable/13 after 1302506
#15049 Fix the ZFS checksum error histograms with larger record sizes
#15052 Reduce bloat in ereport.fs.zfs.checksum events
#15056 Avoid extra snprintf() in dsl_deadlist_merge()
#15061 Ignore pool ashift property during vdev attachment
#15063 Don't panic if setting vdev properties is unsupported for this
vdev type
#15067 spa_min_alloc should be GCD, not min
#15071 Add explicit prefetches to bpobj_iterate()
#15072 Adjust prefetch parameters
#15079 set autotrim default to 'off' everywhere
#15080 ZIL: Fix config lock deadlock
#15088 metaslab: tuneable to better control force ganging
#15096 Avoid waiting in dmu_sync_late_arrival()
#15097 BRT should return EOPNOTSUPP
#15103 Remove zl_issuer_lock from zil_suspend()
#15107 Remove fastwrite mechanism
#15113 libzfs: sendrecv: send_progress_thread: handle SIGINFO/SIGUSR1
#15122 ZIL: Second attempt to reduce scope of zl_issuer_lock
#15129 zpool_vdev_remove() should handle EALREADY error return
#15132 ZIL: Replay blocks without next block pointer
#15148 zfs_clone_range should return descriptive error codes
#15153 ZIL: Avoid dbuf_read() before dmu_sync()
#15161 Make zoned/jailed zfsprops(7) make more sense
#15172 copy_file_range: fix fallback when source create on same txg
#15180 Update outdated assertion from zio_write_compress
#15216 Relax error reporting in zpool import and zpool split
#15227 ZIL: Tune some assertions
#15228 ZIL: Revert zl_lock scope reduction
#15233 ZIL: Change ZIOs issue order
Obtained from: OpenZFS
OpenZFS commit: 32949f2560
Approved by: re (gjb)
164 lines
4.9 KiB
Text
164 lines
4.9 KiB
Text
dnl #
|
|
dnl # The *_file_range APIs have a long history:
|
|
dnl #
|
|
dnl # 2.6.29: BTRFS_IOC_CLONE and BTRFS_IOC_CLONE_RANGE ioctl introduced
|
|
dnl # 3.12: BTRFS_IOC_FILE_EXTENT_SAME ioctl introduced
|
|
dnl #
|
|
dnl # 4.5: copy_file_range() syscall introduced, added to VFS
|
|
dnl # 4.5: BTRFS_IOC_CLONE and BTRFS_IOC_CLONE_RANGE renamed to FICLONE ands
|
|
dnl # FICLONERANGE, added to VFS as clone_file_range()
|
|
dnl # 4.5: BTRFS_IOC_FILE_EXTENT_SAME renamed to FIDEDUPERANGE, added to VFS
|
|
dnl # as dedupe_file_range()
|
|
dnl #
|
|
dnl # 4.20: VFS clone_file_range() and dedupe_file_range() replaced by
|
|
dnl # remap_file_range()
|
|
dnl #
|
|
dnl # 5.3: VFS copy_file_range() expected to do its own fallback,
|
|
dnl # generic_copy_file_range() added to support it
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_VFS_COPY_FILE_RANGE], [
|
|
ZFS_LINUX_TEST_SRC([vfs_copy_file_range], [
|
|
#include <linux/fs.h>
|
|
|
|
static ssize_t test_copy_file_range(struct file *src_file,
|
|
loff_t src_off, struct file *dst_file, loff_t dst_off,
|
|
size_t len, unsigned int flags) {
|
|
(void) src_file; (void) src_off;
|
|
(void) dst_file; (void) dst_off;
|
|
(void) len; (void) flags;
|
|
return (0);
|
|
}
|
|
|
|
static const struct file_operations
|
|
fops __attribute__ ((unused)) = {
|
|
.copy_file_range = test_copy_file_range,
|
|
};
|
|
],[])
|
|
])
|
|
AC_DEFUN([ZFS_AC_KERNEL_VFS_COPY_FILE_RANGE], [
|
|
AC_MSG_CHECKING([whether fops->copy_file_range() is available])
|
|
ZFS_LINUX_TEST_RESULT([vfs_copy_file_range], [
|
|
AC_MSG_RESULT([yes])
|
|
AC_DEFINE(HAVE_VFS_COPY_FILE_RANGE, 1,
|
|
[fops->copy_file_range() is available])
|
|
],[
|
|
AC_MSG_RESULT([no])
|
|
])
|
|
])
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_VFS_GENERIC_COPY_FILE_RANGE], [
|
|
ZFS_LINUX_TEST_SRC([generic_copy_file_range], [
|
|
#include <linux/fs.h>
|
|
], [
|
|
struct file *src_file __attribute__ ((unused)) = NULL;
|
|
loff_t src_off __attribute__ ((unused)) = 0;
|
|
struct file *dst_file __attribute__ ((unused)) = NULL;
|
|
loff_t dst_off __attribute__ ((unused)) = 0;
|
|
size_t len __attribute__ ((unused)) = 0;
|
|
unsigned int flags __attribute__ ((unused)) = 0;
|
|
generic_copy_file_range(src_file, src_off, dst_file, dst_off,
|
|
len, flags);
|
|
])
|
|
])
|
|
AC_DEFUN([ZFS_AC_KERNEL_VFS_GENERIC_COPY_FILE_RANGE], [
|
|
AC_MSG_CHECKING([whether generic_copy_file_range() is available])
|
|
ZFS_LINUX_TEST_RESULT_SYMBOL([generic_copy_file_range],
|
|
[generic_copy_file_range], [fs/read_write.c], [
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(HAVE_VFS_GENERIC_COPY_FILE_RANGE, 1,
|
|
[generic_copy_file_range() is available])
|
|
],[
|
|
AC_MSG_RESULT(no)
|
|
])
|
|
])
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_VFS_CLONE_FILE_RANGE], [
|
|
ZFS_LINUX_TEST_SRC([vfs_clone_file_range], [
|
|
#include <linux/fs.h>
|
|
|
|
static int test_clone_file_range(struct file *src_file,
|
|
loff_t src_off, struct file *dst_file, loff_t dst_off,
|
|
u64 len) {
|
|
(void) src_file; (void) src_off;
|
|
(void) dst_file; (void) dst_off;
|
|
(void) len;
|
|
return (0);
|
|
}
|
|
|
|
static const struct file_operations
|
|
fops __attribute__ ((unused)) = {
|
|
.clone_file_range = test_clone_file_range,
|
|
};
|
|
],[])
|
|
])
|
|
AC_DEFUN([ZFS_AC_KERNEL_VFS_CLONE_FILE_RANGE], [
|
|
AC_MSG_CHECKING([whether fops->clone_file_range() is available])
|
|
ZFS_LINUX_TEST_RESULT([vfs_clone_file_range], [
|
|
AC_MSG_RESULT([yes])
|
|
AC_DEFINE(HAVE_VFS_CLONE_FILE_RANGE, 1,
|
|
[fops->clone_file_range() is available])
|
|
],[
|
|
AC_MSG_RESULT([no])
|
|
])
|
|
])
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_VFS_DEDUPE_FILE_RANGE], [
|
|
ZFS_LINUX_TEST_SRC([vfs_dedupe_file_range], [
|
|
#include <linux/fs.h>
|
|
|
|
static int test_dedupe_file_range(struct file *src_file,
|
|
loff_t src_off, struct file *dst_file, loff_t dst_off,
|
|
u64 len) {
|
|
(void) src_file; (void) src_off;
|
|
(void) dst_file; (void) dst_off;
|
|
(void) len;
|
|
return (0);
|
|
}
|
|
|
|
static const struct file_operations
|
|
fops __attribute__ ((unused)) = {
|
|
.dedupe_file_range = test_dedupe_file_range,
|
|
};
|
|
],[])
|
|
])
|
|
AC_DEFUN([ZFS_AC_KERNEL_VFS_DEDUPE_FILE_RANGE], [
|
|
AC_MSG_CHECKING([whether fops->dedupe_file_range() is available])
|
|
ZFS_LINUX_TEST_RESULT([vfs_dedupe_file_range], [
|
|
AC_MSG_RESULT([yes])
|
|
AC_DEFINE(HAVE_VFS_DEDUPE_FILE_RANGE, 1,
|
|
[fops->dedupe_file_range() is available])
|
|
],[
|
|
AC_MSG_RESULT([no])
|
|
])
|
|
])
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_VFS_REMAP_FILE_RANGE], [
|
|
ZFS_LINUX_TEST_SRC([vfs_remap_file_range], [
|
|
#include <linux/fs.h>
|
|
|
|
static loff_t test_remap_file_range(struct file *src_file,
|
|
loff_t src_off, struct file *dst_file, loff_t dst_off,
|
|
loff_t len, unsigned int flags) {
|
|
(void) src_file; (void) src_off;
|
|
(void) dst_file; (void) dst_off;
|
|
(void) len; (void) flags;
|
|
return (0);
|
|
}
|
|
|
|
static const struct file_operations
|
|
fops __attribute__ ((unused)) = {
|
|
.remap_file_range = test_remap_file_range,
|
|
};
|
|
],[])
|
|
])
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_VFS_REMAP_FILE_RANGE], [
|
|
AC_MSG_CHECKING([whether fops->remap_file_range() is available])
|
|
ZFS_LINUX_TEST_RESULT([vfs_remap_file_range], [
|
|
AC_MSG_RESULT([yes])
|
|
AC_DEFINE(HAVE_VFS_REMAP_FILE_RANGE, 1,
|
|
[fops->remap_file_range() is available])
|
|
],[
|
|
AC_MSG_RESULT([no])
|
|
])
|
|
])
|