diff options
| author | Uladzislau Rezki (Sony) <[email protected]> | 2022-06-07 09:34:45 +0000 |
|---|---|---|
| committer | akpm <[email protected]> | 2022-07-04 01:08:41 +0000 |
| commit | 8eb510db2125ab471967819d1f8749162588bba9 (patch) | |
| tree | f76e530ce9ff3836c6ba3b6359e6bef143c2e218 /lib/test_vmalloc.c | |
| parent | mm: shrinkers: add scan interface for shrinker debugfs (diff) | |
| download | kernel-8eb510db2125ab471967819d1f8749162588bba9.tar.gz kernel-8eb510db2125ab471967819d1f8749162588bba9.zip | |
mm/vmalloc: make link_va()/unlink_va() common to different rb_root
Patch series "Reduce a vmalloc internal lock contention preparation work".
This small serias is preparation work to implement per-cpu vmalloc
allocation in order to reduce a high internal lock contention. This
series does not introduce any functional changes, it is only about
preparation.
This patch (of 5):
Currently link_va() and unlik_va(), in order to figure out a tree type,
compares a passed root value with a global free_vmap_area_root variable to
distinguish the augmented rb-tree from a regular one. It is hard coded
since such functions can manipulate only with specific
"free_vmap_area_root" tree that represents a global free vmap space.
Make it common by introducing "_augment" versions of both internal
functions, so it is possible to deal with different trees.
There is no functional change as a result of this patch.
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Uladzislau Rezki (Sony) <[email protected]>
Reviewed-by: Baoquan He <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Nicholas Piggin <[email protected]>
Cc: Oleksiy Avramchenko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/test_vmalloc.c')
0 files changed, 0 insertions, 0 deletions
