]> www.infradead.org Git - users/hch/misc.git/commit
block: Fix queue_iostats_passthrough_show()
authorBart Van Assche <bvanassche@acm.org>
Thu, 12 Dec 2024 21:29:41 +0000 (13:29 -0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Dec 2024 15:09:43 +0000 (08:09 -0700)
commita6fe7b70513fbf11ffa5e85f7b6ba444497a5a3d
tree7792be67f3b638125107dfe22b1d3d8b221e831b
parent312ccd4b755a09dc44e8a25f9c9526a4587ab53c
block: Fix queue_iostats_passthrough_show()

Make queue_iostats_passthrough_show() report 0/1 in sysfs instead of 0/4.

This patch fixes the following sparse warning:
block/blk-sysfs.c:266:31: warning: incorrect type in argument 1 (different base types)
block/blk-sysfs.c:266:31:    expected unsigned long var
block/blk-sysfs.c:266:31:    got restricted blk_flags_t

Cc: Keith Busch <kbusch@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Fixes: 110234da18ab ("block: enable passthrough command statistics")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20241212212941.1268662-4-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-sysfs.c