Home
last modified time | relevance | path

Searched refs:drbd_device (Results 1 – 17 of 17) sorted by relevance

/linux-6.6.21/drivers/block/drbd/
Ddrbd_int.h67 struct drbd_device;
88 _drbd_insert_fault(struct drbd_device *device, unsigned int type);
91 drbd_insert_fault(struct drbd_device *device, unsigned int type) { in drbd_insert_fault()
191 struct drbd_device *device;
196 extern int drbd_wait_misc(struct drbd_device *, struct drbd_interval *);
203 struct drbd_device *device;
548 int (*io_fn)(struct drbd_device *device, struct drbd_peer_device *peer_device);
549 void (*done)(struct drbd_device *device, int rv);
737 struct drbd_device *device;
745 struct drbd_device { struct
[all …]
Ddrbd_state.h5 struct drbd_device;
115 extern enum drbd_state_rv drbd_change_state(struct drbd_device *device,
119 extern void drbd_force_state(struct drbd_device *, union drbd_state,
121 extern enum drbd_state_rv _drbd_request_state(struct drbd_device *,
127 _drbd_request_state_holding_state_mutex(struct drbd_device *, union drbd_state,
130 extern enum drbd_state_rv _drbd_set_state(struct drbd_device *, union drbd_state,
133 extern void print_st_err(struct drbd_device *, union drbd_state,
144 extern void drbd_resume_al(struct drbd_device *device);
157 static inline int drbd_request_state(struct drbd_device *device, in drbd_request_state()
165 int drbd_request_detach_interruptible(struct drbd_device *device);
Ddrbd_bitmap.c113 static void __bm_print_lock_info(struct drbd_device *device, const char *func) in __bm_print_lock_info()
124 void drbd_bm_lock(struct drbd_device *device, char *why, enum bm_flag flags) in drbd_bm_lock()
151 void drbd_bm_unlock(struct drbd_device *device) in drbd_bm_unlock()
211 static void bm_page_lock_io(struct drbd_device *device, int page_nr) in bm_page_lock_io()
218 static void bm_page_unlock_io(struct drbd_device *device, int page_nr) in bm_page_unlock_io()
240 void drbd_bm_reset_al_hints(struct drbd_device *device) in drbd_bm_reset_al_hints()
254 void drbd_bm_mark_for_writeout(struct drbd_device *device, int page_nr) in drbd_bm_mark_for_writeout()
433 int drbd_bm_init(struct drbd_device *device) in drbd_bm_init()
449 sector_t drbd_bm_capacity(struct drbd_device *device) in drbd_bm_capacity()
458 void drbd_bm_cleanup(struct drbd_device *device) in drbd_bm_cleanup()
[all …]
Ddrbd_actlog.c82 void *drbd_md_get_buffer(struct drbd_device *device, const char *intent) in drbd_md_get_buffer()
99 void drbd_md_put_buffer(struct drbd_device *device) in drbd_md_put_buffer()
105 void wait_until_done_or_force_detached(struct drbd_device *device, struct drbd_backing_dev *bdev, in wait_until_done_or_force_detached()
125 static int _drbd_md_sync_page_io(struct drbd_device *device, in _drbd_md_sync_page_io()
177 int drbd_md_sync_page_io(struct drbd_device *device, struct drbd_backing_dev *bdev, in drbd_md_sync_page_io()
206 static struct bm_extent *find_active_resync_extent(struct drbd_device *device, unsigned int enr) in find_active_resync_extent()
218 static struct lc_element *_al_get(struct drbd_device *device, unsigned int enr, bool nonblock) in _al_get()
241 bool drbd_al_begin_io_fastpath(struct drbd_device *device, struct drbd_interval *i) in drbd_al_begin_io_fastpath()
258 bool drbd_al_begin_io_prepare(struct drbd_device *device, struct drbd_interval *i) in drbd_al_begin_io_prepare()
298 static sector_t al_tr_number_to_on_disk_sector(struct drbd_device *device) in al_tr_number_to_on_disk_sector()
[all …]
Ddrbd_worker.c52 struct drbd_device *device; in drbd_md_endio()
85 struct drbd_device *device = peer_device->device; in drbd_endio_read_sec_final()
106 struct drbd_device *device = peer_device->device; in drbd_endio_write_sec_final()
174 struct drbd_device *device = peer_req->peer_device->device; in drbd_peer_request_endio()
198 drbd_panic_after_delayed_completion_of_aborted_request(struct drbd_device *device) in drbd_panic_after_delayed_completion_of_aborted_request()
210 struct drbd_device *device = req->device; in drbd_request_endio()
342 struct drbd_device *device = peer_device->device; in w_e_send_csum()
389 struct drbd_device *device = peer_device->device; in read_for_csum()
428 struct drbd_device *device = in w_resync_timer()
429 container_of(w, struct drbd_device, resync_work); in w_resync_timer()
[all …]
Ddrbd_debugfs.h18 void drbd_debugfs_device_add(struct drbd_device *device);
19 void drbd_debugfs_device_cleanup(struct drbd_device *device);
34 static inline void drbd_debugfs_device_add(struct drbd_device *device) { } in drbd_debugfs_device_add()
35 static inline void drbd_debugfs_device_cleanup(struct drbd_device *device) { } in drbd_debugfs_device_cleanup()
Ddrbd_req.c22 static bool drbd_may_do_local_read(struct drbd_device *device, sector_t sector, int size);
24 static struct drbd_request *drbd_req_new(struct drbd_device *device, struct bio *bio_src) in drbd_req_new()
61 struct drbd_device *device = req->device; in drbd_remove_request_interval()
74 struct drbd_device *device = req->device; in drbd_req_destroy()
176 void complete_master_bio(struct drbd_device *device, in complete_master_bio()
196 struct drbd_device *device = req->device; in drbd_req_complete()
294 struct drbd_device *device = req->device; in drbd_req_put_completion_ref()
415 struct drbd_device *device = req->device; in mod_rq_state()
520 static void drbd_report_io_error(struct drbd_device *device, struct drbd_request *req) in drbd_report_io_error()
564 struct drbd_device *const device = req->device; in __req_mod()
[all …]
Ddrbd_req.h272 extern void complete_master_bio(struct drbd_device *device,
277 extern void tl_abort_disk_io(struct drbd_device *device);
287 struct drbd_device *device = req->device; in _req_mod()
308 struct drbd_device *device = req->device; in req_mod()
Ddrbd_state.c24 struct drbd_device *device;
45 struct drbd_device *device; in count_objects()
86 struct drbd_device *device; in remember_old_state()
176 struct drbd_device *device = device_state_change->device; in remember_new_state()
195 struct drbd_device *device = in remember_new_state()
264 struct drbd_device *device = state_change->devices[n].device; in forget_state_change()
280 static void after_state_ch(struct drbd_device *device, union drbd_state os,
283 static enum drbd_state_rv is_valid_state(struct drbd_device *, union drbd_state);
286 static union drbd_state sanitize_state(struct drbd_device *device, union drbd_state os,
302 struct drbd_device *device = peer_device->device; in conn_all_vols_unconf()
[all …]
Ddrbd_main.c144 int _get_ldev_if_state(struct drbd_device *device, enum drbd_disk_state mins) in _get_ldev_if_state()
293 void tl_abort_disk_io(struct drbd_device *device) in tl_abort_disk_io()
824 struct drbd_device *device = peer_device->device; in _drbd_send_uuids()
866 void drbd_print_uuids(struct drbd_device *device, const char *text) in drbd_print_uuids()
886 struct drbd_device *device = peer_device->device; in drbd_gen_and_send_sync_uuid()
912 struct drbd_device *device = peer_device->device; in drbd_send_sizes()
1101 static int fill_bitmap_rle_bits(struct drbd_device *device, in fill_bitmap_rle_bits()
1207 struct drbd_device *device = peer_device->device; in send_bitmap_rle_or_plain()
1263 static int _drbd_send_bitmap(struct drbd_device *device, in _drbd_send_bitmap()
1301 int drbd_send_bitmap(struct drbd_device *device, struct drbd_peer_device *peer_device) in drbd_send_bitmap()
[all …]
Ddrbd_debugfs.c130 struct drbd_device *device; in seq_print_resource_pending_meta_io()
158 struct drbd_device *device; in seq_print_waiting_for_AL()
191 static void seq_print_device_bitmap_io(struct seq_file *m, struct drbd_device *device, unsigned lon… in seq_print_device_bitmap_io()
218 struct drbd_device *device; in seq_print_resource_pending_bitmap_io()
247 struct drbd_device *device, struct list_head *lh, in seq_print_peer_request()
272 struct drbd_device *device, unsigned long now) in seq_print_device_peer_requests()
290 struct drbd_device *device; in seq_print_resource_pending_peer_requests()
662 struct drbd_device *device = m->private; in device_resync_extents_show()
677 struct drbd_device *device = m->private; in device_act_log_extents_show()
692 struct drbd_device *device = m->private; in device_oldest_requests_show()
[all …]
Ddrbd_polymorph_printk.h16 const struct drbd_device *__d = (device); \
23 const struct drbd_device *__d; \
65 __drbd_printk_if_same_type(obj, drbd_device, level, fmt, ## args), \
88 __drbd_dyn_dbg_if_same_type(obj, drbd_device, fmt, ## args), \
Ddrbd_receiver.c147 static struct page *__drbd_alloc_pages(struct drbd_device *device, in __drbd_alloc_pages()
193 static void reclaim_finished_net_peer_reqs(struct drbd_device *device, in reclaim_finished_net_peer_reqs()
210 static void drbd_reclaim_net_peer_reqs(struct drbd_device *device) in drbd_reclaim_net_peer_reqs()
229 struct drbd_device *device = peer_device->device; in conn_reclaim_net_peer_reqs()
265 struct drbd_device *device = peer_device->device; in drbd_alloc_pages()
317 static void drbd_free_pages(struct drbd_device *device, struct page *page, int is_net) in drbd_free_pages()
363 struct drbd_device *device = peer_device->device; in drbd_alloc_peer_req()
406 void __drbd_free_peer_req(struct drbd_device *device, struct drbd_peer_request *peer_req, in __drbd_free_peer_req()
422 int drbd_free_peer_reqs(struct drbd_device *device, struct list_head *list) in drbd_free_peer_reqs()
443 static int drbd_finish_peer_reqs(struct drbd_device *device) in drbd_finish_peer_reqs()
[all …]
Ddrbd_nl.c354 int drbd_khelper(struct drbd_device *device, char *cmd) in drbd_khelper()
451 struct drbd_device *device = peer_device->device; in highest_fencing_policy()
615 drbd_set_role(struct drbd_device *const device, enum drbd_role new_role, int force) in drbd_set_role()
828 static void drbd_md_set_sector_offsets(struct drbd_device *device, in drbd_md_set_sector_offsets()
908 void drbd_suspend_io(struct drbd_device *device) in drbd_suspend_io()
916 void drbd_resume_io(struct drbd_device *device) in drbd_resume_io()
930 drbd_determine_dev_size(struct drbd_device *device, enum dds_flags flags, struct resize_parms *rs) … in drbd_determine_dev_size()
1094 drbd_new_dev_size(struct drbd_device *device, struct drbd_backing_dev *bdev, in drbd_new_dev_size()
1148 static int drbd_check_al_size(struct drbd_device *device, struct disk_conf *dc) in drbd_check_al_size()
1207 static void decide_on_discard_support(struct drbd_device *device, in decide_on_discard_support()
[all …]
Ddrbd_proc.c40 static void drbd_get_syncer_progress(struct drbd_device *device, in drbd_get_syncer_progress()
90 static void drbd_syncer_progress(struct drbd_device *device, struct seq_file *seq, in drbd_syncer_progress()
219 struct drbd_device *device; in drbd_seq_show()
Ddrbd_state_change.h14 struct drbd_device *device;
/linux-6.6.21/Documentation/admin-guide/blockdev/drbd/
Ddata-structure-v9.rst16 drbd_peer_device object sits at each intersection between a drbd_device and a
39 The drbd_resource, drbd_connection, and drbd_device objects are reference