Hello,
(Sasha, would it be possible to change your MUA so that it breaks long
lines. It's pretty difficult to reply to.)
On Wed, Aug 15, 2012 at 02:24:49AM +0200, Sasha Levin wrote:
> The hashtable uses hlist. hlist provides us with an entire family of
> init functions which I'm supposed to
On 08/15/2012 01:25 AM, NeilBrown wrote:
> On Tue, 14 Aug 2012 18:24:35 +0200 Sasha Levin
> wrote:
>
>
>> +static inline void hash_init_size(struct hlist_head *hashtable, int bits)
>> +{
>> +int i;
>> +
>> +for (i = 0; i < HASH_SIZE(bits); i++)
>> +INIT_HLIST_HEAD(hashtable
On Tue, 14 Aug 2012 18:24:35 +0200 Sasha Levin
wrote:
> +static inline void hash_init_size(struct hlist_head *hashtable, int bits)
> +{
> + int i;
> +
> + for (i = 0; i < HASH_SIZE(bits); i++)
> + INIT_HLIST_HEAD(hashtable + i);
> +}
This seems like an inefficient way to do
This hashtable implementation is using hlist buckets to provide a simple
hashtable to prevent it from getting reimplemented all over the kernel.
Signed-off-by: Sasha Levin
---
include/linux/hashtable.h | 284 +
1 files changed, 284 insertions(+), 0
This hashtable implementation is using hlist buckets to provide a simple
hashtable to prevent it from getting reimplemented all over the kernel.
Signed-off-by: Sasha Levin levinsasha...@gmail.com
---
include/linux/hashtable.h | 284 +
1 files changed,
On Tue, 14 Aug 2012 18:24:35 +0200 Sasha Levin levinsasha...@gmail.com
wrote:
+static inline void hash_init_size(struct hlist_head *hashtable, int bits)
+{
+ int i;
+
+ for (i = 0; i HASH_SIZE(bits); i++)
+ INIT_HLIST_HEAD(hashtable + i);
+}
This seems like an
On 08/15/2012 01:25 AM, NeilBrown wrote:
On Tue, 14 Aug 2012 18:24:35 +0200 Sasha Levin levinsasha...@gmail.com
wrote:
+static inline void hash_init_size(struct hlist_head *hashtable, int bits)
+{
+int i;
+
+for (i = 0; i HASH_SIZE(bits); i++)
+
Hello,
(Sasha, would it be possible to change your MUA so that it breaks long
lines. It's pretty difficult to reply to.)
On Wed, Aug 15, 2012 at 02:24:49AM +0200, Sasha Levin wrote:
The hashtable uses hlist. hlist provides us with an entire family of
init functions which I'm supposed to use
8 matches
Mail list logo