From: Keir Fraser Subject: Re: [PATCH] tmem: fix to 20945 "When tmem is enabled, reserve a fraction of memory" Date: Wed, 17 Feb 2010 12:10:09 +0000 Message-ID: References: <4f9cade6-4b13-41fd-bc34-7443fb06ece3@default> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4f9cade6-4b13-41fd-bc34-7443fb06ece3@default> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Magenheimer , "xen-devel@lists.xensource.com" Cc: Jan Beulich List-Id: xen-devel@lists.xenproject.org On 16/02/2010 18:30, "Dan Magenheimer" wrote: > - if ( opt_tmem && ((order == 0) || (order >= 9)) && > - (total_avail_pages <= midsize_alloc_zone_pages) ) > - goto fail; > + if ( opt_tmem && (total_avail_pages <= midsize_alloc_zone_pages) ) > + { > + if ( order == 0) > + goto try_tmem; > + if ( order >= 9) > + goto fail; Why not try_tmem in the case that order>=9, too, rather than fail outright? -- Keir