Home
last modified time | relevance | path

Searched refs:wsm (Results 1 – 4 of 4) sorted by relevance

/fs/btrfs/
Dzstd.c85 static struct zstd_workspace_manager wsm; variable
108 spin_lock_bh(&wsm.lock); in zstd_reclaim_timer_fn()
110 if (list_empty(&wsm.lru_list)) { in zstd_reclaim_timer_fn()
111 spin_unlock_bh(&wsm.lock); in zstd_reclaim_timer_fn()
115 list_for_each_prev_safe(pos, next, &wsm.lru_list) { in zstd_reclaim_timer_fn()
132 if (list_empty(&wsm.idle_ws[level - 1])) in zstd_reclaim_timer_fn()
133 clear_bit(level - 1, &wsm.active_map); in zstd_reclaim_timer_fn()
137 if (!list_empty(&wsm.lru_list)) in zstd_reclaim_timer_fn()
138 mod_timer(&wsm.timer, jiffies + ZSTD_BTRFS_RECLAIM_JIFFIES); in zstd_reclaim_timer_fn()
140 spin_unlock_bh(&wsm.lock); in zstd_reclaim_timer_fn()
[all …]
Dcompression.c980 struct workspace_manager *wsm; in btrfs_init_workspace_manager() local
983 wsm = btrfs_compress_op[type]->workspace_manager; in btrfs_init_workspace_manager()
984 INIT_LIST_HEAD(&wsm->idle_ws); in btrfs_init_workspace_manager()
985 spin_lock_init(&wsm->ws_lock); in btrfs_init_workspace_manager()
986 atomic_set(&wsm->total_ws, 0); in btrfs_init_workspace_manager()
987 init_waitqueue_head(&wsm->ws_wait); in btrfs_init_workspace_manager()
998 atomic_set(&wsm->total_ws, 1); in btrfs_init_workspace_manager()
999 wsm->free_ws = 1; in btrfs_init_workspace_manager()
1000 list_add(workspace, &wsm->idle_ws); in btrfs_init_workspace_manager()
1026 struct workspace_manager *wsm; in btrfs_get_workspace() local
[all …]
Dlzo.c65 static struct workspace_manager wsm; variable
475 .workspace_manager = &wsm,
Dzlib.c34 static struct workspace_manager wsm; variable
459 .workspace_manager = &wsm,