From: Herbert Xu <herbert@gondor.apana.org.au> Date: 2015-03-12 01:30:54
This patch reverts commit c88455ce50ae4224d84960ce2baa53e61580df27
("rhashtable: key_hashfn() must return full hash value") because
the only user of it always masks the hash value.
Signed-off-by: Herbert Xu <redacted>
---
lib/rhashtable.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
From: Herbert Xu <herbert@gondor.apana.org.au> Date: 2015-03-12 01:30:55
Now that we don't have cross-table hashes, we no longer need to
keep the entire hash value so all users of obj_raw_hashfn can
use head_hashfn instead.
Signed-off-by: Herbert Xu <redacted>
---
lib/rhashtable.c | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
From: Herbert Xu <herbert@gondor.apana.org.au> Date: 2015-03-12 01:30:56
key_hashfn has only one caller and it doesn't really need to supply
the key length as an extra parameter.
Signed-off-by: Herbert Xu <redacted>
---
lib/rhashtable.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
From: Herbert Xu <herbert@gondor.apana.org.au> Date: 2015-03-12 01:30:57
Now that the only caller of obj_raw_hashfn is head_hashfn, we can
simply kill it and fold it into the latter.
This patch also moves the common shift from head_hashfn/key_hashfn
into rht_bucket_index.
Signed-off-by: Herbert Xu <redacted>
---
lib/rhashtable.c | 25 +++++++------------------
1 file changed, 7 insertions(+), 18 deletions(-)
From: Herbert Xu <herbert@gondor.apana.org.au> Date: 2015-03-12 03:49:39
This patch reverts commit c88455ce50ae4224d84960ce2baa53e61580df27
("rhashtable: key_hashfn() must return full hash value") because
the only user of it always masks the hash value.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
---
lib/rhashtable.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
From: Herbert Xu <herbert@gondor.apana.org.au> Date: 2015-03-12 03:49:42
Now that we don't have cross-table hashes, we no longer need to
keep the entire hash value so all users of obj_raw_hashfn can
use head_hashfn instead.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
---
lib/rhashtable.c | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
From: Herbert Xu <herbert@gondor.apana.org.au> Date: 2015-03-12 03:49:42
key_hashfn has only one caller and it doesn't really need to supply
the key length as an extra parameter.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
---
lib/rhashtable.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
From: Herbert Xu <herbert@gondor.apana.org.au> Date: 2015-03-12 03:49:43
Now that the only caller of obj_raw_hashfn is head_hashfn, we can
simply kill it and fold it into the latter.
This patch also moves the common shift from head_hashfn/key_hashfn
into rht_bucket_index.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
---
lib/rhashtable.c | 25 +++++++------------------
1 file changed, 7 insertions(+), 18 deletions(-)
From: Thomas Graf <tgraf@suug.ch> Date: 2015-03-12 14:02:34
On 03/12/15 at 02:49pm, Herbert Xu wrote:
This patch reverts commit c88455ce50ae4224d84960ce2baa53e61580df27
("rhashtable: key_hashfn() must return full hash value") because
the only user of it always masks the hash value.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Need for this is gone with new rehashing.
Acked-by: Thomas Graf <tgraf@suug.ch>
From: Thomas Graf <tgraf@suug.ch> Date: 2015-03-12 14:12:22
On 03/12/15 at 02:49pm, Herbert Xu wrote:
Now that we don't have cross-table hashes, we no longer need to
keep the entire hash value so all users of obj_raw_hashfn can
use head_hashfn instead.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
From: Thomas Graf <tgraf@suug.ch> Date: 2015-03-12 14:13:08
On 03/12/15 at 02:49pm, Herbert Xu wrote:
key_hashfn has only one caller and it doesn't really need to supply
the key length as an extra parameter.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
From: Thomas Graf <tgraf@suug.ch> Date: 2015-03-12 14:15:25
On 03/12/15 at 02:49pm, Herbert Xu wrote:
Now that the only caller of obj_raw_hashfn is head_hashfn, we can
simply kill it and fold it into the latter.
This patch also moves the common shift from head_hashfn/key_hashfn
into rht_bucket_index.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
From: David Miller <davem@davemloft.net> Date: 2015-03-12 18:36:14
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: Thu, 12 Mar 2015 14:49:23 +1100
This is a rebase on top of the nested lock annotation fix.
Nothing to see here, just a bunch of simple clean-ups before
I move onto something more substantial (hopefully).
I've applied this series, but please look into the bug Thomas
reported before making any further changes to rhashtable.
Thanks.