From: "Jan Beulich" Subject: linux c/s 860 Date: Wed, 15 Apr 2009 15:59:56 +0100 Message-ID: <49E6128C.76EA.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: 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: Isaku Yamahata Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Other than its comment says, this c/s doesn't only subtract 1 from = r_align, but also extends the surrounding condition to include !r_align. If r_align is = zero, ALIGN(r_align, PAGE_SIZE) will be zero too, and hence in the end r_align will become ~0. What's the purpose of all that? Or am I missing something here? Or is the added condition perhaps just inverted? Thanks, Jan