diff options
author | Christoph Hellwig <hch@lst.de> | 2024-05-02 16:00:32 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-05-25 17:28:40 +0300 |
commit | 0f40eb57741a6f48ecd91585fce375562239459a (patch) | |
tree | e2891ab7874dcaaa654ab4ac14e4fba5d893d654 /Documentation/watchdog | |
parent | eb7561517b07bd7b447e12f3afb95f96878e0cb1 (diff) | |
download | linux-0f40eb57741a6f48ecd91585fce375562239459a.tar.xz |
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 'Documentation/watchdog')
0 files changed, 0 insertions, 0 deletions