diff options
author | Christoph Hellwig <hch@lst.de> | 2020-03-27 09:07:17 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-03-27 09:50:05 -0600 |
commit | 348e114bbd4dce430eae70f01a04c8fc259b4cf1 (patch) | |
tree | 01e4cd9990bbae209fd2cde121070990acd20a77 /include/linux/blkdev.h | |
parent | c6a564ffadc9105880329710164ee493f0de103c (diff) | |
download | linux-348e114bbd4dce430eae70f01a04c8fc259b4cf1.tar.gz linux-348e114bbd4dce430eae70f01a04c8fc259b4cf1.tar.bz2 linux-348e114bbd4dce430eae70f01a04c8fc259b4cf1.zip |
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.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 53a1325efbc3..e8defd718d62 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1697,6 +1697,7 @@ struct block_device_operations { void (*swap_slot_free_notify) (struct block_device *, unsigned long); int (*report_zones)(struct gendisk *, sector_t sector, unsigned int nr_zones, report_zones_cb cb, void *data); + char *(*devnode)(struct gendisk *disk, umode_t *mode); struct module *owner; const struct pr_ops *pr_ops; }; |