From: Oleg Nesterov Date: Mon, 8 Jul 2013 21:24:19 +0000 (-0700) Subject: llist: llist_add() can use llist_add_batch() X-Git-Tag: v3.11-rc1~2^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9a17bd73a29e5323c37ec5ffe50fc0e825d3d03;p=pandora-kernel.git llist: llist_add() can use llist_add_batch() llist_add(new, head) can simply use llist_add_batch(new, new, head), no need to duplicate the code. This obviously uninlines llist_add() and to me this is a win. But we can make llist_add_batch() inline if this is desirable, in this case gcc can notice that new_first == new_last if the caller is llist_add(). Signed-off-by: Oleg Nesterov Cc: Al Viro Cc: Andrey Vagin Cc: "Eric W. Biederman" Cc: David Howells Cc: Huang Ying Cc: Peter Zijlstra Signed-off-by: Andrew Morton Signed-off-by: Al Viro --- Reading git-diff-tree failed