[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v1 1/3] mm/memory_hotplug: Prepare passing flags to add_memory() and friends



On Wed, Apr 29, 2020 at 06:08:01PM +0200, David Hildenbrand wrote:
> We soon want to pass flags - prepare for that.
> 
> This patch is based on a similar patch by Oscar Salvador:
> 
> https://lkml.kernel.org/r/20190625075227.15193-3-osalvador@xxxxxxx
> 
[...]
> ---
>  drivers/hv/hv_balloon.c                         |  2 +-

> diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c
> index 32e3bc0aa665..0194bed1a573 100644
> --- a/drivers/hv/hv_balloon.c
> +++ b/drivers/hv/hv_balloon.c
> @@ -726,7 +726,7 @@ static void hv_mem_hot_add(unsigned long start, unsigned 
> long size,
>  
>               nid = memory_add_physaddr_to_nid(PFN_PHYS(start_pfn));
>               ret = add_memory(nid, PFN_PHYS((start_pfn)),
> -                             (HA_CHUNK << PAGE_SHIFT));
> +                             (HA_CHUNK << PAGE_SHIFT), 0);
>  
>               if (ret) {
>                       pr_err("hot_add memory failed error is %d\n", ret);

Acked-by: Wei Liu <wei.liu@xxxxxxxxxx>



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.