]> Git Repo - linux.git/commitdiff
md: remove a spurious call to revalidate_disk_size in update_size
authorChristoph Hellwig <[email protected]>
Mon, 16 Nov 2020 14:57:12 +0000 (15:57 +0100)
committerJens Axboe <[email protected]>
Mon, 16 Nov 2020 15:34:15 +0000 (08:34 -0700)
None of the ->resize methods updates the disk size, so calling
revalidate_disk_size here won't do anything.

Signed-off-by: Christoph Hellwig <[email protected]>
Acked-by: Song Liu <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
drivers/md/md-cluster.c

index 87442dc59f6ca3410b51b6fae0032c022ce86710..35e2690c1803dd584e64f41e1bca97ac1a7e51bb 100644 (file)
@@ -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",
This page took 0.055359 seconds and 4 git commands to generate.