Re: [PATCH] rmap: add exclusively owned pages to the newestanon_vma

From: Linus Torvalds
Date: Fri Apr 16 2010 - 10:53:22 EST




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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/