Lines Matching refs:btrfs_comp_ws
806 static struct workspaces_list btrfs_comp_ws[BTRFS_COMPRESS_TYPES]; variable
837 INIT_LIST_HEAD(&btrfs_comp_ws[i].idle_ws); in btrfs_init_compress()
838 spin_lock_init(&btrfs_comp_ws[i].ws_lock); in btrfs_init_compress()
839 atomic_set(&btrfs_comp_ws[i].total_ws, 0); in btrfs_init_compress()
840 init_waitqueue_head(&btrfs_comp_ws[i].ws_wait); in btrfs_init_compress()
850 atomic_set(&btrfs_comp_ws[i].total_ws, 1); in btrfs_init_compress()
851 btrfs_comp_ws[i].free_ws = 1; in btrfs_init_compress()
852 list_add(workspace, &btrfs_comp_ws[i].idle_ws); in btrfs_init_compress()
882 idle_ws = &btrfs_comp_ws[idx].idle_ws; in __find_workspace()
883 ws_lock = &btrfs_comp_ws[idx].ws_lock; in __find_workspace()
884 total_ws = &btrfs_comp_ws[idx].total_ws; in __find_workspace()
885 ws_wait = &btrfs_comp_ws[idx].ws_wait; in __find_workspace()
886 free_ws = &btrfs_comp_ws[idx].free_ws; in __find_workspace()
978 idle_ws = &btrfs_comp_ws[idx].idle_ws; in __free_workspace()
979 ws_lock = &btrfs_comp_ws[idx].ws_lock; in __free_workspace()
980 total_ws = &btrfs_comp_ws[idx].total_ws; in __free_workspace()
981 ws_wait = &btrfs_comp_ws[idx].ws_wait; in __free_workspace()
982 free_ws = &btrfs_comp_ws[idx].free_ws; in __free_workspace()
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()
1028 atomic_dec(&btrfs_comp_ws[i].total_ws); in free_workspaces()