From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755926AbYDFDY1 (ORCPT ); Sat, 5 Apr 2008 23:24:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755429AbYDFDYP (ORCPT ); Sat, 5 Apr 2008 23:24:15 -0400 Received: from ozlabs.org ([203.10.76.45]:50062 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752553AbYDFDYP (ORCPT ); Sat, 5 Apr 2008 23:24:15 -0400 From: Rusty Russell To: Anthony Liguori Subject: Re: [PATCH RFC 2/5] vringfd base/offset Date: Sun, 6 Apr 2008 13:23:53 +1000 User-Agent: KMail/1.9.9 Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Max Krasnyansky , virtualization@lists.linux-foundation.org References: <200804052202.09157.rusty@rustcorp.com.au> <200804052204.28518.rusty__10896.9346424148$1207397431$gmane$org@rustcorp.com.au> <47F7B483.8090101@codemonkey.ws> In-Reply-To: <47F7B483.8090101@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804061323.53566.rusty@rustcorp.com.au> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sunday 06 April 2008 03:18:59 Anthony Liguori wrote: > Rusty Russell wrote: > > - if (unlikely(get_user(head, &vr->ring.avail->ring[head]) != 0)) > > + > > + if (unlikely(get_user(head, &vr->ring.avail->ring[vr->last_avail > > + % vr->ring.num]))) > > Why not & with vr->mask for the sake of consistency with the rest of the > code. Thanks, fixed. Rusty.