aboutsummaryrefslogtreecommitdiffstats
path: root/module/os/linux/zfs/zfs_vnops_os.c
diff options
context:
space:
mode:
authorColeman Kane <[email protected]>2023-08-01 11:32:38 -0400
committerGitHub <[email protected]>2023-08-01 08:32:38 -0700
commit3b8e318b7737fa40daf6abbc06ba31cd6ae8d572 (patch)
treefb1b3283982cbaf80266d2819058d7205a7d3cf7 /module/os/linux/zfs/zfs_vnops_os.c
parentb35374fd6474603170fd9a3c7503da6eb13ac712 (diff)
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 <[email protected]> Reviewed-by: Brian Atkinson <[email protected]> Signed-off-by: Coleman Kane <[email protected]> Closes #15101
Diffstat (limited to 'module/os/linux/zfs/zfs_vnops_os.c')
0 files changed, 0 insertions, 0 deletions