Messages in this thread | | | Date | Fri, 16 Apr 2010 07:48:13 -0700 (PDT) | From | Linus Torvalds <> | Subject | Re: [PATCH] rmap: add exclusively owned pages to the newest anon_vma |
| |
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
| |