Searched hist:da27c9ed17794b4741fe2858ce727ffac671877e (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/mm/ |
H A D | vmalloc.c | diff da27c9ed17794b4741fe2858ce727ffac671877e Fri Aug 07 01:24:12 CDT 2020 Uladzislau Rezki (Sony) <urezki@gmail.com> mm/vmalloc: simplify augment_tree_propagate_check()
This function is for debug purpose only. Currently it uses recursion for tree traversal, checking an augmented value of each node to find out if it is valid or not.
The recursion can corrupt the stack because the tree can be huge if synthetic tests are applied. To prevent it, navigate the tree from bottom to upper levels using a regular list instead, because nodes are linked among each other also. It is faster and without recursion.
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Link: http://lkml.kernel.org/r/20200527205054.1696-2-urezki@gmail.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|