Searched refs:free_ws (Results 1 – 5 of 5) sorted by relevance
934 wsm->free_ws = 1; in btrfs_init_workspace_manager()969 int *free_ws; in btrfs_get_workspace() local976 free_ws = &wsm->free_ws; in btrfs_get_workspace()983 (*free_ws)--; in btrfs_get_workspace()993 if (atomic_read(total_ws) > cpus && !*free_ws) in btrfs_get_workspace()1065 int *free_ws; in btrfs_put_workspace() local1072 free_ws = &wsm->free_ws; in btrfs_put_workspace()1075 if (*free_ws <= num_online_cpus()) { in btrfs_put_workspace()1077 (*free_ws)++; in btrfs_put_workspace()
117 int free_ws; member
98 static void free_ws(struct wspace *ws) in free_ws() function135 free_ws(ws); in alloc_ws()480 free_ws(ws); in run_exercise()
144 int free_ws; member
1003 wsm->free_ws = 0; in init_workspace_manager()1014 wsm->free_ws = 1; in add_initial_workspace()1028 wsm->free_ws = 0; in cleanup_workspace_manager()1047 wsm->free_ws--; in get_workspace()1057 if (atomic_read(&wsm->total_ws) > cpus && !wsm->free_ws) in get_workspace()1089 if (wsm->free_ws <= num_online_cpus()) { in put_workspace()1091 wsm->free_ws++; in put_workspace()