diff options
author | Christoph Hellwig <hch@lst.de> | 2020-09-21 10:19:45 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-09-23 19:43:18 +0300 |
commit | 38430f0876fa8b9549ec434f569dce03e057c076 (patch) | |
tree | b8137369a29bfc6158d781ad1e4897cbd6a2062f /include/linux/genhd.h | |
parent | 07d098e6bbad04030dab5b3e64149601fcb063ce (diff) | |
download | linux-38430f0876fa8b9549ec434f569dce03e057c076.tar.xz |
block: move the NEED_PART_SCAN flag to struct gendisk
We can only scan for partitions on the whole disk, so move the flag
from struct block_device to struct gendisk.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/genhd.h')
-rw-r--r-- | include/linux/genhd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h index 1c97cf84f011..38f23d757013 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h @@ -191,6 +191,8 @@ struct gendisk { void *private_data; int flags; + unsigned long state; +#define GD_NEED_PART_SCAN 0 struct rw_semaphore lookup_sem; struct kobject *slave_dir; |