Skip to content

Commit 4f509df

Browse files
herbertxdavem330
authored andcommitted
test_rhashtable: Use rhashtable max_size instead of max_shift
This patch converts test_rhashtable to use rhashtable max_size instead of the obsolete max_shift. Signed-off-by: Herbert Xu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 446c89a commit 4f509df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/test_rhashtable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ static int __init test_rht_init(void)
201201
.key_offset = offsetof(struct test_obj, value),
202202
.key_len = sizeof(int),
203203
.hashfn = jhash,
204-
.max_shift = 1, /* we expand/shrink manually here */
204+
.max_size = 2, /* we expand/shrink manually here */
205205
.nulls_base = (3U << RHT_BASE_SHIFT),
206206
};
207207
int err;

0 commit comments

Comments
 (0)