]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] list: introduce list_replace() helper
authorOleg Nesterov <oleg@tv-sign.ru>
Fri, 23 Jun 2006 09:05:54 +0000 (02:05 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Jun 2006 14:43:07 +0000 (07:43 -0700)
commit54e73770357142e297c916c7865f5fca7499f69c
treea37b768005eee1fdf6e0ae3051098c51f918785f
parentcb259f07b1daacafac3b12ecd7f180faf7e506b0
[PATCH] list: introduce list_replace() helper

list_replace() is similar to list_replace_rcu(), but unlike
list_replace_rcu() it

could be used when list_empty(old) == 1

doesn't use barriers

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/list.h