Re: [RFC v2 7/7] net,9p: use new hashtable implementation

2012-08-03 Thread Sasha Levin
On 08/03/2012 08:00 PM, Eric Dumazet wrote: > On Fri, 2012-08-03 at 16:23 +0200, Sasha Levin wrote: >> /* initialize hash table */ >> -for (bucket = 0; bucket < ERRHASHSZ; bucket++) >> -INIT_HLIST_HEAD(&hash_errmap[bucket]); >> +hash_init(&hash_errmap, ERRHASHSZ); > > Why

Re: [RFC v2 7/7] net,9p: use new hashtable implementation

2012-08-03 Thread Eric Dumazet
On Fri, 2012-08-03 at 16:23 +0200, Sasha Levin wrote: > Switch 9p error table to use the new hashtable implementation. This reduces > the amount of > generic unrelated code in 9p. > > Signed-off-by: Sasha Levin > --- > net/9p/error.c | 17 - > 1 files changed, 8 insertions(+),

[RFC v2 7/7] net,9p: use new hashtable implementation

2012-08-03 Thread Sasha Levin
Switch 9p error table to use the new hashtable implementation. This reduces the amount of generic unrelated code in 9p. Signed-off-by: Sasha Levin --- net/9p/error.c | 17 - 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/net/9p/error.c b/net/9p/error.c index 2a