History

md: switch to ->check_events for media change notifications

md is the last driver using the legacy media_changed method. Switch it over to (not so) new ->clear_events approach, which also removes the need for the ->revalidate_disk method.

Christoph Hellwig committed 6 years ago

Commit a564e231 parent 568f2704 files · +10 −23Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/blkdev.h+0−2
@@ -1781,8 +1781,6 @@ struct block_device_operations { · 1780 unmodified lines
17811781 int (*compat_ioctl) (struct block_device *, fmode_t, unsigned, unsigned long);
17821782 unsigned int (*check_events) (struct gendisk *disk,
17831783 unsigned int clearing);
1784− /* ->media_changed() is DEPRECATED, use ->check_events() instead */
1785− int (*media_changed) (struct gendisk *);
17861784 void (*unlock_native_capacity) (struct gendisk *);
17871785 int (*revalidate_disk) (struct gendisk *);
17881786 int (*getgeo)(struct block_device *, struct hd_geometry *);