hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/net/ceph/crush/crush.c
....@@ -2,7 +2,6 @@
22 #ifdef __KERNEL__
33 # include <linux/slab.h>
44 # include <linux/crush/crush.h>
5
-void clear_choose_args(struct crush_map *c);
65 #else
76 # include "crush_compat.h"
87 # include "crush.h"
....@@ -130,6 +129,8 @@
130129 #ifndef __KERNEL__
131130 kfree(map->choose_tries);
132131 #else
132
+ clear_crush_names(&map->type_names);
133
+ clear_crush_names(&map->names);
133134 clear_choose_args(map);
134135 #endif
135136 kfree(map);