block: rename bd_invalidated
Replace bd_invalidate with a new BDEV_NEED_PART_SCAN flag in a bd_flags variable to better describe the condition. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
6540fbf6b6
commit
f4ad06f2bb
4 changed files with 13 additions and 11 deletions
|
|
@ -19,6 +19,8 @@ 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;
|
||||
|
|
@ -37,7 +39,7 @@ struct block_device {
|
|||
struct hd_struct * bd_part;
|
||||
/* number of times partitions within this device have been opened. */
|
||||
unsigned bd_part_count;
|
||||
int bd_invalidated;
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue