bpf: rename list_head -> graph_root in field info types

Many of the structs recently added to track field info for linked-list
head are useful as-is for rbtree root. So let's do a mechanical renaming
of list_head-related types and fields:

include/linux/bpf.h:
  struct btf_field_list_head -> struct btf_field_graph_root
  list_head -> graph_root in struct btf_field union
kernel/bpf/btf.c:
  list_head -> graph_root in struct btf_field_info

This is a nonfunctional change, functionality to actually use these
fields for rbtree will be added in further patches.

Signed-off-by: Dave Marchevsky <davemarchevsky@fb.com>
Link: https://lore.kernel.org/r/20221217082506.1570898-5-davemarchevsky@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
Dave Marchevsky 2022-12-17 00:24:57 -08:00 committed by Alexei Starovoitov
parent 0745324562
commit 30465003ad
4 changed files with 26 additions and 24 deletions

View file

@ -189,7 +189,7 @@ struct btf_field_kptr {
u32 btf_id;
};
struct btf_field_list_head {
struct btf_field_graph_root {
struct btf *btf;
u32 value_btf_id;
u32 node_offset;
@ -201,7 +201,7 @@ struct btf_field {
enum btf_field_type type;
union {
struct btf_field_kptr kptr;
struct btf_field_list_head list_head;
struct btf_field_graph_root graph_root;
};
};