]> git.baikalelectronics.ru Git - kernel.git/commit
list: change list_for_each_entry*() to use list_*_entry()
authorOleg Nesterov <oleg@redhat.com>
Tue, 12 Nov 2013 23:10:02 +0000 (15:10 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Nov 2013 03:09:23 +0000 (12:09 +0900)
commit93661f379c4e23611e3b45ee7f69e486b52971ba
treea78ce230e01bcea6895eca8492d79fce8eb3c1a3
parent7b2f405e3d6f3810c6ea1d7a82948b3ab73d4d7f
list: change list_for_each_entry*() to use list_*_entry()

Now that we have list_{next,prev}_entry() we can change
list_for_each_entry*() and list_safe_reset_next() to use the new helpers
to improve the readability.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Eilon Greenstein <eilong@broadcom.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/list.h