From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v2 2/6] gnttab: limit mapcount() looping Date: Tue, 16 Jun 2015 09:44:43 +0100 Message-ID: <1434444283.13744.49.camel@citrix.com> References: <557EDDDD0200007800084C94@mail.emea.novell.com> <557EE0810200007800084CB8@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z4mUU-0002FB-4o for xen-devel@lists.xenproject.org; Tue, 16 Jun 2015 08:45:06 +0000 In-Reply-To: <557EE0810200007800084CB8@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: xen-devel , Keir Fraser , Ian Jackson , Tim Deegan List-Id: xen-devel@lists.xenproject.org On Mon, 2015-06-15 at 13:26 +0100, Jan Beulich wrote: > The function doesn't need to return counts in the first place; all its > callers are after is whether at least one entry of a certain kind > exists. With that there's no point for that loop to continue once the > looked for condition was found to be met by one entry. Rename the > function to match the changed behavior. > > Signed-off-by: Jan Beulich Acked-by: Ian Campbell