Lines Matching defs:rbd_dev
331 struct rbd_device *rbd_dev; member
513 static bool rbd_is_ro(struct rbd_device *rbd_dev) in rbd_is_ro()
518 static bool rbd_is_snap(struct rbd_device *rbd_dev) in rbd_is_snap()
523 static bool __rbd_is_lock_owner(struct rbd_device *rbd_dev) in __rbd_is_lock_owner()
531 static bool rbd_is_lock_owner(struct rbd_device *rbd_dev) in rbd_is_lock_owner()
593 void rbd_warn(struct rbd_device *rbd_dev, const char *fmt, ...) in rbd_warn()
665 struct rbd_device *rbd_dev = bdev->bd_disk->private_data; in rbd_open() local
684 struct rbd_device *rbd_dev = disk->private_data; in rbd_release() local
982 static void rbd_init_layout(struct rbd_device *rbd_dev) in rbd_init_layout()
1002 static int rbd_header_from_disk(struct rbd_device *rbd_dev, in rbd_header_from_disk()
1099 static const char *_rbd_dev_v1_snap_name(struct rbd_device *rbd_dev, u32 which) in _rbd_dev_v1_snap_name()
1138 static u32 rbd_dev_snap_index(struct rbd_device *rbd_dev, u64 snap_id) in rbd_dev_snap_index()
1149 static const char *rbd_dev_v1_snap_name(struct rbd_device *rbd_dev, in rbd_dev_v1_snap_name()
1163 static const char *rbd_snap_name(struct rbd_device *rbd_dev, u64 snap_id) in rbd_snap_name()
1175 static int rbd_snap_size(struct rbd_device *rbd_dev, u64 snap_id, in rbd_snap_size()
1202 static int rbd_dev_mapping_set(struct rbd_device *rbd_dev) in rbd_dev_mapping_set()
1216 static void rbd_dev_mapping_clear(struct rbd_device *rbd_dev) in rbd_dev_mapping_clear()
1320 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_is_entire() local
1328 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_is_tail() local
1391 struct rbd_device *rbd_dev = obj_request->img_request->rbd_dev; in rbd_osd_format_read() local
1411 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in __rbd_obj_add_osd_request() local
1510 static void rbd_dev_unparent(struct rbd_device *rbd_dev) in rbd_dev_unparent()
1524 static void rbd_dev_parent_put(struct rbd_device *rbd_dev) in rbd_dev_parent_put()
1551 static bool rbd_dev_parent_get(struct rbd_device *rbd_dev) in rbd_dev_parent_get()
1568 struct rbd_device *rbd_dev, in rbd_img_request_init()
1583 struct rbd_device *rbd_dev = img_req->rbd_dev; in rbd_img_capture_header() local
1621 static void __rbd_object_map_index(struct rbd_device *rbd_dev, u64 objno, in __rbd_object_map_index()
1631 static u8 __rbd_object_map_get(struct rbd_device *rbd_dev, u64 objno) in __rbd_object_map_get()
1641 static void __rbd_object_map_set(struct rbd_device *rbd_dev, u64 objno, u8 val) in __rbd_object_map_set()
1655 static u8 rbd_object_map_get(struct rbd_device *rbd_dev, u64 objno) in rbd_object_map_get()
1665 static bool use_object_map(struct rbd_device *rbd_dev) in use_object_map()
1682 static bool rbd_object_map_may_exist(struct rbd_device *rbd_dev, u64 objno) in rbd_object_map_may_exist()
1694 static void rbd_object_map_name(struct rbd_device *rbd_dev, u64 snap_id, in rbd_object_map_name()
1705 static int rbd_object_map_lock(struct rbd_device *rbd_dev) in rbd_object_map_lock()
1763 static void rbd_object_map_unlock(struct rbd_device *rbd_dev) in rbd_object_map_unlock()
1802 static int __rbd_object_map_load(struct rbd_device *rbd_dev) in __rbd_object_map_load()
1867 static void rbd_object_map_free(struct rbd_device *rbd_dev) in rbd_object_map_free()
1874 static int rbd_object_map_load(struct rbd_device *rbd_dev) in rbd_object_map_load()
1894 static int rbd_object_map_open(struct rbd_device *rbd_dev) in rbd_object_map_open()
1911 static void rbd_object_map_close(struct rbd_device *rbd_dev) in rbd_object_map_close()
1930 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_object_map_update_finish() local
1984 static bool update_needed(struct rbd_device *rbd_dev, u64 objno, u8 new_state) in update_needed()
2037 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_object_map_update() local
2115 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_calc_img_extents() local
2206 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in __rbd_osd_setup_write_ops() local
2267 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_init_discard() local
2525 struct rbd_device *rbd_dev = img_req->rbd_dev; in rbd_img_fill_request() local
2741 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_may_exist() local
2833 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_advance_read() local
2910 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_write_is_noop() local
2932 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_write_pre_object_map() local
3092 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_copyup_read_parent() local
3117 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_copyup_object_maps() local
3193 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_advance_copyup() local
3267 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_write_post_object_map() local
3282 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_advance_write() local
3370 struct rbd_device *rbd_dev = img_req->rbd_dev; in __rbd_obj_handle_request() local
3401 struct rbd_device *rbd_dev = img_req->rbd_dev; in need_exclusive_lock() local
3419 struct rbd_device *rbd_dev = img_req->rbd_dev; in rbd_lock_add_request() local
3436 struct rbd_device *rbd_dev = img_req->rbd_dev; in rbd_lock_del_request() local
3452 struct rbd_device *rbd_dev = img_req->rbd_dev; in rbd_img_exclusive_lock() local
3496 struct rbd_device *rbd_dev = img_req->rbd_dev; in rbd_img_advance() local
3545 struct rbd_device *rbd_dev = img_req->rbd_dev; in __rbd_img_handle_request() local
3601 static struct rbd_client_id rbd_get_cid(struct rbd_device *rbd_dev) in rbd_get_cid()
3615 static void rbd_set_owner_cid(struct rbd_device *rbd_dev, in rbd_set_owner_cid()
3624 static void format_lock_cookie(struct rbd_device *rbd_dev, char *buf) in format_lock_cookie()
3631 static void __rbd_lock(struct rbd_device *rbd_dev, const char *cookie) in __rbd_lock()
3644 static int rbd_lock(struct rbd_device *rbd_dev) in rbd_lock()
3667 static void rbd_unlock(struct rbd_device *rbd_dev) in rbd_unlock()
3687 static int __rbd_notify_op_lock(struct rbd_device *rbd_dev, in __rbd_notify_op_lock()
3711 static void rbd_notify_op_lock(struct rbd_device *rbd_dev, in rbd_notify_op_lock()
3719 struct rbd_device *rbd_dev = container_of(work, struct rbd_device, in rbd_notify_acquired_lock() local
3727 struct rbd_device *rbd_dev = container_of(work, struct rbd_device, in rbd_notify_released_lock() local
3733 static int rbd_request_lock(struct rbd_device *rbd_dev) in rbd_request_lock()
3805 static void wake_lock_waiters(struct rbd_device *rbd_dev, int result) in wake_lock_waiters()
3831 static int get_lock_owner_info(struct rbd_device *rbd_dev, in get_lock_owner_info()
3878 static int find_watcher(struct rbd_device *rbd_dev, in find_watcher()
3926 static int rbd_try_lock(struct rbd_device *rbd_dev) in rbd_try_lock()
3977 static int rbd_post_acquire_action(struct rbd_device *rbd_dev) in rbd_post_acquire_action()
3996 static int rbd_try_acquire_lock(struct rbd_device *rbd_dev) in rbd_try_acquire_lock()
4052 struct rbd_device *rbd_dev = container_of(to_delayed_work(work), in rbd_acquire_lock() local
4088 static bool rbd_quiesce_lock(struct rbd_device *rbd_dev) in rbd_quiesce_lock()
4115 static void rbd_pre_release_action(struct rbd_device *rbd_dev) in rbd_pre_release_action()
4121 static void __rbd_release_lock(struct rbd_device *rbd_dev) in __rbd_release_lock()
4132 static void rbd_release_lock(struct rbd_device *rbd_dev) in rbd_release_lock()
4151 struct rbd_device *rbd_dev = container_of(work, struct rbd_device, in rbd_release_lock_work() local
4159 static void maybe_kick_acquire(struct rbd_device *rbd_dev) in maybe_kick_acquire()
4176 static void rbd_handle_acquired_lock(struct rbd_device *rbd_dev, u8 struct_v, in rbd_handle_acquired_lock()
4205 static void rbd_handle_released_lock(struct rbd_device *rbd_dev, u8 struct_v, in rbd_handle_released_lock()
4239 static int rbd_handle_request_lock(struct rbd_device *rbd_dev, u8 struct_v, in rbd_handle_request_lock()
4286 static void __rbd_acknowledge_notify(struct rbd_device *rbd_dev, in __rbd_acknowledge_notify()
4312 static void rbd_acknowledge_notify(struct rbd_device *rbd_dev, u64 notify_id, in rbd_acknowledge_notify()
4319 static void rbd_acknowledge_notify_result(struct rbd_device *rbd_dev, in rbd_acknowledge_notify_result()
4329 struct rbd_device *rbd_dev = arg; in rbd_watch_cb() local
4394 struct rbd_device *rbd_dev = arg; in rbd_watch_errcb() local
4415 static int __rbd_register_watch(struct rbd_device *rbd_dev) in __rbd_register_watch()
4436 static void __rbd_unregister_watch(struct rbd_device *rbd_dev) in __rbd_unregister_watch()
4451 static int rbd_register_watch(struct rbd_device *rbd_dev) in rbd_register_watch()
4469 static void cancel_tasks_sync(struct rbd_device *rbd_dev) in cancel_tasks_sync()
4483 static void rbd_unregister_watch(struct rbd_device *rbd_dev) in rbd_unregister_watch()
4500 static void rbd_reacquire_lock(struct rbd_device *rbd_dev) in rbd_reacquire_lock()
4533 struct rbd_device *rbd_dev = container_of(to_delayed_work(work), in rbd_reregister_watch() local
4581 static int rbd_obj_method_sync(struct rbd_device *rbd_dev, in rbd_obj_method_sync()
4638 struct rbd_device *rbd_dev = img_request->rbd_dev; in rbd_queue_workfn() local
4692 struct rbd_device *rbd_dev = hctx->queue->queuedata; in rbd_queue_rq() local
4730 static void rbd_free_disk(struct rbd_device *rbd_dev) in rbd_free_disk()
4737 static int rbd_obj_read_sync(struct rbd_device *rbd_dev, in rbd_obj_read_sync()
4786 static int rbd_dev_v1_header_info(struct rbd_device *rbd_dev) in rbd_dev_v1_header_info()
4841 static void rbd_dev_update_size(struct rbd_device *rbd_dev) in rbd_dev_update_size()
4858 static int rbd_dev_refresh(struct rbd_device *rbd_dev) in rbd_dev_refresh()
4895 static int rbd_init_disk(struct rbd_device *rbd_dev) in rbd_init_disk()
4972 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_size_show() local
4981 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_features_show() local
4989 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_major_show() local
5000 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_minor_show() local
5008 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_client_addr_show() local
5019 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_client_id_show() local
5028 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_cluster_fsid_show() local
5036 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_config_info_show() local
5047 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_pool_show() local
5055 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_pool_id_show() local
5064 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_pool_ns_show() local
5072 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_name_show() local
5083 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_image_id_show() local
5096 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_snap_show() local
5104 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_snap_id_show() local
5118 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_parent_show() local
5149 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_image_refresh() local
5259 static void rbd_dev_free(struct rbd_device *rbd_dev) in rbd_dev_free()
5276 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_dev_release() local
5298 struct rbd_device *rbd_dev; in __rbd_dev_create() local
5354 struct rbd_device *rbd_dev; in rbd_dev_create() local
5388 static void rbd_dev_destroy(struct rbd_device *rbd_dev) in rbd_dev_destroy()
5399 static int _rbd_dev_v2_snap_size(struct rbd_device *rbd_dev, u64 snap_id, in _rbd_dev_v2_snap_size()
5432 static int rbd_dev_v2_image_size(struct rbd_device *rbd_dev) in rbd_dev_v2_image_size()
5439 static int rbd_dev_v2_object_prefix(struct rbd_device *rbd_dev) in rbd_dev_v2_object_prefix()
5476 static int _rbd_dev_v2_snap_features(struct rbd_device *rbd_dev, u64 snap_id, in _rbd_dev_v2_snap_features()
5520 static int rbd_dev_v2_features(struct rbd_device *rbd_dev) in rbd_dev_v2_features()
5534 static int rbd_dev_v2_get_flags(struct rbd_device *rbd_dev) in rbd_dev_v2_get_flags()
5598 static int __get_parent_info(struct rbd_device *rbd_dev, in __get_parent_info()
5641 static int __get_parent_info_legacy(struct rbd_device *rbd_dev, in __get_parent_info_legacy()
5676 static int get_parent_info(struct rbd_device *rbd_dev, in get_parent_info()
5705 static int rbd_dev_v2_parent_info(struct rbd_device *rbd_dev) in rbd_dev_v2_parent_info()
5801 static int rbd_dev_v2_striping_info(struct rbd_device *rbd_dev) in rbd_dev_v2_striping_info()
5826 static int rbd_dev_v2_data_pool(struct rbd_device *rbd_dev) in rbd_dev_v2_data_pool()
5844 static char *rbd_dev_image_name(struct rbd_device *rbd_dev) in rbd_dev_image_name()
5895 static u64 rbd_v1_snap_id_by_name(struct rbd_device *rbd_dev, const char *name) in rbd_v1_snap_id_by_name()
5913 static u64 rbd_v2_snap_id_by_name(struct rbd_device *rbd_dev, const char *name) in rbd_v2_snap_id_by_name()
5942 static u64 rbd_snap_id_by_name(struct rbd_device *rbd_dev, const char *name) in rbd_snap_id_by_name()
5953 static int rbd_spec_fill_snap_id(struct rbd_device *rbd_dev) in rbd_spec_fill_snap_id()
5982 static int rbd_spec_fill_names(struct rbd_device *rbd_dev) in rbd_spec_fill_names()
6032 static int rbd_dev_v2_snap_context(struct rbd_device *rbd_dev) in rbd_dev_v2_snap_context()
6104 static const char *rbd_dev_v2_snap_name(struct rbd_device *rbd_dev, in rbd_dev_v2_snap_name()
6144 static int rbd_dev_v2_header_info(struct rbd_device *rbd_dev) in rbd_dev_v2_header_info()
6168 static int rbd_dev_header_info(struct rbd_device *rbd_dev) in rbd_dev_header_info()
6521 static void rbd_dev_image_unlock(struct rbd_device *rbd_dev) in rbd_dev_image_unlock()
6534 static int rbd_add_acquire_lock(struct rbd_device *rbd_dev) in rbd_add_acquire_lock()
6588 static int rbd_dev_image_id(struct rbd_device *rbd_dev) in rbd_dev_image_id()
6662 static void rbd_dev_unprobe(struct rbd_device *rbd_dev) in rbd_dev_unprobe()
6680 static int rbd_dev_v2_header_onetime(struct rbd_device *rbd_dev) in rbd_dev_v2_header_onetime()
6725 static int rbd_dev_probe_parent(struct rbd_device *rbd_dev, int depth) in rbd_dev_probe_parent()
6768 static void rbd_dev_device_release(struct rbd_device *rbd_dev) in rbd_dev_device_release()
6780 static int rbd_dev_device_setup(struct rbd_device *rbd_dev) in rbd_dev_device_setup()
6825 static int rbd_dev_header_name(struct rbd_device *rbd_dev) in rbd_dev_header_name()
6843 static void rbd_print_dne(struct rbd_device *rbd_dev, bool is_snap) in rbd_print_dne()
6861 static void rbd_dev_image_release(struct rbd_device *rbd_dev) in rbd_dev_image_release()
6881 static int rbd_dev_image_probe(struct rbd_device *rbd_dev, int depth) in rbd_dev_image_probe()
6977 struct rbd_device *rbd_dev = NULL; in do_rbd_add() local
7101 static void rbd_dev_remove_parent(struct rbd_device *rbd_dev) in rbd_dev_remove_parent()
7132 struct rbd_device *rbd_dev = NULL; in do_rbd_remove() local