]> www.infradead.org Git - users/jedix/linux-maple.git/commit
lib/stackdepot: add depot_fetch_stack helper
authorAndrey Konovalov <andreyknvl@google.com>
Mon, 20 Nov 2023 17:47:03 +0000 (18:47 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 20 Nov 2023 21:16:37 +0000 (13:16 -0800)
commitea03792411f3a82781bd4c35b1651eeae1a12980
treee3bc5c2b2bf1d64557f79fcfb4fbbaa138beda40
parent52b6b44eb0692e44c44ac9718c33bf92e49b3582
lib/stackdepot: add depot_fetch_stack helper

Add a helper depot_fetch_stack function that fetches the pointer to a
stack record.

With this change, all static depot_* functions now operate on stack pools
and the exported stack_depot_* functions operate on the hash table.

Link: https://lkml.kernel.org/r/170d8c202f29dc8e3d5491ee074d1e9e029a46db.1700502145.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Reviewed-by: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Evgenii Stepanov <eugenis@google.com>
Cc: Marco Elver <elver@google.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/stackdepot.c