list: fix order of arguments for hlist_add_after(_rcu)
authorKen Helias <kenhelias@firemail.de>
Wed, 6 Aug 2014 23:09:16 +0000 (16:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:24 +0000 (18:01 -0700)
commit1d023284c31a4e40a94d5bbcb7dbb7a35ee0bcbc
tree24b0b38fbd227873f771ebca55cba8b595bb6c57
parentbc18dd335a161f9229ed3aaab88ce0706cbd9867
list: fix order of arguments for hlist_add_after(_rcu)

All other add functions for lists have the new item as first argument
and the position where it is added as second argument.  This was changed
for no good reason in this function and makes using it unnecessary
confusing.

The name was changed to hlist_add_behind() to cause unconverted code to
generate a compile error instead of using the wrong parameter order.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Ken Helias <kenhelias@firemail.de>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> [intel driver bits]
Cc: Hugh Dickins <hughd@google.com>
Cc: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
15 files changed:
Documentation/RCU/whatisRCU.txt
drivers/gpu/drm/drm_hashtab.c
drivers/net/ethernet/intel/i40e/i40e_ethtool.c
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
drivers/staging/lustre/lustre/libcfs/hash.c
fs/namespace.c
fs/notify/inode_mark.c
fs/notify/vfsmount_mark.c
include/linux/list.h
include/linux/rculist.h
net/batman-adv/fragmentation.c
net/bridge/br_multicast.c
net/ipv4/fib_trie.c
net/ipv6/addrlabel.c
net/xfrm/xfrm_policy.c