Lines Matching refs:wsm
920 struct workspace_manager *wsm;
923 wsm = btrfs_compress_op[type]->workspace_manager;
924 INIT_LIST_HEAD(&wsm->idle_ws);
925 spin_lock_init(&wsm->ws_lock);
926 atomic_set(&wsm->total_ws, 0);
927 init_waitqueue_head(&wsm->ws_wait);
938 atomic_set(&wsm->total_ws, 1);
939 wsm->free_ws = 1;
940 list_add(workspace, &wsm->idle_ws);
966 struct workspace_manager *wsm;
976 wsm = btrfs_compress_op[type]->workspace_manager;
977 idle_ws = &wsm->idle_ws;
978 ws_lock = &wsm->ws_lock;
979 total_ws = &wsm->total_ws;
980 ws_wait = &wsm->ws_wait;
981 free_ws = &wsm->free_ws;
1065 struct workspace_manager *wsm;
1072 wsm = btrfs_compress_op[type]->workspace_manager;
1073 idle_ws = &wsm->idle_ws;
1074 ws_lock = &wsm->ws_lock;
1075 total_ws = &wsm->total_ws;
1076 ws_wait = &wsm->ws_wait;
1077 free_ws = &wsm->free_ws;