null_blk: add module parameters for 4 options
authorVincent Fu <vincent.fu@samsung.com>
Fri, 8 Jul 2022 17:49:49 +0000 (17:49 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:14:50 +0000 (17:14 -0600)
commit058efe000b31ce9c63bca02a33b67780b0ef5b41
treeb8903aafe78fb95b727a58174aa0955c2f8bb34f
parentce11bdf946176d48c2c0d36b56f0bf368c177298
null_blk: add module parameters for 4 options

Add as module parameters these options:

memory_backed
discard
mbps
cache_size

Previously these could only be set via configfs.

Still missing is bad_blocks.

The kernel test robot found a documentation formatting issue in v1 of
this patch.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
Link: https://lore.kernel.org/r/20220708174943.87787-2-vincent.fu@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Documentation/block/null_blk.rst
drivers/block/null_blk/main.c