]> git.proxmox.com Git - mirror_zfs.git/commit
Linux 6.6 compat: fsync_bdev() has been removed in favor of sync_blockdev()
authorColeman Kane <ckane@colemankane.org>
Fri, 15 Sep 2023 05:07:03 +0000 (01:07 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 22 Sep 2023 01:38:40 +0000 (18:38 -0700)
commit7ac56b86cd69487fa018b6c92cb2cfb2f82fefba
tree94ba844306eeabf61e9a1b94aac33a2ad511760e
parent01d00dfa9e47dba025522790736fc34d65baf2f1
Linux 6.6 compat: fsync_bdev() has been removed in favor of sync_blockdev()

In Linux commit 560e20e4bf6484a0c12f9f3c7a1aa55056948e1e, the
fsync_bdev() function was removed in favor of sync_blockdev() to do
(roughly) the same thing, given the same input. This change
conditionally attempts to call sync_blockdev() if fsync_bdev() isn't
discovered during configure.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #15263
config/kernel-fsync-bdev.m4 [new file with mode: 0644]
config/kernel.m4
module/os/linux/zfs/zvol_os.c