Linux 6.5 compat: use disk_check_media_change when it exists
commitc0f075c06b914b02e175f8de670b7b440630c7bc
authorColeman Kane <ckane@colemankane.org>
Tue, 1 Aug 2023 15:32:38 +0000 (1 11:32 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 19 Sep 2023 15:50:01 +0000 (19 08:50 -0700)
tree42f2e9699462957630fa8f63179b8f15cc6eeec9
parent6c2fc5691615e478d1360101b3ec22906e8ce7a8
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
include/os/linux/kernel/linux/blkdev_compat.h