OSDN Git Service

migration/ram: Fix some helper functions' parameter to use PageSearchStatus
authorzhanghailiang <zhang.zhanghailiang@huawei.com>
Fri, 15 Jan 2016 03:37:44 +0000 (11:37 +0800)
committerAmit Shah <amit.shah@redhat.com>
Fri, 5 Feb 2016 13:39:50 +0000 (19:09 +0530)
commita08f6890347b5483a6764d5d18baceb41f3f7e89
tree3b65926aad4b8ec12d6227abed5480e301ffca03
parentfb3520a84e4939a4135033e2a7afefdd7b9ee8f5
migration/ram: Fix some helper functions' parameter to use PageSearchStatus

Some helper functions use parameters 'RAMBlock *block' and 'ram_addr_t *offset',
We can use 'PageSearchStatus *pss' directly instead, with this change, we
can reduce the number of parameters for these helper function, also
it is easily to add new parameters for these helper functions.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Message-Id: <1452829066-9764-5-git-send-email-zhang.zhanghailiang@huawei.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
migration/ram.c