From: "Jan Beulich" Subject: Re: [PATCH] linux/balloon: prefer using pages from balloon in alloc_empty_pages_and_pagevec() Date: Fri, 18 Dec 2009 15:01:31 +0000 Message-ID: <4B2BA75B0200007800026A81@vpn.id2.novell.com> References: <4B2907320200007800026472@vpn.id2.novell.com> <200912171433.04459.dcm@mccr.org> <4B2B42DD020000780002694A@vpn.id2.novell.com> <200912180832.54632.dcm@mccr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <200912180832.54632.dcm@mccr.org> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dave McCracken Cc: Jeremy Fitzhardinge , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> Dave McCracken 18.12.09 15:32 >>> >On Friday 18 December 2009, Jan Beulich wrote: >> >>> Dave McCracken 17.12.09 21:33 >>> >> > >> >I don't see anything wrong with the error path. It correctly walks = back >> > down the pagevec and frees all the pages it's allocated so far. >>=20 >> Oh, you're probably looking at the code past the err: label, but I was >> referring to the handling of a failed apply_to_page_range(). > >Ok, yeah. It frees up the page that's currently being worked on, then = jumps=20 >to err: to clean up all the other pages in the pagevec and free the = pagevec. =20 >Is there something wrong about it that I'm missing? It should __free_pages(..., order) rather than __free_page(...). Jan