Lines Matching refs:workspace
1027 struct heuristic_ws *workspace; in free_heuristic_ws() local
1029 workspace = list_entry(ws, struct heuristic_ws, list); in free_heuristic_ws()
1031 kvfree(workspace->sample); in free_heuristic_ws()
1032 kfree(workspace->bucket); in free_heuristic_ws()
1033 kfree(workspace->bucket_b); in free_heuristic_ws()
1034 kfree(workspace); in free_heuristic_ws()
1111 struct list_head *workspace; in btrfs_init_workspace_manager() local
1123 workspace = alloc_workspace(type, 0); in btrfs_init_workspace_manager()
1124 if (IS_ERR(workspace)) { in btrfs_init_workspace_manager()
1130 list_add(workspace, &wsm->idle_ws); in btrfs_init_workspace_manager()
1157 struct list_head *workspace; in btrfs_get_workspace() local
1176 workspace = idle_ws->next; in btrfs_get_workspace()
1177 list_del(workspace); in btrfs_get_workspace()
1180 return workspace; in btrfs_get_workspace()
1202 workspace = alloc_workspace(type, level); in btrfs_get_workspace()
1205 if (IS_ERR(workspace)) { in btrfs_get_workspace()
1230 return workspace; in btrfs_get_workspace()
1344 struct list_head *workspace; in btrfs_compress_pages() local
1348 workspace = get_workspace(type, level); in btrfs_compress_pages()
1349 ret = compression_compress_pages(type, workspace, mapping, start, pages, in btrfs_compress_pages()
1351 put_workspace(type, workspace); in btrfs_compress_pages()
1357 struct list_head *workspace; in btrfs_decompress_bio() local
1361 workspace = get_workspace(type, 0); in btrfs_decompress_bio()
1362 ret = compression_decompress_bio(type, workspace, cb); in btrfs_decompress_bio()
1363 put_workspace(type, workspace); in btrfs_decompress_bio()
1376 struct list_head *workspace; in btrfs_decompress() local
1379 workspace = get_workspace(type, 0); in btrfs_decompress()
1380 ret = compression_decompress(type, workspace, data_in, dest_page, in btrfs_decompress()
1382 put_workspace(type, workspace); in btrfs_decompress()