]> git.baikalelectronics.ru Git - kernel.git/commit
rhashtable: add function to replace an element
authorTom Herbert <tom@herbertland.com>
Tue, 15 Dec 2015 23:41:36 +0000 (15:41 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Dec 2015 04:25:20 +0000 (23:25 -0500)
commit82ee60cedc90296f7d82d2d77b47e4692cf7fe4c
treebb60a4a72dbf04142d5279aef542f5ab367f1220
parent2ea166a6cc0772f83bb7bcd50d5274f33ca7741c
rhashtable: add function to replace an element

Add the rhashtable_replace_fast function. This replaces one object in
the table with another atomically. The hashes of the new and old objects
must be equal.

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rhashtable.h