]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
test_rhashtable: Use rhashtable max_size instead of max_shift
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 18 Mar 2015 09:01:19 +0000 (20:01 +1100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Mar 2015 16:46:40 +0000 (12:46 -0400)
This patch converts test_rhashtable to use rhashtable max_size
instead of the obsolete max_shift.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/test_rhashtable.c

index 16974fd89e4e854edabc9b66533b4e3da2e9ccba..2bc403d8f9ee80a19a1e31d206a1cd5e5e632311 100644 (file)
@@ -201,7 +201,7 @@ static int __init test_rht_init(void)
                .key_offset = offsetof(struct test_obj, value),
                .key_len = sizeof(int),
                .hashfn = jhash,
-               .max_shift = 1, /* we expand/shrink manually here */
+               .max_size = 2, /* we expand/shrink manually here */
                .nulls_base = (3U << RHT_BASE_SHIFT),
        };
        int err;