Hi Penny,
On 20/06/2022 06:11, Penny Zheng wrote:
Later, we need to add the right amount of references, which should be
the number of borrower domains, to the owner domain. Since we only have
get_page() to increment the page reference by 1, a loop is needed per
page, which is inefficient and time-consuming.
To save the loop time, this commit introduces a set of new helpers
put_page_nr() and get_page_nr() to increment/drop the page reference by nr.
Signed-off-by: Penny Zheng <[email protected]>
Reviewed-by: Stefano Stabellini <[email protected]>
Reviewed-by: Julien Grall <[email protected]>
Cheers,
--
Julien Grall