diff options
author | Christoph Hellwig <hch@lst.de> | 2020-09-21 09:19:45 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-09-23 10:43:18 -0600 |
commit | 38430f0876fa8b9549ec434f569dce03e057c076 (patch) | |
tree | b8137369a29bfc6158d781ad1e4897cbd6a2062f /include/linux/blk_types.h | |
parent | block: allow 'chunk_sectors' to be non-power-of-2 (diff) | |
download | linux-dev-38430f0876fa8b9549ec434f569dce03e057c076.tar.xz linux-dev-38430f0876fa8b9549ec434f569dce03e057c076.zip |
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/blk_types.h')
-rw-r--r-- | include/linux/blk_types.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index 6ffa783e1633..eb20e28184ab 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -19,8 +19,6 @@ struct cgroup_subsys_state; typedef void (bio_end_io_t) (struct bio *); struct bio_crypt_ctx; -#define BDEV_NEED_PART_SCAN 0 - struct block_device { dev_t bd_dev; int bd_openers; @@ -39,7 +37,7 @@ struct block_device { struct hd_struct * bd_part; /* number of times partitions within this device have been opened. */ unsigned bd_part_count; - unsigned long bd_flags; + spinlock_t bd_size_lock; /* for bd_inode->i_size updates */ struct gendisk * bd_disk; struct backing_dev_info *bd_bdi; |