]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
null_blk: Fix the description of the cache_size module argument
authorGenjian Zhang <zhanggenjian@kylinos.cn>
Fri, 15 Aug 2025 09:07:32 +0000 (17:07 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 8 Sep 2025 14:06:10 +0000 (08:06 -0600)
commit7942b226e6b84df13b46b76c01d3b6e07a1b349e
treef514a8f0daaa4e4e180e7d651a74a11bba138219
parent995412e23bb2560a73db444e4c60bf5826b33aaa
null_blk: Fix the description of the cache_size module argument

When executing modinfo null_blk, there is an error in the description
of module parameter mbps, and the output information of cache_size is
incomplete.The output of modinfo before and after applying this patch
is as follows:

Before:
[...]
parm:           cache_size:ulong
[...]
parm:           mbps:Cache size in MiB for memory-backed device.
Default: 0 (none) (uint)
[...]

After:
[...]
parm:           cache_size:Cache size in MiB for memory-backed device.
Default: 0 (none) (ulong)
[...]
parm:           mbps:Limit maximum bandwidth (in MiB/s).
Default: 0 (no limit) (uint)
[...]

Fixes: 058efe000b31 ("null_blk: add module parameters for 4 options")
Signed-off-by: Genjian Zhang <zhanggenjian@kylinos.cn>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk/main.c