]> git.baikalelectronics.ru Git - kernel.git/commit
rhashtable: replace rht_ptr_locked() with rht_assign_locked()
authorNeilBrown <neilb@suse.com>
Fri, 12 Apr 2019 01:52:08 +0000 (11:52 +1000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Apr 2019 00:34:45 +0000 (17:34 -0700)
commitb4e488ffbf34fdd4678b6b9f7ef011edf167087b
tree0e77f82fcf92c8483e192ecba4acb6ce8c5a86a8
parent89620654ead65f20e460a55a399e894e1addba83
rhashtable: replace rht_ptr_locked() with rht_assign_locked()

The only times rht_ptr_locked() is used, it is to store a new
value in a bucket-head.  This is the only time it makes sense
to use it too.  So replace it by a function which does the
whole task:  Sets the lock bit and assigns to a bucket head.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rhashtable.h
lib/rhashtable.c