From: Bang Li Date: Tue, 22 Mar 2022 21:43:02 +0000 (-0700) Subject: mm/vmalloc: fix comments about vmap_area struct X-Git-Tag: baikal/aarch64/sdk6.1~4438^2~138 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=6c55c271c1e4aca4e820642ef4b5b5a814b3b9a8;p=kernel.git mm/vmalloc: fix comments about vmap_area struct The vmap_area_root should be in the "busy" tree and the free_vmap_area_root should be in the "free" tree. Link: https://lkml.kernel.org/r/20220305011510.33596-1-libang.linuxer@gmail.com Fixes: 84bde6f68d65 ("mm/vmalloc: modify struct vmap_area to reduce its size") Signed-off-by: Bang Li Reviewed-by: Uladzislau Rezki (Sony) Cc: Pengfei Li Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h index 880227b9f0440..05065915edd7c 100644 --- a/include/linux/vmalloc.h +++ b/include/linux/vmalloc.h @@ -80,8 +80,8 @@ struct vmap_area { /* * The following two variables can be packed, because * a vmap_area object can be either: - * 1) in "free" tree (root is vmap_area_root) - * 2) or "busy" tree (root is free_vmap_area_root) + * 1) in "free" tree (root is free_vmap_area_root) + * 2) or "busy" tree (root is vmap_area_root) */ union { unsigned long subtree_max_size; /* in "free" tree */