summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/cache.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2013-07-08 23:24:19 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2013-07-13 11:29:32 +0200
commite9a17bd73a29e5323c37ec5ffe50fc0e825d3d03 (patch)
treebae88dcb02c02d93bd2eca8ba3334b2f16a14b9d /net/sunrpc/cache.c
parentllist: fix/simplify llist_add() and llist_add_batch() (diff)
downloadlinux-e9a17bd73a29e5323c37ec5ffe50fc0e825d3d03.tar.xz
linux-e9a17bd73a29e5323c37ec5ffe50fc0e825d3d03.zip
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 <oleg@redhat.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Andrey Vagin <avagin@openvz.org> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: David Howells <dhowells@redhat.com> Cc: Huang Ying <ying.huang@intel.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net/sunrpc/cache.c')
0 files changed, 0 insertions, 0 deletions