Home
last modified time | relevance | path

Searched refs:ws (Results 1 – 7 of 7) sorted by relevance

/fs/btrfs/
Dcompression.c782 static void heuristic_put_workspace(struct list_head *ws) in heuristic_put_workspace() argument
784 btrfs_put_workspace(&heuristic_wsm, ws); in heuristic_put_workspace()
787 static void free_heuristic_ws(struct list_head *ws) in free_heuristic_ws() argument
791 workspace = list_entry(ws, struct heuristic_ws, list); in free_heuristic_ws()
801 struct heuristic_ws *ws; in alloc_heuristic_ws() local
803 ws = kzalloc(sizeof(*ws), GFP_KERNEL); in alloc_heuristic_ws()
804 if (!ws) in alloc_heuristic_ws()
807 ws->sample = kvmalloc(MAX_SAMPLE_SIZE, GFP_KERNEL); in alloc_heuristic_ws()
808 if (!ws->sample) in alloc_heuristic_ws()
811 ws->bucket = kcalloc(BUCKET_SIZE, sizeof(*ws->bucket), GFP_KERNEL); in alloc_heuristic_ws()
[all …]
Dzstd.c94 static void zstd_free_workspace(struct list_head *ws);
173 struct list_head *ws; in zstd_init_workspace_manager() local
187 ws = zstd_alloc_workspace(ZSTD_BTRFS_MAX_LEVEL); in zstd_init_workspace_manager()
188 if (IS_ERR(ws)) { in zstd_init_workspace_manager()
193 list_add(ws, &wsm.idle_ws[ZSTD_BTRFS_MAX_LEVEL - 1]); in zstd_init_workspace_manager()
230 struct list_head *ws; in zstd_find_workspace() local
237 ws = wsm.idle_ws[i].next; in zstd_find_workspace()
238 workspace = list_to_workspace(ws); in zstd_find_workspace()
239 list_del_init(ws); in zstd_find_workspace()
247 return ws; in zstd_find_workspace()
[all …]
Dzlib.c44 struct list_head *ws = btrfs_get_workspace(&wsm, level); in zlib_get_workspace() local
45 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_get_workspace()
49 return ws; in zlib_get_workspace()
52 static void zlib_put_workspace(struct list_head *ws) in zlib_put_workspace() argument
54 btrfs_put_workspace(&wsm, ws); in zlib_put_workspace()
57 static void zlib_free_workspace(struct list_head *ws) in zlib_free_workspace() argument
59 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_free_workspace()
91 static int zlib_compress_pages(struct list_head *ws, in zlib_compress_pages() argument
99 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_compress_pages()
231 static int zlib_decompress_bio(struct list_head *ws, struct compressed_bio *cb) in zlib_decompress_bio() argument
[all …]
Dlzo.c81 static void lzo_put_workspace(struct list_head *ws) in lzo_put_workspace() argument
83 btrfs_put_workspace(&wsm, ws); in lzo_put_workspace()
86 static void lzo_free_workspace(struct list_head *ws) in lzo_free_workspace() argument
88 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_free_workspace()
134 static int lzo_compress_pages(struct list_head *ws, in lzo_compress_pages() argument
142 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_compress_pages()
306 static int lzo_decompress_bio(struct list_head *ws, struct compressed_bio *cb) in lzo_decompress_bio() argument
308 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_decompress_bio()
447 static int lzo_decompress(struct list_head *ws, unsigned char *data_in, in lzo_decompress() argument
452 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_decompress()
Dcompression.h126 void btrfs_put_workspace(struct workspace_manager *wsm, struct list_head *ws);
136 void (*put_workspace)(struct list_head *ws);
/fs/
Deventpoll.c171 struct wakeup_source __rcu *ws; member
214 struct wakeup_source *ws; member
625 return rcu_dereference_check(epi->ws, lockdep_is_held(&epi->ep->mtx)); in ep_wakeup_source()
631 struct wakeup_source *ws = ep_wakeup_source(epi); in ep_pm_stay_awake() local
633 if (ws) in ep_pm_stay_awake()
634 __pm_stay_awake(ws); in ep_pm_stay_awake()
639 return rcu_access_pointer(epi->ws) ? true : false; in ep_has_wakeup_source()
645 struct wakeup_source *ws; in ep_pm_stay_awake_rcu() local
648 ws = rcu_dereference(epi->ws); in ep_pm_stay_awake_rcu()
649 if (ws) in ep_pm_stay_awake_rcu()
[all …]
/fs/afs/
Dcell.c849 struct afs_cell *ws; in afs_cell_purge() local
854 ws = rcu_access_pointer(net->ws_cell); in afs_cell_purge()
857 afs_put_cell(net, ws); in afs_cell_purge()