From: Wei Yang Date: Mon, 15 Jul 2019 02:05:49 +0000 (+0800) Subject: migration/postcopy: fix document of postcopy_send_discard_bm_ram() X-Git-Tag: v4.1.0-rc1~7^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=89dab31b277936d8808ffa0bd55a070027728e0f;p=thirdparty%2Fqemu.git migration/postcopy: fix document of postcopy_send_discard_bm_ram() Commit 6b6712efccd3 ('ram: Split dirty bitmap by RAMBlock') changes the parameter of postcopy_send_discard_bm_ram(), while left the document part untouched. This patch correct the document and fix two typo by hand. Signed-off-by: Wei Yang Reviewed-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20190715020549.15018-1-richardw.yang@linux.intel.com> Signed-off-by: Juan Quintela --- diff --git a/migration/ram.c b/migration/ram.c index 8622b4dc498..85bc36101ca 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -2804,8 +2804,7 @@ void ram_postcopy_migrated_memory_release(MigrationState *ms) * * @ms: current migration state * @pds: state for postcopy - * @start: RAMBlock starting page - * @length: RAMBlock size + * @block: RAMBlock to discard */ static int postcopy_send_discard_bm_ram(MigrationState *ms, PostcopyDiscardState *pds, @@ -3004,7 +3003,7 @@ static void postcopy_chunk_hostpages_pass(MigrationState *ms, bool unsent_pass, } /** - * postcopy_chuck_hostpages: discrad any partially sent host page + * postcopy_chunk_hostpages: discard any partially sent host page * * Utility for the outgoing postcopy code. *