Searched refs:idle_ws (Results 1 – 5 of 5) sorted by relevance
79 struct list_head idle_ws[ZSTD_BTRFS_MAX_LEVEL]; member132 if (list_empty(&wsm.idle_ws[level - 1])) in zstd_reclaim_timer_fn()184 INIT_LIST_HEAD(&wsm.idle_ws[i]); in zstd_init_workspace_manager()192 list_add(ws, &wsm.idle_ws[ZSTD_BTRFS_MAX_LEVEL - 1]); in zstd_init_workspace_manager()203 while (!list_empty(&wsm.idle_ws[i])) { in zstd_cleanup_workspace_manager()204 workspace = container_of(wsm.idle_ws[i].next, in zstd_cleanup_workspace_manager()235 if (!list_empty(&wsm.idle_ws[i])) { in zstd_find_workspace()236 ws = wsm.idle_ws[i].next; in zstd_find_workspace()243 if (list_empty(&wsm.idle_ws[i])) in zstd_find_workspace()313 if (list_empty(&wsm.idle_ws[ZSTD_BTRFS_MAX_LEVEL - 1])) { in zstd_put_workspace()[all …]
919 INIT_LIST_HEAD(&wsm->idle_ws); in btrfs_init_workspace_manager()935 list_add(workspace, &wsm->idle_ws); in btrfs_init_workspace_manager()945 while (!list_empty(&wsman->idle_ws)) { in btrfs_cleanup_workspace_manager()946 ws = wsman->idle_ws.next; in btrfs_cleanup_workspace_manager()965 struct list_head *idle_ws; in btrfs_get_workspace() local972 idle_ws = &wsm->idle_ws; in btrfs_get_workspace()980 if (!list_empty(idle_ws)) { in btrfs_get_workspace()981 workspace = idle_ws->next; in btrfs_get_workspace()1061 struct list_head *idle_ws; in btrfs_put_workspace() local1068 idle_ws = &wsm->idle_ws; in btrfs_put_workspace()[all …]
114 struct list_head idle_ws; member
141 struct list_head idle_ws; member
1000 INIT_LIST_HEAD(&wsm->idle_ws); in init_workspace_manager()1010 WARN_ON(!list_empty(&wsm->idle_ws)); in add_initial_workspace()1012 list_add(&work->item, &wsm->idle_ws); in add_initial_workspace()1021 while (!list_empty(&wsm->idle_ws)) { in cleanup_workspace_manager()1022 work = list_first_entry(&wsm->idle_ws, struct crush_work, in cleanup_workspace_manager()1043 if (!list_empty(&wsm->idle_ws)) { in get_workspace()1044 work = list_first_entry(&wsm->idle_ws, struct crush_work, in get_workspace()1090 list_add(&work->item, &wsm->idle_ws); in put_workspace()