]> git.baikalelectronics.ru Git - kernel.git/commit
block: move sysfs methods shared by disks and partitions to genhd.c
authorChristoph Hellwig <hch@lst.de>
Tue, 24 Mar 2020 07:25:13 +0000 (08:25 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 24 Mar 2020 13:57:07 +0000 (07:57 -0600)
commit1dd48f6dfeedd310086d71dd9cb2b3768c509019
tree9c23b9cb8c1538219ad6656abbef12ce26f307ea
parent1a1a21459412c52ec7d7090faaed72954c4f2287
block: move sysfs methods shared by disks and partitions to genhd.c

Move the sysfs _show methods that are used both on the full disk and
partition nodes to genhd.c instead of hiding them in the partitioning
code.  Also move the declaration for these methods to block/blk.h so
that we don't expose them to drivers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk.h
block/genhd.c
block/partition-generic.c
include/linux/genhd.h