diff options
author | 2024-05-02 15:00:32 +0200 | |
---|---|---|
committer | 2024-05-03 08:59:59 -0600 | |
commit | 140ce28dd3bee8e53acc27f123ae474d69ef66f0 (patch) | |
tree | badd9cf1f719edebd6757cadf433821b0e93889a /tools/perf/scripts/python | |
parent | Merge tag 'md-6.10-20240502' of https://git.kernel.org/pub/scm/linux/kernel/git/song/md into for-6.10/block (diff) | |
download | wireguard-linux-140ce28dd3bee8e53acc27f123ae474d69ef66f0.tar.xz wireguard-linux-140ce28dd3bee8e53acc27f123ae474d69ef66f0.zip |
block: add a disk_has_partscan helper
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions