HomeFreeBSD

Linux 6.5 compat: use disk_check_media_change when it exists

Description

Linux 6.5 compat: use disk_check_media_change when it exists

When disk_check_media_change() exists, then define
zfs_check_media_change() to simply call disk_check_media_change() on
the bd_disk member of its argument. Since disk_check_media_change()
is newer than when revalidate_disk was present in bops, we should
be able to safely do this via a macro, instead of recreating a new
implementation of the inline function that forces revalidation.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #15101

Details

Provenance
Coleman Kane <ckane@colemankane.org>Authored on Aug 1 2023, 3:32 PM
Tony Hutter <hutter2@llnl.gov>Committed on Sep 11 2023, 10:18 PM
Parents
rG211868b5d01b: Linux 6.5 compat: register_sysctl_table removed
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG3ff9e4f8ac23: Linux 6.5 compat: use disk_check_media_change when it exists (authored by Coleman Kane <ckane@colemankane.org>).Sep 11 2023, 10:18 PM