]> git.baikalelectronics.ru Git - kernel.git/commit
block: simplify blktrace sysfs attribute creation
authorChristoph Hellwig <hch@lst.de>
Tue, 28 Jun 2022 17:18:45 +0000 (19:18 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 28 Jun 2022 17:32:42 +0000 (11:32 -0600)
commitd3905f5b25aa1ab9944daef01adf9516d63429ad
tree1114eeab9f60729e53f9af2766760c31267649ac
parent61b0e54f06c1e39452c77d9e463ceb3e43820c26
block: simplify blktrace sysfs attribute creation

Add the trace attributes to the default gendisk attributes, just like
we already do for partitions.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20220628171850.1313069-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-sysfs.c
block/blk.h
block/genhd.c
block/partitions/core.c
include/linux/blktrace_api.h
kernel/trace/blktrace.c