HomeFreeBSD

vdev_file: unify FreeBSD and Linux implementations (#17046)

Description

vdev_file: unify FreeBSD and Linux implementations (#17046)

Kernel & userspace specifics are in zfs_file_os.c, so there's no
particular reason these have to be separate.

The one platform-specific part is in the Linux kernel part, to offload
flushes to a taskq if we're already inside a filesystem transaction.
This would be normally be an unsatisfying wart, but I'm intending to
remove this shortly, so I'm content to leave it gated for the moment.

Reviewed-by: Allan Jude <allan@klarasystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.

Signed-off-by: Rob Norris <rob.norris@klarasystems.com>

Details

Provenance
rob.norris_klarasystems.comAuthored on Thu, Feb 20, 6:42 PM
GitHub <noreply@github.com>Committed on Thu, Feb 20, 6:42 PM
Parents
rG6a2f7b38442b: Fix metaslab group fragmentation math (#17037)
Branches
Unknown
Tags
Unknown