block: remove the revalidate_disk method
No implementations left. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20210308074550.422714-4-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
4bae7afdd7
commit
0f00b82e54
@@ -469,7 +469,6 @@ prototypes::
|
|||||||
int (*direct_access) (struct block_device *, sector_t, void **,
|
int (*direct_access) (struct block_device *, sector_t, void **,
|
||||||
unsigned long *);
|
unsigned long *);
|
||||||
void (*unlock_native_capacity) (struct gendisk *);
|
void (*unlock_native_capacity) (struct gendisk *);
|
||||||
int (*revalidate_disk) (struct gendisk *);
|
|
||||||
int (*getgeo)(struct block_device *, struct hd_geometry *);
|
int (*getgeo)(struct block_device *, struct hd_geometry *);
|
||||||
void (*swap_slot_free_notify) (struct block_device *, unsigned long);
|
void (*swap_slot_free_notify) (struct block_device *, unsigned long);
|
||||||
|
|
||||||
@@ -484,7 +483,6 @@ ioctl: no
|
|||||||
compat_ioctl: no
|
compat_ioctl: no
|
||||||
direct_access: no
|
direct_access: no
|
||||||
unlock_native_capacity: no
|
unlock_native_capacity: no
|
||||||
revalidate_disk: no
|
|
||||||
getgeo: no
|
getgeo: no
|
||||||
swap_slot_free_notify: no (see below)
|
swap_slot_free_notify: no (see below)
|
||||||
======================= ===================
|
======================= ===================
|
||||||
|
|||||||
@@ -1259,9 +1259,6 @@ rescan:
|
|||||||
if (disk_part_scan_enabled(disk) ||
|
if (disk_part_scan_enabled(disk) ||
|
||||||
!(disk->flags & GENHD_FL_REMOVABLE))
|
!(disk->flags & GENHD_FL_REMOVABLE))
|
||||||
set_capacity(disk, 0);
|
set_capacity(disk, 0);
|
||||||
} else {
|
|
||||||
if (disk->fops->revalidate_disk)
|
|
||||||
disk->fops->revalidate_disk(disk);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_capacity(disk)) {
|
if (get_capacity(disk)) {
|
||||||
|
|||||||
@@ -1870,7 +1870,6 @@ struct block_device_operations {
|
|||||||
unsigned int (*check_events) (struct gendisk *disk,
|
unsigned int (*check_events) (struct gendisk *disk,
|
||||||
unsigned int clearing);
|
unsigned int clearing);
|
||||||
void (*unlock_native_capacity) (struct gendisk *);
|
void (*unlock_native_capacity) (struct gendisk *);
|
||||||
int (*revalidate_disk) (struct gendisk *);
|
|
||||||
int (*getgeo)(struct block_device *, struct hd_geometry *);
|
int (*getgeo)(struct block_device *, struct hd_geometry *);
|
||||||
int (*set_read_only)(struct block_device *bdev, bool ro);
|
int (*set_read_only)(struct block_device *bdev, bool ro);
|
||||||
/* this callback is with swap_lock and sometimes page table lock held */
|
/* this callback is with swap_lock and sometimes page table lock held */
|
||||||
|
|||||||
Reference in New Issue
Block a user