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)
commit3502cad73c4bbf8f6365d539e814159275252c59
treebb60a4a72dbf04142d5279aef542f5ab367f1220
parent33f11d16142b06588eedfc1dd8cf93790979a712
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