Lines Matching refs:idle_ws
796 struct list_head idle_ws; member
821 INIT_LIST_HEAD(&btrfs_heuristic_ws.idle_ws); in btrfs_init_compress()
833 list_add(workspace, &btrfs_heuristic_ws.idle_ws); in btrfs_init_compress()
837 INIT_LIST_HEAD(&btrfs_comp_ws[i].idle_ws); in btrfs_init_compress()
852 list_add(workspace, &btrfs_comp_ws[i].idle_ws); in btrfs_init_compress()
869 struct list_head *idle_ws; in __find_workspace() local
876 idle_ws = &btrfs_heuristic_ws.idle_ws; in __find_workspace()
882 idle_ws = &btrfs_comp_ws[idx].idle_ws; in __find_workspace()
891 if (!list_empty(idle_ws)) { in __find_workspace()
892 workspace = idle_ws->next; in __find_workspace()
965 struct list_head *idle_ws; in __free_workspace() local
972 idle_ws = &btrfs_heuristic_ws.idle_ws; in __free_workspace()
978 idle_ws = &btrfs_comp_ws[idx].idle_ws; in __free_workspace()
987 list_add(workspace, idle_ws); in __free_workspace()
1016 while (!list_empty(&btrfs_heuristic_ws.idle_ws)) { in free_workspaces()
1017 workspace = btrfs_heuristic_ws.idle_ws.next; in free_workspaces()
1024 while (!list_empty(&btrfs_comp_ws[i].idle_ws)) { in free_workspaces()
1025 workspace = btrfs_comp_ws[i].idle_ws.next; in free_workspaces()