From: Ying Xue Date: Mon, 12 Jan 2015 06:52:22 +0000 (+0800) Subject: rhashtable: involve rhashtable_lookup_compare_insert routine X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~244^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a868d1e9ab3c534c5ad44e3e5dc46753a1e5636;p=pandora-kernel.git rhashtable: involve rhashtable_lookup_compare_insert routine Introduce a new function called rhashtable_lookup_compare_insert() which is very similar to rhashtable_lookup_insert(). But the former makes use of users' given compare function to look for an object, and then inserts it into hash table if found. As the entire process of search and insertion is under protection of per bucket lock, this can help users to avoid the involvement of extra lock. Signed-off-by: Ying Xue Cc: Thomas Graf Acked-by: Thomas Graf Signed-off-by: David S. Miller --- Reading git-diff-tree failed