lib/stackdepot: rename next_pool_inited to next_pool_required
authorAndrey Konovalov <andreyknvl@google.com>
Fri, 10 Feb 2023 21:16:02 +0000 (22:16 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 17 Feb 2023 04:43:51 +0000 (20:43 -0800)
commitd11a5621f3252120dfc7cef7600a90bd8e605caf
treea16ff43928a2b79347f1239ff064fbc2c8cb8a7a
parentcd0fc64e76844758b78d0fd376ae3ca4fd802049
lib/stackdepot: rename next_pool_inited to next_pool_required

Stack depot uses next_pool_inited to mark that either the next pool is
initialized or the limit on the number of pools is reached. However,
the flag name only reflects the former part of its purpose, which is
confusing.

Rename next_pool_inited to next_pool_required and invert its value.

Also annotate usages of next_pool_required with comments.

Link: https://lkml.kernel.org/r/484fd2695dff7a9bdc437a32f8a6ee228535aa02.1676063693.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Reviewed-by: Alexander Potapenko <glider@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/stackdepot.c