drbd: remove ->this_bdev
authorChristoph Hellwig <hch@lst.de>
Fri, 25 Sep 2020 16:06:17 +0000 (18:06 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 5 Oct 2020 16:38:33 +0000 (10:38 -0600)
commit155bd9d1abd60497f3e84ef3251b40209f7f7900
tree38300a8cf8b17645357c9905e4e6d78927a77f56
parent76cffccd606acffde1b91e8b029b39b5fd1a3117
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>
drivers/block/drbd/drbd_actlog.c
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_main.c
drivers/block/drbd/drbd_nl.c
drivers/block/drbd/drbd_receiver.c
drivers/block/drbd/drbd_req.c
drivers/block/drbd/drbd_worker.c