Lines Matching refs:btrfs_heuristic_ws
793 static struct workspaces_list btrfs_heuristic_ws; variable
806 INIT_LIST_HEAD(&btrfs_heuristic_ws.idle_ws); in btrfs_init_compress()
807 spin_lock_init(&btrfs_heuristic_ws.ws_lock); in btrfs_init_compress()
808 atomic_set(&btrfs_heuristic_ws.total_ws, 0); in btrfs_init_compress()
809 init_waitqueue_head(&btrfs_heuristic_ws.ws_wait); in btrfs_init_compress()
816 atomic_set(&btrfs_heuristic_ws.total_ws, 1); in btrfs_init_compress()
817 btrfs_heuristic_ws.free_ws = 1; in btrfs_init_compress()
818 list_add(workspace, &btrfs_heuristic_ws.idle_ws); in btrfs_init_compress()
861 idle_ws = &btrfs_heuristic_ws.idle_ws; in __find_workspace()
862 ws_lock = &btrfs_heuristic_ws.ws_lock; in __find_workspace()
863 total_ws = &btrfs_heuristic_ws.total_ws; in __find_workspace()
864 ws_wait = &btrfs_heuristic_ws.ws_wait; in __find_workspace()
865 free_ws = &btrfs_heuristic_ws.free_ws; in __find_workspace()
957 idle_ws = &btrfs_heuristic_ws.idle_ws; in __free_workspace()
958 ws_lock = &btrfs_heuristic_ws.ws_lock; in __free_workspace()
959 total_ws = &btrfs_heuristic_ws.total_ws; in __free_workspace()
960 ws_wait = &btrfs_heuristic_ws.ws_wait; in __free_workspace()
961 free_ws = &btrfs_heuristic_ws.free_ws; in __free_workspace()
1001 while (!list_empty(&btrfs_heuristic_ws.idle_ws)) { in free_workspaces()
1002 workspace = btrfs_heuristic_ws.idle_ws.next; in free_workspaces()
1005 atomic_dec(&btrfs_heuristic_ws.total_ws); in free_workspaces()