diff options
| author | Christoph Hellwig <hch@lst.de> | 2024-05-02 15:00:32 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-05-25 16:30:56 +0200 |
| commit | 59e0727d444a93a3e6382f63a2c45346c151e27a (patch) | |
| tree | 5aabe6706f836cc872c2b5980e5016529c47d05c /tools/perf/scripts/python/stackcollapse.py | |
| parent | 50ef147264b708f8ab87ef07715ff7a07d5947a8 (diff) | |
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>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
