On Fri, May 02, 2014 at 03:02:28PM -0400, Dan Streetman wrote: > Add PLIST_HEAD() to plist.h, equivalent to LIST_HEAD() from list.h, to > define and initialize a struct plist_head. > > Add plist_for_each_continue() and plist_for_each_entry_continue(), > equivalent to list_for_each_continue() and list_for_each_entry_continue(), > to iterate over a plist continuing after the current position. > > Add plist_prev() and plist_next(), equivalent to (struct list_head*)->prev > and ->next, implemented by list_prev_entry() and list_next_entry(), to > access the prev/next struct plist_node entry. These are needed because > unlike struct list_head, direct access of the prev/next struct plist_node > isn't possible; the list must be navigated via the contained struct list_head. > e.g. instead of accessing the prev by list_prev_entry(node, node_list) > it can be accessed by plist_prev(node). > > Signed-off-by: Dan Streetman <[email protected]> > Cc: Mel Gorman <[email protected]> > Cc: Paul Gortmaker <[email protected]> > Cc: Steven Rostedt <[email protected]> > Cc: Thomas Gleixner <[email protected]> >
Acked-by: Mel Gorman <[email protected]> -- Mel Gorman SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

