]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - block/blk-mq-debugfs.c
blk-mq-debug: Introduce debugfs_create_files()
authorBart Van Assche <bart.vanassche@sandisk.com>
Wed, 1 Feb 2017 18:20:59 +0000 (10:20 -0800)
committerJens Axboe <axboe@fb.com>
Wed, 1 Feb 2017 19:23:00 +0000 (12:23 -0700)
commit72f2f8f6929cf680d42ca44f87b7d370aff94d85
tree8c4b1dcc04cac6411bc17662049e469aafa1adba
parent8c0f14eab8f138689e68b3498c0c5fd6ff20a948
blk-mq-debug: Introduce debugfs_create_files()

Replace the two debugfs_create_file() loops by a call to the new
debugfs_create_files() function. Add an empty element at the end
of the two attribute arrays such that the array size does not have
to be passed to debugfs_create_files().

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-debugfs.c