]> git.baikalelectronics.ru Git - kernel.git/commit
block: move the ->devnode callback to struct block_device_operations
authorChristoph Hellwig <hch@lst.de>
Fri, 27 Mar 2020 08:07:17 +0000 (09:07 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 27 Mar 2020 15:50:05 +0000 (09:50 -0600)
commitee2df920bb4787a292a3187fa3770dfe7fa8c4cf
tree01e4cd9990bbae209fd2cde121070990acd20a77
parente3138d47115d48be7bf9eaeae998a189d73cf884
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>
block/genhd.c
drivers/block/pktcdvd.c
include/linux/blkdev.h
include/linux/genhd.h