From: Christoph Hellwig Date: Mon, 16 Nov 2020 14:57:12 +0000 (+0100) Subject: md: remove a spurious call to revalidate_disk_size in update_size X-Git-Tag: v5.15~2163^2~76 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=94d91e7f8c221260790a482373d347ea85efb7b3;p=platform%2Fkernel%2Flinux-starfive.git md: remove a spurious call to revalidate_disk_size in update_size None of the ->resize methods updates the disk size, so calling revalidate_disk_size here won't do anything. Signed-off-by: Christoph Hellwig Acked-by: Song Liu Signed-off-by: Jens Axboe --- diff --git a/drivers/md/md-cluster.c b/drivers/md/md-cluster.c index 87442dc..35e2690 100644 --- a/drivers/md/md-cluster.c +++ b/drivers/md/md-cluster.c @@ -1299,8 +1299,6 @@ static void update_size(struct mddev *mddev, sector_t old_dev_sectors) } else { /* revert to previous sectors */ ret = mddev->pers->resize(mddev, old_dev_sectors); - if (!ret) - revalidate_disk_size(mddev->gendisk, true); ret = __sendmsg(cinfo, &cmsg); if (ret) pr_err("%s:%d: failed to send METADATA_UPDATED msg\n",