From: Josh Durgin Date: Mon, 5 Dec 2011 18:41:28 +0000 (-0800) Subject: rbd: set image size when header is updated X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=93a24e084d67ba2fcb9a4c289135825b623ec864;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git rbd: set image size when header is updated The image may have been resized. Signed-off-by: Josh Durgin Reviewed-by: Alex Elder --- diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 9c3a1db49ac4..a6bbda2e5eb8 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -1746,6 +1746,7 @@ static int __rbd_refresh_header(struct rbd_device *rbd_dev) kfree(rbd_dev->header.snap_names); kfree(rbd_dev->header.snapc); + rbd_dev->header.image_size = h.image_size; rbd_dev->header.total_snaps = h.total_snaps; rbd_dev->header.snapc = h.snapc; rbd_dev->header.snap_names = h.snap_names;