summaryrefslogtreecommitdiffstats
path: root/kernel/futex
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2023-06-25 04:13:23 +0200
committerAndrew Morton <akpm@linux-foundation.org>2023-08-18 19:12:07 +0200
commit3fade62b62e84dd8dbf6e92d494b0e7eca750c43 (patch)
treecc4c51b7a1616a9e3c29a33bca345cfae1452b5b /kernel/futex
parentmm/page_alloc: fix min_free_kbytes calculation regarding ZONE_MOVABLE (diff)
downloadlinux-3fade62b62e84dd8dbf6e92d494b0e7eca750c43.tar.xz
linux-3fade62b62e84dd8dbf6e92d494b0e7eca750c43.zip
mm/mm_init.c: remove obsolete macro HASH_SMALL
HASH_SMALL only works when parameter numentries is 0. But the sole caller futex_init() never calls alloc_large_system_hash() with numentries set to 0. So HASH_SMALL is obsolete and remove it. Link: https://lkml.kernel.org/r/20230625021323.849147-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Reviewed-by: Mike Rapoport (IBM) <rppt@kernel.org> Cc: André Almeida <andrealmeid@igalia.com> Cc: Darren Hart <dvhart@infradead.org> Cc: Davidlohr Bueso <dave@stgolabs.net> Cc: Ingo Molnar <mingo@redhat.com> Cc: Miaohe Lin <linmiaohe@huawei.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'kernel/futex')
-rw-r--r--kernel/futex/core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/futex/core.c b/kernel/futex/core.c
index 514e4582b863..f10587d1d481 100644
--- a/kernel/futex/core.c
+++ b/kernel/futex/core.c
@@ -1132,8 +1132,7 @@ static int __init futex_init(void)
#endif
futex_queues = alloc_large_system_hash("futex", sizeof(*futex_queues),
- futex_hashsize, 0,
- futex_hashsize < 256 ? HASH_SMALL : 0,
+ futex_hashsize, 0, 0,
&futex_shift, NULL,
futex_hashsize, futex_hashsize);
futex_hashsize = 1UL << futex_shift;