Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759210AbZJHSDt (ORCPT ); Thu, 8 Oct 2009 14:03:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758302AbZJHSDs (ORCPT ); Thu, 8 Oct 2009 14:03:48 -0400 Received: from mk-filter-3-a-1.mail.uk.tiscali.com ([212.74.100.54]:32483 "EHLO mk-filter-3-a-1.mail.uk.tiscali.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751492AbZJHSDr (ORCPT ); Thu, 8 Oct 2009 14:03:47 -0400 X-Trace: 268527581/mk-filter-3.mail.uk.tiscali.com/B2C/$b2c-THROTTLED-DYNAMIC/b2c-CUSTOMER-DYNAMIC-IP/80.41.117.236/None/hugh.dickins@tiscali.co.uk X-SBRS: None X-RemoteIP: 80.41.117.236 X-IP-MAIL-FROM: hugh.dickins@tiscali.co.uk X-SMTP-AUTH: X-MUA: X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtMEAH/FzUpQKXXs/2dsb2JhbACBUtl6hCoE X-IronPort-AV: E=Sophos;i="4.44,526,1249254000"; d="scan'208";a="268527581" Date: Thu, 8 Oct 2009 19:02:59 +0100 (BST) From: Hugh Dickins X-X-Sender: hugh@sister.anvils To: Peter Zijlstra cc: Linus Torvalds , Ingo Molnar , Avi Kivity , Andrew Morton , David Howells , lkml , linux-arch Subject: Re: [RFC][PATCH] kmap_atomic_push In-Reply-To: Message-ID: References: <1255016123.17055.17.camel@laptop> <20091008155344.GA11727@elte.hu> <1255019362.26976.311.camel@twins> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2442 Lines: 51 On Thu, 8 Oct 2009, Linus Torvalds wrote: > On Thu, 8 Oct 2009, Peter Zijlstra wrote: > > > > Right, so I did that full rename just so that people wouldn't get > > confused or something, but if both you and Linus think it should remain: > > kmap_atomic() and kunmap_atomic(), I can certainly undo that part. I love the patch, Peter: thank you. But agree with the others to keep the old names, just let the change in prototype (vanishing second arg) do the work of weeding out any stragglers. > > I think the renaming probably helps find all the places (simple "grep -w" > shows the difference, and no fear of confusion with comma-expressions and > multi-line arguments etc). But once they've all been converted, you might > as well then do a search-and-replace-back on the patch, and make the end > result look like you just removed the (now pointless) argument. > > In fact, I'd personally be inclined to split the patch into two patches: > > - one that just ignores the now redundant argument (but still keeps it), > and fixes the cases that didn't nest > > - one that then removes the argument. > > Why? The _bugs_ are going to be shown by the first patch, and it would be > nice to keep that patch small. When a bug shows up, it would be either > because there's something wrong in that (much smaller) patch, or because > some not-properly-nested casel wasn't fixed. > > In contrast, the second patch would be large, but if done right, you could > then prove that it has no actual semantic changes (ie "binary is same > before and after"). That just sounds _much_ nicer from a debug standpoint. > Developers would look at the small and concentrated "real changes" patch, > rather than be distracted by all the trivial noise. And I very much agree with Linus's two patch approach: it also makes it much easier to review, separating the wheat of the interesting changes from the chaff of eliminating the unnecessary arg. It was hard to find the interesting part in the patch as you sent it. I wasn't really checking it, but think I noticed something called swap_two_pages() somewhere, which wasn't doing the unnesting right: you may need to swap two lines ;) Hugh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/