Blktrace: bail out early if block debugfs is not configured
authorLiu Bo <bo.liu@linux.alibaba.com>
Fri, 29 Jun 2018 01:56:08 +0000 (09:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Nov 2020 09:29:02 +0000 (10:29 +0100)
commit595290ccd13a8af9463a02b447860ca12b4e3254
tree45b84aa02d9fe8852a5a1a37fd2fdbe5f342cbb9
parent4592235990566fc74d364f54f6e77ee5d4b443f9
Blktrace: bail out early if block debugfs is not configured

commit e1a413245a564683697a3d02ec197b72cf009b89 upstream.

Since @blk_debugfs_root couldn't be configured dynamically, we can
save a few memory allocation if it's not there.

Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
[bwh: Cherry-picked for 4.14 to ease backporting a later fix]
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/blktrace.c