1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHE_REQUEST_H_
3 #define _BCACHE_REQUEST_H_
5 struct data_insert_op
{
9 struct workqueue_struct
*wq
;
22 unsigned flush_journal
:1;
26 unsigned replace_collision
:1;
28 unsigned insert_data_done
:1;
32 struct keylist insert_keys
;
33 BKEY_PADDED(replace_key
);
36 unsigned bch_get_congested(struct cache_set
*);
37 void bch_data_insert(struct closure
*cl
);
39 void bch_cached_dev_request_init(struct cached_dev
*dc
);
40 void bch_flash_dev_request_init(struct bcache_device
*d
);
42 extern struct kmem_cache
*bch_search_cache
, *bch_passthrough_cache
;
44 #endif /* _BCACHE_REQUEST_H_ */