From: Laurent Barbe Date: Wed, 10 Apr 2013 22:47:46 +0000 (-0500) Subject: rbd: revalidate_disk upon rbd resize X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d98df63e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git rbd: revalidate_disk upon rbd resize If rbd disk is open and rbd resize is done, new size is not visible by filesystem. Like is done in virtio-blk and dm driver, revalidate_disk() permits to update the bd_inode size. Signed-off-by: Laurent Barbe Reviewed-by: Alex Elder --- diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 8a7216d784d7..b2819deced6b 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -2781,6 +2781,7 @@ static int rbd_dev_refresh(struct rbd_device *rbd_dev, u64 *hver) else ret = rbd_dev_v2_refresh(rbd_dev, hver); mutex_unlock(&ctl_mutex); + revalidate_disk(rbd_dev->disk); return ret; }