Home
last modified time | relevance | path

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

/fs/btrfs/
Dcompression.c70 static int compression_compress_pages(int type, struct list_head *ws, in compression_compress_pages() argument
77 return zlib_compress_pages(ws, mapping, start, pages, in compression_compress_pages()
80 return lzo_compress_pages(ws, mapping, start, pages, in compression_compress_pages()
83 return zstd_compress_pages(ws, mapping, start, pages, in compression_compress_pages()
101 static int compression_decompress_bio(struct list_head *ws, in compression_decompress_bio() argument
105 case BTRFS_COMPRESS_ZLIB: return zlib_decompress_bio(ws, cb); in compression_decompress_bio()
106 case BTRFS_COMPRESS_LZO: return lzo_decompress_bio(ws, cb); in compression_decompress_bio()
107 case BTRFS_COMPRESS_ZSTD: return zstd_decompress_bio(ws, cb); in compression_decompress_bio()
118 static int compression_decompress(int type, struct list_head *ws, in compression_decompress() argument
123 case BTRFS_COMPRESS_ZLIB: return zlib_decompress(ws, data_in, dest_page, in compression_decompress()
[all …]
Dcompression.h126 void btrfs_put_workspace(int type, struct list_head *ws);
148 int zlib_compress_pages(struct list_head *ws, struct address_space *mapping,
151 int zlib_decompress_bio(struct list_head *ws, struct compressed_bio *cb);
152 int zlib_decompress(struct list_head *ws, unsigned char *data_in,
156 void zlib_free_workspace(struct list_head *ws);
159 int lzo_compress_pages(struct list_head *ws, struct address_space *mapping,
162 int lzo_decompress_bio(struct list_head *ws, struct compressed_bio *cb);
163 int lzo_decompress(struct list_head *ws, unsigned char *data_in,
167 void lzo_free_workspace(struct list_head *ws);
169 int zstd_compress_pages(struct list_head *ws, struct address_space *mapping,
[all …]
Dzstd.c94 void zstd_free_workspace(struct list_head *ws);
176 struct list_head *ws; in zstd_init_workspace_manager() local
190 ws = zstd_alloc_workspace(ZSTD_BTRFS_MAX_LEVEL); in zstd_init_workspace_manager()
191 if (IS_ERR(ws)) { in zstd_init_workspace_manager()
196 list_add(ws, &wsm.idle_ws[ZSTD_BTRFS_MAX_LEVEL - 1]); in zstd_init_workspace_manager()
233 struct list_head *ws; in zstd_find_workspace() local
240 ws = wsm.idle_ws[i].next; in zstd_find_workspace()
241 workspace = list_to_workspace(ws); in zstd_find_workspace()
242 list_del_init(ws); in zstd_find_workspace()
250 return ws; in zstd_find_workspace()
[all …]
Dzlib.c38 struct list_head *ws = btrfs_get_workspace(BTRFS_COMPRESS_ZLIB, level); in zlib_get_workspace() local
39 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_get_workspace()
43 return ws; in zlib_get_workspace()
46 void zlib_free_workspace(struct list_head *ws) in zlib_free_workspace() argument
48 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_free_workspace()
94 int zlib_compress_pages(struct list_head *ws, struct address_space *mapping, in zlib_compress_pages() argument
98 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_compress_pages()
271 int zlib_decompress_bio(struct list_head *ws, struct compressed_bio *cb) in zlib_decompress_bio() argument
273 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_decompress_bio()
358 int zlib_decompress(struct list_head *ws, unsigned char *data_in, in zlib_decompress() argument
[all …]
Dlzo.c70 void lzo_free_workspace(struct list_head *ws) in lzo_free_workspace() argument
72 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_free_workspace()
209 int lzo_compress_pages(struct list_head *ws, struct address_space *mapping, in lzo_compress_pages() argument
213 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_compress_pages()
327 int lzo_decompress_bio(struct list_head *ws, struct compressed_bio *cb) in lzo_decompress_bio() argument
329 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_decompress_bio()
428 int lzo_decompress(struct list_head *ws, unsigned char *data_in, in lzo_decompress() argument
432 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_decompress()
/fs/
Deventpoll.c169 struct wakeup_source __rcu *ws; member
212 struct wakeup_source *ws; member
584 return rcu_dereference_check(epi->ws, lockdep_is_held(&epi->ep->mtx)); in ep_wakeup_source()
590 struct wakeup_source *ws = ep_wakeup_source(epi); in ep_pm_stay_awake() local
592 if (ws) in ep_pm_stay_awake()
593 __pm_stay_awake(ws); in ep_pm_stay_awake()
598 return rcu_access_pointer(epi->ws) ? true : false; in ep_has_wakeup_source()
604 struct wakeup_source *ws; in ep_pm_stay_awake_rcu() local
607 ws = rcu_dereference(epi->ws); in ep_pm_stay_awake_rcu()
608 if (ws) in ep_pm_stay_awake_rcu()
[all …]
/fs/afs/
Dcell.c933 struct afs_cell *ws; in afs_cell_purge() local
938 ws = net->ws_cell; in afs_cell_purge()
941 afs_unuse_cell(net, ws, afs_cell_trace_unuse_ws); in afs_cell_purge()