/drivers/block/drbd/ |
D | drbd_int.h | 98 struct drbd_conf; 148 _drbd_insert_fault(struct drbd_conf *mdev, unsigned int type); 151 drbd_insert_fault(struct drbd_conf *mdev, unsigned int type) { in drbd_insert_fault() 256 extern void INFO_bm_xfer_stats(struct drbd_conf *mdev, 539 struct drbd_conf *mdev; 546 extern int drbd_wait_misc(struct drbd_conf *, struct drbd_interval *); 785 int (*io_fn)(struct drbd_conf *mdev); 786 void (*done)(struct drbd_conf *mdev, int rv); 905 struct drbd_conf { struct 1051 static inline struct drbd_conf *minor_to_mdev(unsigned int minor) in minor_to_mdev() argument [all …]
|
D | drbd_bitmap.c | 116 static void __bm_print_lock_info(struct drbd_conf *mdev, const char *func) in __bm_print_lock_info() 127 void drbd_bm_lock(struct drbd_conf *mdev, char *why, enum bm_flag flags) in drbd_bm_lock() 154 void drbd_bm_unlock(struct drbd_conf *mdev) in drbd_bm_unlock() 214 static void bm_page_lock_io(struct drbd_conf *mdev, int page_nr) in bm_page_lock_io() 221 static void bm_page_unlock_io(struct drbd_conf *mdev, int page_nr) in bm_page_unlock_io() 252 void drbd_bm_mark_for_writeout(struct drbd_conf *mdev, int page_nr) in drbd_bm_mark_for_writeout() 441 int drbd_bm_init(struct drbd_conf *mdev) in drbd_bm_init() 457 sector_t drbd_bm_capacity(struct drbd_conf *mdev) in drbd_bm_capacity() 466 void drbd_bm_cleanup(struct drbd_conf *mdev) in drbd_bm_cleanup() 634 int drbd_bm_resize(struct drbd_conf *mdev, sector_t capacity, int set_new_bits) in drbd_bm_resize() [all …]
|
D | drbd_worker.c | 70 struct drbd_conf *mdev; in drbd_md_io_complete() 73 mdev = container_of(md_io, struct drbd_conf, md_io); in drbd_md_io_complete() 102 struct drbd_conf *mdev = peer_req->w.mdev; in drbd_endio_read_sec_final() 122 struct drbd_conf *mdev = peer_req->w.mdev; in drbd_endio_write_sec_final() 173 struct drbd_conf *mdev = peer_req->w.mdev; in drbd_peer_request_endio() 210 struct drbd_conf *mdev = req->w.mdev; in drbd_request_endio() 284 void drbd_csum_ee(struct drbd_conf *mdev, struct crypto_hash *tfm, in drbd_csum_ee() 312 void drbd_csum_bio(struct drbd_conf *mdev, struct crypto_hash *tfm, struct bio *bio, void *digest) in drbd_csum_bio() 336 struct drbd_conf *mdev = w->mdev; in w_e_send_csum() 381 static int read_for_csum(struct drbd_conf *mdev, sector_t sector, int size) in read_for_csum() [all …]
|
D | drbd_req.c | 34 static bool drbd_may_do_local_read(struct drbd_conf *mdev, sector_t sector, int size); 37 static void _drbd_start_io_acct(struct drbd_conf *mdev, struct drbd_request *req) in _drbd_start_io_acct() 52 static void _drbd_end_io_acct(struct drbd_conf *mdev, struct drbd_request *req) in _drbd_end_io_acct() 64 static struct drbd_request *drbd_req_new(struct drbd_conf *mdev, in drbd_req_new() 98 struct drbd_conf *mdev = req->w.mdev; in drbd_req_destroy() 182 void complete_master_bio(struct drbd_conf *mdev, in complete_master_bio() 193 struct drbd_conf *mdev = req->w.mdev; in drbd_remove_request_interval() 213 struct drbd_conf *mdev = req->w.mdev; in drbd_req_complete() 308 struct drbd_conf *mdev = req->w.mdev; in drbd_req_put_completion_ref() 331 struct drbd_conf *mdev = req->w.mdev; in mod_rq_state() [all …]
|
D | drbd_actlog.c | 108 void *drbd_md_get_buffer(struct drbd_conf *mdev) in drbd_md_get_buffer() 119 void drbd_md_put_buffer(struct drbd_conf *mdev) in drbd_md_put_buffer() 125 void wait_until_done_or_force_detached(struct drbd_conf *mdev, struct drbd_backing_dev *bdev, in wait_until_done_or_force_detached() 145 static int _drbd_md_sync_page_io(struct drbd_conf *mdev, in _drbd_md_sync_page_io() 195 int drbd_md_sync_page_io(struct drbd_conf *mdev, struct drbd_backing_dev *bdev, in drbd_md_sync_page_io() 225 static struct bm_extent *find_active_resync_extent(struct drbd_conf *mdev, unsigned int enr) in find_active_resync_extent() 237 static struct lc_element *_al_get(struct drbd_conf *mdev, unsigned int enr, bool nonblock) in _al_get() 260 bool drbd_al_begin_io_fastpath(struct drbd_conf *mdev, struct drbd_interval *i) in drbd_al_begin_io_fastpath() 277 bool drbd_al_begin_io_prepare(struct drbd_conf *mdev, struct drbd_interval *i) in drbd_al_begin_io_prepare() 299 static int al_write_transaction(struct drbd_conf *mdev, bool delegate); [all …]
|
D | drbd_state.h | 4 struct drbd_conf; 110 extern enum drbd_state_rv drbd_change_state(struct drbd_conf *mdev, 114 extern void drbd_force_state(struct drbd_conf *, union drbd_state, 116 extern enum drbd_state_rv _drbd_request_state(struct drbd_conf *, 120 extern enum drbd_state_rv __drbd_set_state(struct drbd_conf *, union drbd_state, 123 extern void print_st_err(struct drbd_conf *, union drbd_state, 134 extern void drbd_resume_al(struct drbd_conf *mdev); 147 static inline int drbd_request_state(struct drbd_conf *mdev, in drbd_request_state()
|
D | drbd_main.c | 169 int _get_ldev_if_state(struct drbd_conf *mdev, enum drbd_disk_state mins) in _get_ldev_if_state() 310 void tl_abort_disk_io(struct drbd_conf *mdev) in tl_abort_disk_io() 499 struct drbd_conf *mdev; in conn_lowest_minor() 635 void *drbd_prepare_command(struct drbd_conf *mdev, struct drbd_socket *sock) in drbd_prepare_command() 684 int drbd_send_command(struct drbd_conf *mdev, struct drbd_socket *sock, in drbd_send_command() 716 int drbd_send_sync_param(struct drbd_conf *mdev) in drbd_send_sync_param() 826 int _drbd_send_uuids(struct drbd_conf *mdev, u64 uuid_flags) in _drbd_send_uuids() 859 int drbd_send_uuids(struct drbd_conf *mdev) in drbd_send_uuids() 864 int drbd_send_uuids_skip_initial_sync(struct drbd_conf *mdev) in drbd_send_uuids_skip_initial_sync() 869 void drbd_print_uuids(struct drbd_conf *mdev, const char *text) in drbd_print_uuids() [all …]
|
D | drbd_state.c | 33 extern void tl_abort_disk_io(struct drbd_conf *mdev); 53 static void after_state_ch(struct drbd_conf *mdev, union drbd_state os, 55 static enum drbd_state_rv is_valid_state(struct drbd_conf *, union drbd_state); 58 static union drbd_state sanitize_state(struct drbd_conf *mdev, union drbd_state ns, 68 struct drbd_conf *mdev; in conn_all_vols_unconf() 108 struct drbd_conf *mdev; in conn_highest_role() 122 struct drbd_conf *mdev; in conn_highest_peer() 136 struct drbd_conf *mdev; in conn_highest_disk() 150 struct drbd_conf *mdev; in conn_lowest_disk() 164 struct drbd_conf *mdev; in conn_highest_pdsk() [all …]
|
D | drbd_receiver.c | 66 static int drbd_disconnected(struct drbd_conf *mdev); 153 static struct page *__drbd_alloc_pages(struct drbd_conf *mdev, in __drbd_alloc_pages() 199 static void reclaim_finished_net_peer_reqs(struct drbd_conf *mdev, in reclaim_finished_net_peer_reqs() 218 static void drbd_kick_lo_and_reclaim_net(struct drbd_conf *mdev) in drbd_kick_lo_and_reclaim_net() 243 struct page *drbd_alloc_pages(struct drbd_conf *mdev, unsigned int number, in drbd_alloc_pages() 293 static void drbd_free_pages(struct drbd_conf *mdev, struct page *page, int is_net) in drbd_free_pages() 333 drbd_alloc_peer_req(struct drbd_conf *mdev, u64 id, sector_t sector, in drbd_alloc_peer_req() 380 void __drbd_free_peer_req(struct drbd_conf *mdev, struct drbd_peer_request *peer_req, in __drbd_free_peer_req() 391 int drbd_free_peer_reqs(struct drbd_conf *mdev, struct list_head *list) in drbd_free_peer_reqs() 412 static int drbd_finish_peer_reqs(struct drbd_conf *mdev) in drbd_finish_peer_reqs() [all …]
|
D | drbd_nl.c | 105 struct drbd_conf *mdev; 315 int drbd_khelper(struct drbd_conf *mdev, char *cmd) in drbd_khelper() 402 struct drbd_conf *mdev; in highest_fencing_policy() 525 drbd_set_role(struct drbd_conf *mdev, enum drbd_role new_role, int force) in drbd_set_role() 720 static void drbd_md_set_sector_offsets(struct drbd_conf *mdev, in drbd_md_set_sector_offsets() 798 void drbd_suspend_io(struct drbd_conf *mdev) in drbd_suspend_io() 806 void drbd_resume_io(struct drbd_conf *mdev) in drbd_resume_io() 819 enum determine_dev_size drbd_determine_dev_size(struct drbd_conf *mdev, enum dds_flags flags) __mus… in drbd_determine_dev_size() 916 drbd_new_dev_size(struct drbd_conf *mdev, struct drbd_backing_dev *bdev, in drbd_new_dev_size() 970 static int drbd_check_al_size(struct drbd_conf *mdev, struct disk_conf *dc) in drbd_check_al_size() [all …]
|
D | drbd_req.h | 284 extern void complete_master_bio(struct drbd_conf *mdev, 297 struct drbd_conf *mdev = req->w.mdev; in _req_mod() 317 struct drbd_conf *mdev = req->w.mdev; in req_mod()
|
D | drbd_wrappers.h | 12 static inline void drbd_set_my_capacity(struct drbd_conf *mdev, in drbd_set_my_capacity() 30 static inline void drbd_generic_make_request(struct drbd_conf *mdev, in drbd_generic_make_request()
|
D | drbd_proc.c | 69 static void drbd_syncer_progress(struct drbd_conf *mdev, struct seq_file *seq) in drbd_syncer_progress() 205 struct drbd_conf *mdev; in drbd_seq_show()
|