]> 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)
commit4a7cd3f22c5e79bb5f58289f4fa6bde96f1c493b
treebb60a4a72dbf04142d5279aef542f5ab367f1220
parente3d4e07c9e83eb1d933481cc6db1be06c11a7f1a
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