Re: [PATCH 3/9] blk-mq-debugfs: get rid of a bunch of boilerplate

2017-05-03 Thread Omar Sandoval
On Wed, May 03, 2017 at 08:51:11PM +, Bart Van Assche wrote: > On Wed, 2017-05-03 at 12:18 -0700, Omar Sandoval wrote: > > From: Omar Sandoval > > > > A large part of blk-mq-debugfs.c is file_operations and seq_file > > boilerplate. This sucks as is but will suck even more

[PATCH 3/9] blk-mq-debugfs: get rid of a bunch of boilerplate

2017-05-03 Thread Omar Sandoval
From: Omar Sandoval A large part of blk-mq-debugfs.c is file_operations and seq_file boilerplate. This sucks as is but will suck even more when schedulers can define their own debugfs entries. Factor it all out into a single blk_mq_debugfs_fops which multiplexes as needed. We