lkml.org 
[lkml]   [2016]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 2/5] Drivers: hv: balloon: account for gaps in hot add regions
Date
Hi, kys!

>>>>> On Wed, 24 Aug 2016 16:23:10 -0700, kys wrote:

[...]

> -static bool pfn_covered(unsigned long start_pfn, unsigned long pfn_cnt)
> +static int pfn_covered(unsigned long start_pfn, unsigned long pfn_cnt)
> {
> struct list_head *cur;
> struct hv_hotadd_state *has;
> + struct hv_hotadd_gap *gap;
> unsigned long residual, new_inc;

> if (list_empty(&dm_device.ha_region_list))

One "return false;" left here.


[...]

> - if (has->covered_end_pfn != start_pfn)
> - has->covered_end_pfn = start_pfn;
> -
> - return true;
> -
> + return 1;
> }

> - return false;
> + return 0;
> }

[...]

--
WBR,
Yauheni Kaliuta

\
 
 \ /
  Last update: 2016-09-17 09:57    [W:0.061 / U:0.776 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site