Lines Matching refs:btrfs_heuristic_ws
808 static struct workspaces_list btrfs_heuristic_ws; variable
821 INIT_LIST_HEAD(&btrfs_heuristic_ws.idle_ws); in btrfs_init_compress()
822 spin_lock_init(&btrfs_heuristic_ws.ws_lock); in btrfs_init_compress()
823 atomic_set(&btrfs_heuristic_ws.total_ws, 0); in btrfs_init_compress()
824 init_waitqueue_head(&btrfs_heuristic_ws.ws_wait); in btrfs_init_compress()
831 atomic_set(&btrfs_heuristic_ws.total_ws, 1); in btrfs_init_compress()
832 btrfs_heuristic_ws.free_ws = 1; in btrfs_init_compress()
833 list_add(workspace, &btrfs_heuristic_ws.idle_ws); in btrfs_init_compress()
876 idle_ws = &btrfs_heuristic_ws.idle_ws; in __find_workspace()
877 ws_lock = &btrfs_heuristic_ws.ws_lock; in __find_workspace()
878 total_ws = &btrfs_heuristic_ws.total_ws; in __find_workspace()
879 ws_wait = &btrfs_heuristic_ws.ws_wait; in __find_workspace()
880 free_ws = &btrfs_heuristic_ws.free_ws; in __find_workspace()
972 idle_ws = &btrfs_heuristic_ws.idle_ws; in __free_workspace()
973 ws_lock = &btrfs_heuristic_ws.ws_lock; in __free_workspace()
974 total_ws = &btrfs_heuristic_ws.total_ws; in __free_workspace()
975 ws_wait = &btrfs_heuristic_ws.ws_wait; in __free_workspace()
976 free_ws = &btrfs_heuristic_ws.free_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()
1020 atomic_dec(&btrfs_heuristic_ws.total_ws); in free_workspaces()