Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932217Ab0DPOxS (ORCPT ); Fri, 16 Apr 2010 10:53:18 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:36167 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755702Ab0DPOxO (ORCPT ); Fri, 16 Apr 2010 10:53:14 -0400 Date: Fri, 16 Apr 2010 07:48:13 -0700 (PDT) From: Linus Torvalds To: Felipe Balbi cc: Rik van Riel , Borislav Petkov , Johannes Weiner , KOSAKI Motohiro , Andrew Morton , Minchan Kim , Linux Kernel Mailing List , Lee Schermerhorn , Nick Piggin , Andrea Arcangeli , Hugh Dickins , "sgunderson@bigfoot.com" Subject: Re: [PATCH] rmap: add exclusively owned pages to the newest anon_vma In-Reply-To: <20100416060924.GD1710@nokia.com> Message-ID: References: <20100412072056.GA2432@liondog.tnic> <20100412215027.GA6263@liondog.tnic> <20100413093827.GA6954@liondog.tnic> <20100414175928.5e1bdce2@annuminas.surriel.com> <20100416060924.GD1710@nokia.com> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) 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: 832 Lines: 21 On Fri, 16 Apr 2010, Felipe Balbi wrote: > > while at that, would it make sense to first provide list_last_entry() since we > already have list_first_entry() ?? Yeah, it probably would make sense. Especially as doing a simple grep for 'list_entry.*prev' does seem to imply that there might be quite a few places that would be able to use it. Although some of them do seem to be about finding the previous entry rather than the last in a list. That said, doing the same grep for 'next' shows that a lot of places don't use the list_first_entry() that we _do_ have, so.. Linus -- 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/