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
1781 int (*compat_ioctl) (struct block_device *, fmode_t, unsigned, unsigned long);1781 int (*compat_ioctl) (struct block_device *, fmode_t, unsigned, unsigned long);
1782 unsigned int (*check_events) (struct gendisk *disk,1782 unsigned int (*check_events) (struct gendisk *disk,
1783 unsigned int clearing);1783 unsigned int clearing);
1784 /* ->media_changed() is DEPRECATED, use ->check_events() instead */
1785 int (*media_changed) (struct gendisk *);
1786 void (*unlock_native_capacity) (struct gendisk *);1784 void (*unlock_native_capacity) (struct gendisk *);
1787 int (*revalidate_disk) (struct gendisk *);1785 int (*revalidate_disk) (struct gendisk *);
1788 int (*getgeo)(struct block_device *, struct hd_geometry *);1786 int (*getgeo)(struct block_device *, struct hd_geometry *);