Commit 1d2dbe7
bpf: Remove migrate_{disable|enable} in bpf_obj_free_fields()
The callers of bpf_obj_free_fields() have already guaranteed that the
migration is disabled, therefore, there is no need to invoke
migrate_{disable,enable} pair in bpf_obj_free_fields()'s underly
implementation.
This patch removes unnecessary migrate_{disable|enable} pairs from
bpf_obj_free_fields() and its callees: bpf_list_head_free() and
bpf_rb_root_free().
Signed-off-by: Hou Tao <houtao1@huawei.com>
Link: https://lore.kernel.org/r/20250108010728.207536-12-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>1 parent 4b7e7cd commit 1d2dbe7
2 files changed
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2066 | 2066 | | |
2067 | 2067 | | |
2068 | 2068 | | |
2069 | | - | |
2070 | 2069 | | |
2071 | | - | |
2072 | 2070 | | |
2073 | 2071 | | |
2074 | 2072 | | |
| |||
2105 | 2103 | | |
2106 | 2104 | | |
2107 | 2105 | | |
2108 | | - | |
2109 | 2106 | | |
2110 | | - | |
2111 | 2107 | | |
2112 | 2108 | | |
2113 | 2109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
799 | | - | |
800 | 799 | | |
801 | 800 | | |
802 | 801 | | |
803 | | - | |
804 | 802 | | |
805 | 803 | | |
806 | 804 | | |
| |||
0 commit comments