diff options
author | Christoph Hellwig <hch@lst.de> | 2020-09-25 18:06:17 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-10-05 18:38:33 +0200 |
commit | 155bd9d1abd60497f3e84ef3251b40209f7f7900 (patch) | |
tree | 38300a8cf8b17645357c9905e4e6d78927a77f56 /drivers/block/drbd/drbd_int.h | |
parent | block-mq: fix comments in blk_mq_queue_tag_busy_iter (diff) | |
download | linux-155bd9d1abd60497f3e84ef3251b40209f7f7900.tar.xz linux-155bd9d1abd60497f3e84ef3251b40209f7f7900.zip |
drbd: remove ->this_bdev
DRBD keeps a block device open just to get and set the capacity from
it. Switch to primarily using the disk capacity as intended by the
block layer, and sync it to the bdev using revalidate_disk_size.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/drbd/drbd_int.h')
-rw-r--r-- | drivers/block/drbd/drbd_int.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h index 740e93bad21f..8f879e5c2f67 100644 --- a/drivers/block/drbd/drbd_int.h +++ b/drivers/block/drbd/drbd_int.h @@ -841,7 +841,6 @@ struct drbd_device { sector_t p_size; /* partner's disk size */ struct request_queue *rq_queue; - struct block_device *this_bdev; struct gendisk *vdisk; unsigned long last_reattach_jif; |