Re: [PATCH 0/6] list: introduce list_last_entry_or_null()

2013-11-15 Thread Jeff Liu
On 11/15 2013 22:11, Christoph Hellwig wrote: > On Fri, Nov 15, 2013 at 12:29:48PM +0800, Jeff Liu wrote: >> Hi Folks, >> >> This patch is trying to introduce a new list helper to retrieve the >> last entry or return NULL if the list is empty corresponding to it, >> which is inspired by Jiri

Re: [Cluster-devel] [PATCH 0/6] list: introduce list_last_entry_or_null()

2013-11-15 Thread Steven Whitehouse
Hi, On Fri, 2013-11-15 at 06:11 -0800, Christoph Hellwig wrote: > On Fri, Nov 15, 2013 at 12:29:48PM +0800, Jeff Liu wrote: > > Hi Folks, > > > > This patch is trying to introduce a new list helper to retrieve the > > last entry or return NULL if the list is empty corresponding to it, > > which

Re: [PATCH 0/6] list: introduce list_last_entry_or_null()

2013-11-15 Thread Christoph Hellwig
On Fri, Nov 15, 2013 at 12:29:48PM +0800, Jeff Liu wrote: > Hi Folks, > > This patch is trying to introduce a new list helper to retrieve the > last entry or return NULL if the list is empty corresponding to it, > which is inspired by Jiri Pirko's list_first_entry_or_null(). How did we end up

Re: [PATCH 0/6] list: introduce list_last_entry_or_null()

2013-11-15 Thread Christoph Hellwig
On Fri, Nov 15, 2013 at 12:29:48PM +0800, Jeff Liu wrote: Hi Folks, This patch is trying to introduce a new list helper to retrieve the last entry or return NULL if the list is empty corresponding to it, which is inspired by Jiri Pirko's list_first_entry_or_null(). How did we end up with

Re: [Cluster-devel] [PATCH 0/6] list: introduce list_last_entry_or_null()

2013-11-15 Thread Steven Whitehouse
Hi, On Fri, 2013-11-15 at 06:11 -0800, Christoph Hellwig wrote: On Fri, Nov 15, 2013 at 12:29:48PM +0800, Jeff Liu wrote: Hi Folks, This patch is trying to introduce a new list helper to retrieve the last entry or return NULL if the list is empty corresponding to it, which is inspired

Re: [PATCH 0/6] list: introduce list_last_entry_or_null()

2013-11-15 Thread Jeff Liu
On 11/15 2013 22:11, Christoph Hellwig wrote: On Fri, Nov 15, 2013 at 12:29:48PM +0800, Jeff Liu wrote: Hi Folks, This patch is trying to introduce a new list helper to retrieve the last entry or return NULL if the list is empty corresponding to it, which is inspired by Jiri Pirko's

[PATCH 0/6] list: introduce list_last_entry_or_null()

2013-11-14 Thread Jeff Liu
Hi Folks, This patch is trying to introduce a new list helper to retrieve the last entry or return NULL if the list is empty corresponding to it, which is inspired by Jiri Pirko's list_first_entry_or_null(). With this trivial helper, we could get a little benefit to simplify the code logic of

[PATCH 0/6] list: introduce list_last_entry_or_null()

2013-11-14 Thread Jeff Liu
Hi Folks, This patch is trying to introduce a new list helper to retrieve the last entry or return NULL if the list is empty corresponding to it, which is inspired by Jiri Pirko's list_first_entry_or_null(). With this trivial helper, we could get a little benefit to simplify the code logic of