]> git.proxmox.com Git - mirror_zfs.git/log
mirror_zfs.git
2 months agoZTS: CodeQL Action v3 update
Brian Behlendorf [Tue, 24 Sep 2024 00:07:29 +0000 (17:07 -0700)]
ZTS: CodeQL Action v3 update

Switch from v2 to v3 CodeQL Actions.  The v2 actions will no longer
be supported as of Dec '24 so we need to move to v3.  According to
the release notes they should be functionally equivalent.

    Note that the only difference between v2 and v3 of the CodeQL
    Action is the node version they support, ... For example 3.22.11
    was the first v3 release and is functionally identical to 2.22.11.

https://github.com/github/codeql-action/blob/main/CHANGELOG.md

Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #16560

2 months agolinux: log a scary warning when used with an experimental kernel
Rob Norris [Sun, 5 May 2024 04:04:57 +0000 (14:04 +1000)]
linux: log a scary warning when used with an experimental kernel

Since the person using the kernel may not be the person who built it,
show a warning at module load too, in case they aren't aware that it
might be weird.

Reviewed-by: Robert Evans <evansr@google.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #15986

2 months agoconfig/kernel: enforce maximum kernel version, with escape hatch
Rob Norris [Tue, 12 Mar 2024 09:38:12 +0000 (20:38 +1100)]
config/kernel: enforce maximum kernel version, with escape hatch

META lists the maximum kernel version we consider to be fully supported.
However, we don't enforce this.

Sometimes we ship experimental patches for a newer kernel than we're
ready to support or, less often, we compile just fine against a newer
kernel. Invariably, something doesn't quite work properly, and it's
difficult for users to understand that they're actually running against
a kernel that we're not yet ready to support.

This commit tries to improve this situation. First, it simply enforces
Linux-Maximum, by having configure bail out if you try to compile
against a newer version that.

Then, it adds the --enable-linux-experimental switch to configure. When
supplied, this disables enforcing the maximum version, allowing the user
to attempt to build against a kernel with version higher than
Linux-Maximum.

Finally, if the switch is supplied _and_ configure is run against a
higher kernel version, it shows a big warning message when configure
finishes, and defines HAVE_LINUX_EXPERIMENTAL for the build. This allows
us to add code to modify runtime behaviour as well.

Reviewed-by: Robert Evans <evansr@google.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #15986

2 months agoxattr dataset prop: change defaults to sa
George Melikov [Mon, 23 Sep 2024 16:50:48 +0000 (19:50 +0300)]
xattr dataset prop: change defaults to sa

It's the main recommendation to set xattr=sa
even in man pages, so let's set it by default.

xattr=sa don't use feature flag, so in the worst
case we'll have non-readable xattrs by other
non-openzfs platforms.

Non-overridden default `xattr` prop of existing pools
will automatically use `sa` after this commit too.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Melikov <mail@gmelikov.ru>
Closes #15147

2 months agoFix /proc/spl/kstat/simd on x86
Rich Ercolani [Sun, 22 Sep 2024 20:11:19 +0000 (16:11 -0400)]
Fix /proc/spl/kstat/simd on x86

Evidently while reworking it on aarch64, I broke it on x86 and
didn't notice.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Closes #16556

2 months agoZTS: Add additional exceptions
Brian Behlendorf [Sat, 21 Sep 2024 00:33:05 +0000 (17:33 -0700)]
ZTS: Add additional exceptions

The following tests have been observed to occasionally fail when
running under the CI.  Updated our exceptions list to track them.

Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #16553

2 months agoZTS: Retire "tmpfile_reason" exception
Brian Behlendorf [Sat, 21 Sep 2024 00:37:55 +0000 (17:37 -0700)]
ZTS: Retire "tmpfile_reason" exception

All supported Linux kernels, 4.18 and newer, provide O_TMPFILE.

Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #16553

2 months agoZTS: Retire "ci_reason" exceptions
Brian Behlendorf [Sat, 21 Sep 2024 00:10:11 +0000 (17:10 -0700)]
ZTS: Retire "ci_reason" exceptions

There is no longer be a need for the ci_reason exception with
the update CI GitHub Actions infrastruture.  Retire it.

Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #16553

2 months agoZTS: Fix Summary Page
Tino Reichardt [Sun, 22 Sep 2024 16:21:42 +0000 (20:21 +0400)]
ZTS: Fix Summary Page

The qemu-9-summary-page.sh script reads the file env.txt in the
first lines. When the module didn't build, this file was not copied
into the tarfile - causing the scipt to abort.

Fix: copy needed files into the tarfile in case of module build
failures. The fix ignores also empty tarfiles in future.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Closes #16555

2 months agoReduce and handle EAGAIN errors on AIO label reads
Alexander Motin [Sat, 21 Sep 2024 17:36:25 +0000 (13:36 -0400)]
Reduce and handle EAGAIN errors on AIO label reads

At least FreeBSD has a limit of 256 simultaneous AIO requests per
process. Attempt to issue more results in EAGAIN errors. Since we
issue 4 requests per disk/partition from 2xCPUs threads, it is
quite easy to reach that limit on large systems, that results in
random pool import failures.  It annoyed me for quite a while on
a system with 64 CPUs and 70+ partitioned disks.

This patch from one side limits the number of threads to avoid the
error, while from another should softly fall back to sync reads in
case of error.  It takes into account _SC_AIO_MAX as a system-wide
AIO limit and _SC_AIO_LISTIO_MAX as a closest value to per-process
limit.  The last not exactly right, but it is the best I found.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #16551

2 months agoAdd compatibility file for GRUB versions up to v2.06
Umer Saleem [Fri, 20 Sep 2024 17:19:57 +0000 (22:19 +0500)]
Add compatibility file for GRUB versions up to v2.06

GRUB is not able to detect ZFS pool if snaphsot of top level boot
pool is created. This issue is observed with GRUB versions up to
v2.06 if extensible_dataset feature is enabled on ZFS boot pool.

compatibility=grub2-2.06 would enable all read-only compatible
zpool features except extensible_dataset and other features that
depend on it.

The existing grub2 compatibility file is now renamed to grub2-2.12 to
reflect the appropriate grub2 version. grub2-2.12 lists all read-only
features that can be enabled on boot pool for grub2 with version 2.12
onwards.

A new symlink grub2 is created that currently points to the grub2-2.12
compatibility file.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Umer Saleem <usaleem@ixsystems.com>
Closes #13873
Closes #15261
Closes #15909

2 months agoZTS: Fix skipping over comment lines in zpool_create.shlib
Umer Saleem [Fri, 20 Sep 2024 18:06:19 +0000 (23:06 +0500)]
ZTS: Fix skipping over comment lines in zpool_create.shlib

In zpool_create.shlib, check_feature_set iterates over all features
mentioned in provided compatibility file to check if only those
features are enabled on the pool.

This commit fixes skipping over comment lines correctly. Otherwise,
the test case fails as comment lines are also treated as feature names
by check_feature_set function.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Umer Saleem <usaleem@ixsystems.com>
Closes #15909

2 months agoFreeBSD: restore zfs_znode_update_vfs()
Rob Norris [Sat, 21 Sep 2024 17:03:54 +0000 (03:03 +1000)]
FreeBSD: restore zfs_znode_update_vfs()

I accidentally removed this in c22d56e3e, and didn't notice because it
doesn't fail the build, but does fail to load into the kernel because it
can't link it.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16554

2 months agoAdd SIMD metadata in /proc on Linux follow up
Brian Behlendorf [Fri, 20 Sep 2024 22:48:12 +0000 (15:48 -0700)]
Add SIMD metadata in /proc on Linux follow up

This change accidentally broke the FreeBSD build due to
a conflict between the simd_stat_init()/simd_stat_fini()
macros on FreeBSD and the extern function prototype.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #16552

2 months agoAdd SIMD metadata in /proc on Linux
Rich Ercolani [Fri, 20 Sep 2024 15:16:44 +0000 (11:16 -0400)]
Add SIMD metadata in /proc on Linux

Too many times, people's performance problems have amounted to
"somehow your SIMD support isn't working", and determining that
at runtime is difficult to describe to people.

This adds a /proc/spl/kstat/zfs/simd node, which exposes
metadata about which instructions ZFS thinks it can use,
on AArch64 and x86_64 Linux, to make investigating things
like this much easier.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Closes #16530

2 months agoZTS: Remove functional tests via matrix
Tino Reichardt [Wed, 18 Sep 2024 21:24:12 +0000 (23:24 +0200)]
ZTS: Remove functional tests via matrix

This commit changes the workflow of the github actions.

- Ubuntu 20.04, 22.04, 24.04 will be tested via QEMU now
- remove unused scripts of this commit: b7bc334d1
- re-add the zloop standalone testings via zloop.yml

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Closes #16549

2 months agoZTS: Fix Test Summary page generation
Tino Reichardt [Wed, 18 Sep 2024 04:40:49 +0000 (06:40 +0200)]
ZTS: Fix Test Summary page generation

Fix that error: "cat /tmp/failed.txt: No such file or directory"

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Closes #16549

2 months agoarc_hdr_authenticate: make explicit error
George Melikov [Mon, 3 Jun 2024 17:40:25 +0000 (20:40 +0300)]
arc_hdr_authenticate: make explicit error

On compression we could be more explicit here for cases
where we can not recompress the data.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Co-authored-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: George Melikov <mail@gmelikov.ru>
Closes #9416

2 months agoZLE compression: don't use BPE_PAYLOAD_SIZE
George Melikov [Wed, 29 May 2024 20:50:25 +0000 (23:50 +0300)]
ZLE compression: don't use BPE_PAYLOAD_SIZE

ZLE compressor needs additional bytes to process
d_len argument efficiently.
Don't use BPE_PAYLOAD_SIZE as d_len with it
before we rework zle compressor somehow.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: George Melikov <mail@gmelikov.ru>
Closes #9416

2 months agozio_compress: introduce max size threshold
George Melikov [Tue, 10 Sep 2019 20:34:53 +0000 (23:34 +0300)]
zio_compress: introduce max size threshold

Now default compression is lz4, which can stop
compression process by itself on incompressible data.
If there are additional size checks -
we will only make our compressratio worse.

New usable compression thresholds are:
- less than BPE_PAYLOAD_SIZE (embedded_data feature);
- at least one saved sector.

Old 12.5% threshold is left to minimize affect
on existing user expectations of CPU utilization.

If data wasn't compressed - it will be saved as
ZIO_COMPRESS_OFF, so if we really need to recompress
data without ashift info and check anything -
we can just compress it with zero threshold.
So, we don't need a new feature flag here!

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: George Melikov <mail@gmelikov.ru>
Closes #9416

2 months agoZTS: use openssl for md5digest and sha256digest
Tino Reichardt [Thu, 19 Sep 2024 22:53:57 +0000 (00:53 +0200)]
ZTS: use openssl for md5digest and sha256digest

On larger files this should improve the speed.

Sample values of my system:

[mcmilk@xz]$ time dd if=/dev/zero bs=128k count=1k | sha256sum
254bcc3fc4f27172636df4bf32de9f107f620d559b20d760197e452b97453917  -
real    0m1,050s
user    0m0,985s
sys     0m0,153s

[mcmilk@xz]$ time dd if=/dev/zero bs=128k count=1k | openssl sha256 -r
254bcc3fc4f27172636df4bf32de9f107f620d559b20d760197e452b97453917 *stdin
real    0m0,254s
user    0m0,206s
sys     0m0,160s

I think cli_root/zdb/zdb_backup.ksh runs also an FreeBSD and I needed to
include the sysutils/coreutils package for the FreeBSD tests within the
QEMU patchset.

This could be reverted, when this pull request gets upstream

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Closes #16543

2 months agozfs_debug: specific variant for userspace
Rob Norris [Wed, 28 Aug 2024 12:28:58 +0000 (22:28 +1000)]
zfs_debug: specific variant for userspace

Just nice and simple, with room to grow.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #16492

2 months agozfs_znode: lift common code to a single shared file
Rob Norris [Wed, 28 Aug 2024 12:28:24 +0000 (22:28 +1000)]
zfs_znode: lift common code to a single shared file

For now, userspace has no znode implementation. Some of the property and
path handling code is used there though and is the same on all
platforms, so we only need a single copy of it.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #16492

2 months agozfs_racct: copy Linux implementation for userspace
Rob Norris [Wed, 28 Aug 2024 12:28:16 +0000 (22:28 +1000)]
zfs_racct: copy Linux implementation for userspace

The no-op is fine for both.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #16492

2 months agolibzpool: don't include trace.c
Rob Norris [Wed, 28 Aug 2024 12:27:27 +0000 (22:27 +1000)]
libzpool: don't include trace.c

It does nothing in userspace anyway.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #16492

2 months agovdev_label_os: copy Linux implementation for userspace
Rob Norris [Wed, 28 Aug 2024 12:27:13 +0000 (22:27 +1000)]
vdev_label_os: copy Linux implementation for userspace

The no-op is fine for both.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #16492

2 months agoarc_os: split userspace and Linux kernel code
Rob Norris [Wed, 28 Aug 2024 12:22:51 +0000 (22:22 +1000)]
arc_os: split userspace and Linux kernel code

The Linux arc_os.c carries userspace and kernel code, with very little
overlap between the two. This lifts the userspace parts out into a
separate arc_os.c for libzpool and removes it from the Linux side.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #16492

2 months agolinux/abd_os: remove kernel version check for compound page support
Rob Norris [Thu, 19 Sep 2024 02:55:48 +0000 (12:55 +1000)]
linux/abd_os: remove kernel version check for compound page support

All kernels we support have compound pages that work the way we would
like. However, this code is new and this knowledge was hard won, so I'd
like to leave the description and option there for a little while, even
if it can only be disabled with a recompile.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16545

2 months agolinux: remove kernel version checks for unsupported kernels
Rob Norris [Thu, 19 Sep 2024 03:03:47 +0000 (13:03 +1000)]
linux: remove kernel version checks for unsupported kernels

Following 2b069768a (#16479), anything gated on a kernel version before
4.18 can be always included/excluded.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16545

2 months agocityhash: replace invocations with specialized versions when possible
Shengqi Chen [Sat, 7 Sep 2024 14:07:14 +0000 (22:07 +0800)]
cityhash: replace invocations with specialized versions when possible

So that we can get actual benefit from last commit.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
Closes #16131
Closes #16483

2 months agozcommon: add specialized versions of cityhash4
Shengqi Chen [Sat, 7 Sep 2024 13:55:03 +0000 (21:55 +0800)]
zcommon: add specialized versions of cityhash4

Specializing cityhash4 on 32-bit architectures can reduce the size
of stack frames as well as instruction count. This is a tiny but
useful optimization, since some callers invoke it frequently.

When specializing into 1/2/3/4-arg versions, the stack usage
(in bytes) on some 32-bit arches are listed as follows:

- x86: 32, 32, 32, 40
- arm-v7a: 20, 20, 28, 36
- riscv: 0, 0, 0, 16
- power: 16, 16, 16, 32
- mipsel: 8, 8, 8, 24

And each actual argument (even if passing 0) contributes evenly
to the number of multiplication instructions generated:

- x86: 9, 12, 15 ,18
- arm-v7a: 6, 8, 10, 12
- riscv / power: 12, 18, 20, 24
- mipsel: 9, 12, 15, 19

On 64-bit architectures, the tendencies are similar. But both stack
sizes and instruction counts are significantly smaller thus negligible.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
Closes #16131
Closes #16483

2 months agodmu_objset: replace dnode_hash impl with cityhash4
Shengqi Chen [Tue, 27 Aug 2024 07:52:33 +0000 (15:52 +0800)]
dmu_objset: replace dnode_hash impl with cityhash4

As mentioned in PR #16131, replacing CRC-based hash with cityhash4
could slightly improve the performance by eliminating memory access.
Replacing algorightm is safe since the hash result is not persisted.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
Closes #16131
Closes #16483

2 months agoarcstat: add structural, types, states breakdown
Theera K. [Wed, 18 Sep 2024 18:44:18 +0000 (01:44 +0700)]
arcstat: add structural, types, states breakdown

Add ARC structural breakdown, ARC types breakdown, ARC states
breakdown similar to arc_summary.  Additional cleanups included.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Theera K. <tkittich@hotmail.com>
Closes #16509

2 months agoAvoid fault diagnosis if multiple vdevs have errors
Don Brady [Wed, 18 Sep 2024 18:36:48 +0000 (12:36 -0600)]
Avoid fault diagnosis if multiple vdevs have errors

When multiple drives are throwing errors, it is likely not
a drive failing but rather a failure above the drives, like
a controller.  The active cases context of the drive's peers
is now considered when making a diagnosis.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Don Brady <don.brady@klarasystems.com>
Closes #16531

2 months agozfs_file: implement zfs_file_deallocate for FreeBSD 14
Rob Norris [Sun, 1 Sep 2024 02:34:17 +0000 (12:34 +1000)]
zfs_file: implement zfs_file_deallocate for FreeBSD 14

FreeBSD 14 gained a `VOP_DEALLOCATE` VFS operation and a `fspacectl`
syscall to use it. At minimum, these zero the given region, and if the
underlying filesystem supports it, can make the region sparse. We can
use this to get TRIM-like behaviour for file vdevs.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16496

2 months agozfs_file: rename zfs_file_fallocate to zfs_file_deallocate
Rob Norris [Sun, 1 Sep 2024 02:31:56 +0000 (12:31 +1000)]
zfs_file: rename zfs_file_fallocate to zfs_file_deallocate

We only use it on a specific way: to punch a hole in (make sparse) a
region of a file, in order to implement TRIM-like behaviour.

So, call the op "deallocate", and move the Linux-style mode flags down
into the Linux implementation, since they're an implementation detail.

FreeBSD gets a no-op stub (for the moment).

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16496

2 months agoconfig: fix page_mapping test
Rob Norris [Mon, 16 Sep 2024 01:11:29 +0000 (11:11 +1000)]
config: fix page_mapping test

It always failed from "unused variable" warnings-errors. The resulting
`#define page_mapping(...)` happend to work because it always overrode
the kernel's function prototype, but that's brittle.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: fix various bits of missing output
Rob Norris [Mon, 5 Aug 2024 13:22:50 +0000 (23:22 +1000)]
config: fix various bits of missing output

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_GET_USER_PAGES_*
Rob Norris [Wed, 18 Sep 2024 12:20:47 +0000 (22:20 +1000)]
config: remove HAVE_GET_USER_PAGES_*

get_user_pages_unlocked() had stabilised by 4.9.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove test for unused s_d_op
Rob Norris [Mon, 26 Aug 2024 10:44:36 +0000 (20:44 +1000)]
config: remove test for unused s_d_op

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_MODE_LOOKUP_BDEV
Rob Norris [Mon, 26 Aug 2024 07:47:33 +0000 (17:47 +1000)]
config: remove HAVE_MODE_LOOKUP_BDEV

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_HAS_CAPABILITY
Rob Norris [Sun, 25 Aug 2024 06:00:01 +0000 (16:00 +1000)]
config: remove HAVE_HAS_CAPABILITY

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_BIO_SET_DEV
Rob Norris [Sat, 24 Aug 2024 12:11:04 +0000 (22:11 +1000)]
config: remove HAVE_BIO_SET_DEV

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: rework ZFS_GENHD_FL_*
Rob Norris [Sat, 24 Aug 2024 12:06:22 +0000 (22:06 +1000)]
config: rework ZFS_GENHD_FL_*

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_GENERIC_IO_ACCT_3ARG
Rob Norris [Sat, 24 Aug 2024 11:45:25 +0000 (21:45 +1000)]
config: remove HAVE_GENERIC_IO_ACCT_3ARG

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_VFSMOUNT_IOPS_GETATTR
Rob Norris [Sat, 24 Aug 2024 11:43:41 +0000 (21:43 +1000)]
config: remove HAVE_VFSMOUNT_IOPS_GETATTR

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_GENERIC_READLINK
Rob Norris [Sat, 24 Aug 2024 11:39:48 +0000 (21:39 +1000)]
config: remove HAVE_GENERIC_READLINK

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agolinux/zvol_os: convert END_IO macro to inline function
Rob Norris [Sat, 24 Aug 2024 11:37:30 +0000 (21:37 +1000)]
linux/zvol_os: convert END_IO macro to inline function

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_BLK_MQ
Rob Norris [Sat, 24 Aug 2024 11:33:35 +0000 (21:33 +1000)]
config: remove HAVE_BLK_MQ

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_BLK_QUEUE_FLAG_*
Rob Norris [Sat, 24 Aug 2024 11:26:50 +0000 (21:26 +1000)]
config: remove HAVE_BLK_QUEUE_FLAG_*

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove ZFS_GLOBAL_ZONE_PAGE_STATE and ZFS_ENUM_* generation
Rob Norris [Sat, 24 Aug 2024 11:24:59 +0000 (21:24 +1000)]
config: remove ZFS_GLOBAL_ZONE_PAGE_STATE and ZFS_ENUM_* generation

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove ZFS_GLOBAL_ZONE_PAGE_STATE
Rob Norris [Sat, 24 Aug 2024 11:17:57 +0000 (21:17 +1000)]
config: remove ZFS_GLOBAL_ZONE_PAGE_STATE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_WAIT_QUEUE_*
Rob Norris [Sat, 24 Aug 2024 11:14:34 +0000 (21:14 +1000)]
config: remove HAVE_WAIT_QUEUE_*

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_TMPFILE
Rob Norris [Sat, 24 Aug 2024 11:09:43 +0000 (21:09 +1000)]
config: remove HAVE_TMPFILE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_SUPER_SETUP_BDI_NAME
Rob Norris [Sat, 24 Aug 2024 11:05:51 +0000 (21:05 +1000)]
config: remove HAVE_SUPER_SETUP_BDI_NAME

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_SIGNAL_STOP
Rob Norris [Sat, 24 Aug 2024 11:01:04 +0000 (21:01 +1000)]
config: remove HAVE_SIGNAL_STOP

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_SET_SPECIAL_STATE
Rob Norris [Sat, 24 Aug 2024 10:59:56 +0000 (20:59 +1000)]
config: remove HAVE_SET_SPECIAL_STATE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_SCHED_SIGNAL_HEADER
Rob Norris [Sat, 24 Aug 2024 10:58:57 +0000 (20:58 +1000)]
config: remove HAVE_SCHED_SIGNAL_HEADER

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_PERCPU_COUNTER_ADD_BATCH
Rob Norris [Sat, 24 Aug 2024 10:57:43 +0000 (20:57 +1000)]
config: remove HAVE_PERCPU_COUNTER_ADD_BATCH

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_KVMALLOC
Rob Norris [Sat, 24 Aug 2024 10:57:00 +0000 (20:57 +1000)]
config: remove HAVE_KVMALLOC

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_KTIME_GET_RAW_TS64
Rob Norris [Sat, 24 Aug 2024 10:55:36 +0000 (20:55 +1000)]
config: remove HAVE_KTIME_GET_RAW_TS64

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_KTIME_GET_COARSE_REAL_TS64
Rob Norris [Sat, 24 Aug 2024 10:54:29 +0000 (20:54 +1000)]
config: remove HAVE_KTIME_GET_COARSE_REAL_TS64

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_KMEM_CACHE_CREATE_USERCOPY
Rob Norris [Sat, 24 Aug 2024 10:52:58 +0000 (20:52 +1000)]
config: remove HAVE_KMEM_CACHE_CREATE_USERCOPY

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_KERNEL_TIMER_SETUP
Rob Norris [Sat, 24 Aug 2024 10:49:42 +0000 (20:49 +1000)]
config: remove HAVE_KERNEL_TIMER_SETUP

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_KERNEL_TIMER_FUNCTION_TIMER_LIST
Rob Norris [Sat, 24 Aug 2024 10:48:01 +0000 (20:48 +1000)]
config: remove HAVE_KERNEL_TIMER_FUNCTION_TIMER_LIST

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_KERNEL_(READ|WRITE)_PPOS
Rob Norris [Sat, 24 Aug 2024 10:46:34 +0000 (20:46 +1000)]
config: remove HAVE_KERNEL_(READ|WRITE)_PPOS

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_INODE_TIMESPEC64_TIMES
Rob Norris [Sat, 24 Aug 2024 10:41:49 +0000 (20:41 +1000)]
config: remove HAVE_INODE_TIMESPEC64_TIMES

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_INODE_SET_IVERSION
Rob Norris [Sat, 24 Aug 2024 10:38:37 +0000 (20:38 +1000)]
config: remove HAVE_INODE_SET_IVERSION

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_FILEMAP_RANGE_HAS_PAGE
Rob Norris [Sat, 24 Aug 2024 10:36:14 +0000 (20:36 +1000)]
config: remove HAVE_FILEMAP_RANGE_HAS_PAGE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_FILE_FADVISE
Rob Norris [Sat, 24 Aug 2024 10:33:08 +0000 (20:33 +1000)]
config: remove HAVE_FILE_FADVISE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_BIO_BI_STATUS and bio error compat
Rob Norris [Sat, 24 Aug 2024 10:19:40 +0000 (20:19 +1000)]
config: remove HAVE_BIO_BI_STATUS and bio error compat

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_ACL_REFCOUNT
Rob Norris [Sat, 24 Aug 2024 10:08:27 +0000 (20:08 +1000)]
config: remove HAVE_ACL_REFCOUNT

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_[24]ARGS_VFS_GETATTR
Rob Norris [Sat, 24 Aug 2024 10:06:53 +0000 (20:06 +1000)]
config: remove HAVE_[24]ARGS_VFS_GETATTR

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_BLK_QUEUE_SECDISCARD
Rob Norris [Sun, 18 Aug 2024 01:41:00 +0000 (11:41 +1000)]
config: remove HAVE_BLK_QUEUE_SECDISCARD

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_RENAME2
Rob Norris [Sun, 18 Aug 2024 01:37:31 +0000 (11:37 +1000)]
config: remove HAVE_RENAME2

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_GENERIC_SETXATTR
Rob Norris [Fri, 16 Aug 2024 11:05:04 +0000 (21:05 +1000)]
config: remove HAVE_GENERIC_SETXATTR

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_FILE_AIO_FSYNC
Rob Norris [Fri, 16 Aug 2024 11:01:17 +0000 (21:01 +1000)]
config: remove HAVE_FILE_AIO_FSYNC

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove ZFS_GLOBAL_NODE_PAGE_STATE
Rob Norris [Fri, 16 Aug 2024 10:17:19 +0000 (20:17 +1000)]
config: remove ZFS_GLOBAL_NODE_PAGE_STATE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_XATTR_GET_DENTRY_INODE
Rob Norris [Fri, 16 Aug 2024 08:50:48 +0000 (18:50 +1000)]
config: remove HAVE_XATTR_GET_DENTRY_INODE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_XATTR_LIST_SIMPLE
Rob Norris [Fri, 16 Aug 2024 08:19:35 +0000 (18:19 +1000)]
config: remove HAVE_XATTR_LIST_SIMPLE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_XATTR_(GET|SET|LIST)_HANDLER
Rob Norris [Fri, 16 Aug 2024 08:17:39 +0000 (18:17 +1000)]
config: remove HAVE_XATTR_(GET|SET|LIST)_HANDLER

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_XATTR_HANDLER_NAME
Rob Norris [Fri, 16 Aug 2024 08:11:21 +0000 (18:11 +1000)]
config: remove HAVE_XATTR_HANDLER_NAME

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_VFS_ITERATE/HAVE_VFS_ITERATE_SHARED
Rob Norris [Fri, 16 Aug 2024 07:52:19 +0000 (17:52 +1000)]
config: remove HAVE_VFS_ITERATE/HAVE_VFS_ITERATE_SHARED

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_VFS_COPY_FILE_RANGE
Rob Norris [Fri, 16 Aug 2024 07:35:47 +0000 (17:35 +1000)]
config: remove HAVE_VFS_COPY_FILE_RANGE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_SUPER_USER_NS
Rob Norris [Fri, 16 Aug 2024 07:33:16 +0000 (17:33 +1000)]
config: remove HAVE_SUPER_USER_NS

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_REQ_OP_* and HAVE_REQ_*
Rob Norris [Fri, 16 Aug 2024 07:31:53 +0000 (17:31 +1000)]
config: remove HAVE_REQ_OP_* and HAVE_REQ_*

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_(GET|PUT)_LINK_DELAYED
Rob Norris [Fri, 16 Aug 2024 06:52:28 +0000 (16:52 +1000)]
config: remove HAVE_(GET|PUT)_LINK_DELAYED

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_POSIX_ACL_VALID_WITH_NS
Rob Norris [Fri, 16 Aug 2024 07:15:40 +0000 (17:15 +1000)]
config: remove HAVE_POSIX_ACL_VALID_WITH_NS

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_KERNEL_GET_ACL_HANDLE_CACHE
Rob Norris [Fri, 16 Aug 2024 07:00:43 +0000 (17:00 +1000)]
config: remove HAVE_KERNEL_GET_ACL_HANDLE_CACHE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_INODE_LOCK_SHARED
Rob Norris [Fri, 16 Aug 2024 06:57:45 +0000 (16:57 +1000)]
config: remove HAVE_INODE_LOCK_SHARED

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_IN_COMPAT_SYSCALL
Rob Norris [Fri, 16 Aug 2024 06:55:55 +0000 (16:55 +1000)]
config: remove HAVE_IN_COMPAT_SYSCALL

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_GROUP_INFO_GID
Rob Norris [Fri, 16 Aug 2024 06:54:44 +0000 (16:54 +1000)]
config: remove HAVE_GROUP_INFO_GID

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_CURRENT_TIME
Rob Norris [Fri, 16 Aug 2024 06:50:01 +0000 (16:50 +1000)]
config: remove HAVE_CURRENT_TIME

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_CPU_HOTPLUG
Rob Norris [Fri, 16 Aug 2024 06:25:17 +0000 (16:25 +1000)]
config: remove HAVE_CPU_HOTPLUG

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_BLK_QUEUE_WRITE_CACHE/HAVE_BLK_QUEUE_FLUSH
Rob Norris [Fri, 16 Aug 2024 06:23:25 +0000 (16:23 +1000)]
config: remove HAVE_BLK_QUEUE_WRITE_CACHE/HAVE_BLK_QUEUE_FLUSH

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_BIO_BI_OPF
Rob Norris [Fri, 16 Aug 2024 06:05:21 +0000 (16:05 +1000)]
config: remove HAVE_BIO_BI_OPF

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_1ARG_SUBMIT_BIO
Rob Norris [Fri, 16 Aug 2024 05:45:56 +0000 (15:45 +1000)]
config: remove HAVE_1ARG_SUBMIT_BIO

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_GET_LINK_COOKIE
Rob Norris [Mon, 5 Aug 2024 12:19:15 +0000 (22:19 +1000)]
config: remove HAVE_GET_LINK_COOKIE

As far as I can tell, this never made it to a real release. It was
introduced in 6b2553918d8b and removed a couple of weeks later in
fceef393a538. This was all part of the development of what would become
4.5. So I assume this was OpenZFS chasing upstream development at the
time.

    fceef393a538 viro 2015-12-30 switch ->get_link() to delayed_call, kill ->put_link()
    cd3417c8fc95 viro 2015-12-29 kill free_page_put_link()
    0d0def49d05a viro 2015-12-08 teach nfs_get_link() to work in RCU mode
    1a384eaac265 viro 2015-12-08 teach proc_self_get_link()/proc_thread_self_get_link() to work in RCU mode
    6a6c99049635 viro 2015-12-08 teach shmem_get_link() to work in RCU mode
    d3883d4f9344 viro 2015-12-08 teach page_get_link() to work in RCU mode
    6b2553918d8b viro 2015-12-08 replace ->follow_link() with new method that could stay in RCU mode

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_RENAME2_OPERATIONS_WRAPPER
Rob Norris [Mon, 5 Aug 2024 09:56:01 +0000 (19:56 +1000)]
config: remove HAVE_RENAME2_OPERATIONS_WRAPPER

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_VFS_FILE_OPERATIONS_EXTEND
Rob Norris [Mon, 5 Aug 2024 09:53:26 +0000 (19:53 +1000)]
config: remove HAVE_VFS_FILE_OPERATIONS_EXTEND

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479