summaryrefslogtreecommitdiff
path: root/Documentation/ABI/stable/sysfs-block
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-05-02 16:00:32 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-25 17:28:40 +0300
commit0f40eb57741a6f48ecd91585fce375562239459a (patch)
treee2891ab7874dcaaa654ab4ac14e4fba5d893d654 /Documentation/ABI/stable/sysfs-block
parenteb7561517b07bd7b447e12f3afb95f96878e0cb1 (diff)
downloadlinux-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/ABI/stable/sysfs-block')
0 files changed, 0 insertions, 0 deletions