• Home
  • Raw
  • Download

Lines Matching refs:work

976 	struct crush_work *work;  in alloc_workspace()  local
983 work = ceph_kvmalloc(work_size, GFP_NOIO); in alloc_workspace()
984 if (!work) in alloc_workspace()
987 INIT_LIST_HEAD(&work->item); in alloc_workspace()
988 crush_init_workspace(c, work); in alloc_workspace()
989 return work; in alloc_workspace()
992 static void free_workspace(struct crush_work *work) in free_workspace() argument
994 WARN_ON(!list_empty(&work->item)); in free_workspace()
995 kvfree(work); in free_workspace()
1008 struct crush_work *work) in add_initial_workspace() argument
1012 list_add(&work->item, &wsm->idle_ws); in add_initial_workspace()
1019 struct crush_work *work; in cleanup_workspace_manager() local
1022 work = list_first_entry(&wsm->idle_ws, struct crush_work, in cleanup_workspace_manager()
1024 list_del_init(&work->item); in cleanup_workspace_manager()
1025 free_workspace(work); in cleanup_workspace_manager()
1038 struct crush_work *work; in get_workspace() local
1044 work = list_first_entry(&wsm->idle_ws, struct crush_work, in get_workspace()
1046 list_del_init(&work->item); in get_workspace()
1049 return work; in get_workspace()
1065 work = alloc_workspace(c); in get_workspace()
1066 if (!work) { in get_workspace()
1078 return work; in get_workspace()
1086 struct crush_work *work) in put_workspace() argument
1090 list_add(&work->item, &wsm->idle_ws); in put_workspace()
1097 free_workspace(work); in put_workspace()
1247 struct crush_work *work; in osdmap_set_crush() local
1252 work = alloc_workspace(crush); in osdmap_set_crush()
1253 if (!work) { in osdmap_set_crush()
1262 add_initial_workspace(&map->crush_wsm, work); in osdmap_set_crush()
2480 struct crush_work *work; in do_crush() local
2491 work = get_workspace(&map->crush_wsm, map->crush); in do_crush()
2493 weight, weight_max, work, in do_crush()
2495 put_workspace(&map->crush_wsm, work); in do_crush()