diff options
author | Thomas Graf <tgraf@suug.ch> | 2014-08-13 10:38:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-14 18:13:39 -0400 |
commit | c91eee56dc4f8c3d9ae834bacb835596d47a709e (patch) | |
tree | f4bdff8e42f8df9aa30cb8d058a172c33823516c /lib | |
parent | 5300fdcb7b7e97d83033bc7196582705524d35ea (diff) |
rhashtable: unexport and make rht_obj() static
No need to export rht_obj(), all inner to outer object translations
occur internally. It was intended to be used with rht_for_each() which
now primarily serves as the iterator for rhashtable_remove_pprev() to
effectively flush and free the full table.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rhashtable.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/rhashtable.c b/lib/rhashtable.c index 338dd7aa5e13..a2c78810ebc1 100644 --- a/lib/rhashtable.c +++ b/lib/rhashtable.c | |||
@@ -38,16 +38,10 @@ int lockdep_rht_mutex_is_held(const struct rhashtable *ht) | |||
38 | EXPORT_SYMBOL_GPL(lockdep_rht_mutex_is_held); | 38 | EXPORT_SYMBOL_GPL(lockdep_rht_mutex_is_held); |
39 | #endif | 39 | #endif |
40 | 40 | ||
41 | /** | 41 | static void *rht_obj(const struct rhashtable *ht, const struct rhash_head *he) |
42 | * rht_obj - cast hash head to outer object | ||
43 | * @ht: hash table | ||
44 | * @he: hashed node | ||
45 | */ | ||
46 | void *rht_obj(const struct rhashtable *ht, const struct rhash_head *he) | ||
47 | { | 42 | { |
48 | return (void *) he - ht->p.head_offset; | 43 | return (void *) he - ht->p.head_offset; |
49 | } | 44 | } |
50 | EXPORT_SYMBOL_GPL(rht_obj); | ||
51 | 45 | ||
52 | static u32 __hashfn(const struct rhashtable *ht, const void *key, | 46 | static u32 __hashfn(const struct rhashtable *ht, const void *key, |
53 | u32 len, u32 hsize) | 47 | u32 len, u32 hsize) |