arg_map 143 net/ceph/osdmap.c struct crush_choose_arg_map *arg_map; arg_map 145 net/ceph/osdmap.c arg_map = kzalloc(sizeof(*arg_map), GFP_NOIO); arg_map 146 net/ceph/osdmap.c if (!arg_map) arg_map 149 net/ceph/osdmap.c RB_CLEAR_NODE(&arg_map->node); arg_map 150 net/ceph/osdmap.c return arg_map; arg_map 153 net/ceph/osdmap.c static void free_choose_arg_map(struct crush_choose_arg_map *arg_map) arg_map 155 net/ceph/osdmap.c if (arg_map) { arg_map 158 net/ceph/osdmap.c WARN_ON(!RB_EMPTY_NODE(&arg_map->node)); arg_map 160 net/ceph/osdmap.c for (i = 0; i < arg_map->size; i++) { arg_map 161 net/ceph/osdmap.c struct crush_choose_arg *arg = &arg_map->args[i]; arg_map 168 net/ceph/osdmap.c kfree(arg_map->args); arg_map 169 net/ceph/osdmap.c kfree(arg_map); arg_map 179 net/ceph/osdmap.c struct crush_choose_arg_map *arg_map = arg_map 183 net/ceph/osdmap.c erase_choose_arg_map(&c->choose_args, arg_map); arg_map 184 net/ceph/osdmap.c free_choose_arg_map(arg_map); arg_map 263 net/ceph/osdmap.c struct crush_choose_arg_map *arg_map = NULL; arg_map 269 net/ceph/osdmap.c arg_map = alloc_choose_arg_map(); arg_map 270 net/ceph/osdmap.c if (!arg_map) { arg_map 275 net/ceph/osdmap.c ceph_decode_64_safe(p, end, arg_map->choose_args_index, arg_map 277 net/ceph/osdmap.c arg_map->size = c->max_buckets; arg_map 278 net/ceph/osdmap.c arg_map->args = kcalloc(arg_map->size, sizeof(*arg_map->args), arg_map 280 net/ceph/osdmap.c if (!arg_map->args) { arg_map 291 net/ceph/osdmap.c if (bucket_index >= arg_map->size) arg_map 294 net/ceph/osdmap.c arg = &arg_map->args[bucket_index]; arg_map 304 net/ceph/osdmap.c insert_choose_arg_map(&c->choose_args, arg_map); arg_map 312 net/ceph/osdmap.c free_choose_arg_map(arg_map); arg_map 2281 net/ceph/osdmap.c struct crush_choose_arg_map *arg_map; arg_map 2286 net/ceph/osdmap.c arg_map = lookup_choose_arg_map(&map->crush->choose_args, arg_map 2288 net/ceph/osdmap.c if (!arg_map) arg_map 2289 net/ceph/osdmap.c arg_map = lookup_choose_arg_map(&map->crush->choose_args, arg_map 2295 net/ceph/osdmap.c arg_map ? arg_map->args : NULL);