Christoph Hellwig 59e0727d44 block: add a disk_has_partscan helper
commit 140ce28dd3bee8e53acc27f123ae474d69ef66f0 upstream.

Add a helper to check if partition scanning is enabled instead of
open coding the check in a few places.  This now always checks for
the hidden flag even if all but one of the callers are never reachable
for hidden gendisks.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240502130033.1958492-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-05-25 16:30:56 +02:00
..
2024-04-26 11:01:28 -07:00
2024-03-11 11:43:44 -07:00
2023-06-26 12:47:20 -07:00
2024-03-11 11:43:44 -07:00
2023-06-30 11:57:07 -07:00
2024-03-11 10:52:34 -07:00
2024-05-25 16:30:56 +02:00
2024-03-11 11:43:44 -07:00