From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH v2 2/6] gnttab: limit mapcount() looping Date: Mon, 15 Jun 2015 14:20:14 +0100 Message-ID: <557ED10E.7040805@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.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z4UJK-0007Qd-FI for xen-devel@lists.xenproject.org; Mon, 15 Jun 2015 13:20:22 +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 , xen-devel Cc: Ian Campbell , Ian Jackson , Keir Fraser , Tim Deegan List-Id: xen-devel@lists.xenproject.org On 15/06/15 13:26, 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 Reviewed-by: Andrew Cooper