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)
commitcc5c516df028b221d94c65c47c5ae8d20f61b6f9
tree1114eeab9f60729e53f9af2766760c31267649ac
parent8b9ab62662048a3274361c7e5f64037c2c133e2c
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