History

block: move the ->devnode callback to struct block_device_operations

There really isn't any good reason to stash a method directly into struct gendisk. Move it together with the other block device operations.

Christoph Hellwig committed 6 years ago

Commit 348e1141 parent c6a564f4 files · +9 −9Browse files

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

Unified · Split

include/linux/blkdev.h+1−0
@@ -1697,6 +1697,7 @@ struct block_device_operations { · 1696 unmodified lines
16971697 void (*swap_slot_free_notify) (struct block_device *, unsigned long);
16981698 int (*report_zones)(struct gendisk *, sector_t sector,
16991699 unsigned int nr_zones, report_zones_cb cb, void *data);
1700+ char *(*devnode)(struct gendisk *disk, umode_t *mode);
17001701 struct module *owner;
17011702 const struct pr_ops *pr_ops;
17021703 };