diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index d833d02b321f239b840266f739a6a878eb47cacf..1278098624e6382ab77522c68535d39b3c863916 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -1664,6 +1664,9 @@ static int __rbd_update_snaps(struct rbd_device *rbd_dev) if (ret < 0) return ret; + /* resized? */ + set_capacity(rbd_dev->disk, h.image_size / 512ULL); + down_write(&rbd_dev->header.snap_rwsem); snap_seq = rbd_dev->header.snapc->seq;