Commit 94d91e7f authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

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: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarSong Liu <song@kernel.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 2c247c51
...@@ -1299,8 +1299,6 @@ static void update_size(struct mddev *mddev, sector_t old_dev_sectors) ...@@ -1299,8 +1299,6 @@ static void update_size(struct mddev *mddev, sector_t old_dev_sectors)
} else { } else {
/* revert to previous sectors */ /* revert to previous sectors */
ret = mddev->pers->resize(mddev, old_dev_sectors); ret = mddev->pers->resize(mddev, old_dev_sectors);
if (!ret)
revalidate_disk_size(mddev->gendisk, true);
ret = __sendmsg(cinfo, &cmsg); ret = __sendmsg(cinfo, &cmsg);
if (ret) if (ret)
pr_err("%s:%d: failed to send METADATA_UPDATED msg\n", pr_err("%s:%d: failed to send METADATA_UPDATED msg\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment