]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Linux 6.5 compat: use disk_check_media_change when it exists
authorColeman Kane <ckane@colemankane.org>
Tue, 1 Aug 2023 15:32:38 +0000 (11:32 -0400)
committerTony Hutter <hutter2@llnl.gov>
Mon, 11 Sep 2023 22:18:13 +0000 (15:18 -0700)
commit3ff9e4f8ac23bfc3798edec5e79956bc6cc063e0
tree8eebbec6a41a6998269cc0156cc608e9bbf0e83f
parent211868b5d01bb21c0792abaa2dc24642dad16012
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