Lines Matching refs:rbd_device
331 struct rbd_device *rbd_dev;
381 struct rbd_device { struct
437 struct rbd_device *parent; argument
501 static int rbd_dev_image_probe(struct rbd_device *rbd_dev, int depth);
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()
632 static void rbd_dev_remove_parent(struct rbd_device *rbd_dev);
634 static int rbd_dev_refresh(struct rbd_device *rbd_dev);
635 static int rbd_dev_v2_header_onetime(struct rbd_device *rbd_dev);
636 static int rbd_dev_header_info(struct rbd_device *rbd_dev);
637 static int rbd_dev_v2_parent_info(struct rbd_device *rbd_dev);
638 static const char *rbd_dev_v2_snap_name(struct rbd_device *rbd_dev,
640 static int _rbd_dev_v2_snap_size(struct rbd_device *rbd_dev, u64 snap_id,
642 static int rbd_dev_v2_get_flags(struct rbd_device *rbd_dev);
665 struct rbd_device *rbd_dev = bdev->bd_disk->private_data; in rbd_open()
684 struct rbd_device *rbd_dev = disk->private_data; in rbd_release()
983 static void rbd_init_layout(struct rbd_device *rbd_dev) in rbd_init_layout()
1003 static int rbd_header_from_disk(struct rbd_device *rbd_dev, in rbd_header_from_disk()
1100 static const char *_rbd_dev_v1_snap_name(struct rbd_device *rbd_dev, u32 which) in _rbd_dev_v1_snap_name()
1139 static u32 rbd_dev_snap_index(struct rbd_device *rbd_dev, u64 snap_id) in rbd_dev_snap_index()
1150 static const char *rbd_dev_v1_snap_name(struct rbd_device *rbd_dev, in rbd_dev_v1_snap_name()
1164 static const char *rbd_snap_name(struct rbd_device *rbd_dev, u64 snap_id) in rbd_snap_name()
1176 static int rbd_snap_size(struct rbd_device *rbd_dev, u64 snap_id, in rbd_snap_size()
1203 static int rbd_dev_mapping_set(struct rbd_device *rbd_dev) in rbd_dev_mapping_set()
1217 static void rbd_dev_mapping_clear(struct rbd_device *rbd_dev) in rbd_dev_mapping_clear()
1321 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_is_entire()
1329 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_is_tail()
1392 struct rbd_device *rbd_dev = obj_request->img_request->rbd_dev; in rbd_osd_format_read()
1412 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in __rbd_obj_add_osd_request()
1511 static void rbd_dev_unparent(struct rbd_device *rbd_dev) in rbd_dev_unparent()
1525 static void rbd_dev_parent_put(struct rbd_device *rbd_dev) in rbd_dev_parent_put()
1552 static bool rbd_dev_parent_get(struct rbd_device *rbd_dev) in rbd_dev_parent_get()
1569 struct rbd_device *rbd_dev, in rbd_img_request_init()
1584 struct rbd_device *rbd_dev = img_req->rbd_dev; in rbd_img_capture_header()
1622 static void __rbd_object_map_index(struct rbd_device *rbd_dev, u64 objno, in __rbd_object_map_index()
1632 static u8 __rbd_object_map_get(struct rbd_device *rbd_dev, u64 objno) in __rbd_object_map_get()
1642 static void __rbd_object_map_set(struct rbd_device *rbd_dev, u64 objno, u8 val) in __rbd_object_map_set()
1656 static u8 rbd_object_map_get(struct rbd_device *rbd_dev, u64 objno) in rbd_object_map_get()
1666 static bool use_object_map(struct rbd_device *rbd_dev) in use_object_map()
1683 static bool rbd_object_map_may_exist(struct rbd_device *rbd_dev, u64 objno) in rbd_object_map_may_exist()
1695 static void rbd_object_map_name(struct rbd_device *rbd_dev, u64 snap_id, in rbd_object_map_name()
1706 static int rbd_object_map_lock(struct rbd_device *rbd_dev) in rbd_object_map_lock()
1764 static void rbd_object_map_unlock(struct rbd_device *rbd_dev) in rbd_object_map_unlock()
1803 static int __rbd_object_map_load(struct rbd_device *rbd_dev) in __rbd_object_map_load()
1868 static void rbd_object_map_free(struct rbd_device *rbd_dev) in rbd_object_map_free()
1875 static int rbd_object_map_load(struct rbd_device *rbd_dev) in rbd_object_map_load()
1895 static int rbd_object_map_open(struct rbd_device *rbd_dev) in rbd_object_map_open()
1912 static void rbd_object_map_close(struct rbd_device *rbd_dev) in rbd_object_map_close()
1931 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_object_map_update_finish()
1985 static bool update_needed(struct rbd_device *rbd_dev, u64 objno, u8 new_state) in update_needed()
2038 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_object_map_update()
2116 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_calc_img_extents()
2207 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in __rbd_osd_setup_write_ops()
2268 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_init_discard()
2526 struct rbd_device *rbd_dev = img_req->rbd_dev; in rbd_img_fill_request()
2742 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_may_exist()
2779 struct rbd_device *parent = img_req->rbd_dev->parent; in rbd_obj_read_from_parent()
2834 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_advance_read()
2911 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_write_is_noop()
2933 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_write_pre_object_map()
3093 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_copyup_read_parent()
3118 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_copyup_object_maps()
3194 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_advance_copyup()
3268 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_write_post_object_map()
3283 struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev; in rbd_obj_advance_write()
3371 struct rbd_device *rbd_dev = img_req->rbd_dev; in __rbd_obj_handle_request()
3402 struct rbd_device *rbd_dev = img_req->rbd_dev; in need_exclusive_lock()
3420 struct rbd_device *rbd_dev = img_req->rbd_dev; in rbd_lock_add_request()
3437 struct rbd_device *rbd_dev = img_req->rbd_dev; in rbd_lock_del_request()
3453 struct rbd_device *rbd_dev = img_req->rbd_dev; in rbd_img_exclusive_lock()
3497 struct rbd_device *rbd_dev = img_req->rbd_dev; in rbd_img_advance()
3546 struct rbd_device *rbd_dev = img_req->rbd_dev; in __rbd_img_handle_request()
3602 static struct rbd_client_id rbd_get_cid(struct rbd_device *rbd_dev) in rbd_get_cid()
3616 static void rbd_set_owner_cid(struct rbd_device *rbd_dev, in rbd_set_owner_cid()
3625 static void format_lock_cookie(struct rbd_device *rbd_dev, char *buf) in format_lock_cookie()
3632 static void __rbd_lock(struct rbd_device *rbd_dev, const char *cookie) in __rbd_lock()
3645 static int rbd_lock(struct rbd_device *rbd_dev) in rbd_lock()
3668 static void rbd_unlock(struct rbd_device *rbd_dev) in rbd_unlock()
3688 static int __rbd_notify_op_lock(struct rbd_device *rbd_dev, in __rbd_notify_op_lock()
3712 static void rbd_notify_op_lock(struct rbd_device *rbd_dev, in rbd_notify_op_lock()
3720 struct rbd_device *rbd_dev = container_of(work, struct rbd_device, in rbd_notify_acquired_lock()
3728 struct rbd_device *rbd_dev = container_of(work, struct rbd_device, in rbd_notify_released_lock()
3734 static int rbd_request_lock(struct rbd_device *rbd_dev) in rbd_request_lock()
3806 static void wake_lock_waiters(struct rbd_device *rbd_dev, int result) in wake_lock_waiters()
3832 static int get_lock_owner_info(struct rbd_device *rbd_dev, in get_lock_owner_info()
3879 static int find_watcher(struct rbd_device *rbd_dev, in find_watcher()
3927 static int rbd_try_lock(struct rbd_device *rbd_dev) in rbd_try_lock()
3978 static int rbd_post_acquire_action(struct rbd_device *rbd_dev) in rbd_post_acquire_action()
3997 static int rbd_try_acquire_lock(struct rbd_device *rbd_dev) in rbd_try_acquire_lock()
4053 struct rbd_device *rbd_dev = container_of(to_delayed_work(work), in rbd_acquire_lock()
4054 struct rbd_device, lock_dwork); in rbd_acquire_lock()
4089 static bool rbd_quiesce_lock(struct rbd_device *rbd_dev) in rbd_quiesce_lock()
4116 static void rbd_pre_release_action(struct rbd_device *rbd_dev) in rbd_pre_release_action()
4122 static void __rbd_release_lock(struct rbd_device *rbd_dev) in __rbd_release_lock()
4133 static void rbd_release_lock(struct rbd_device *rbd_dev) in rbd_release_lock()
4152 struct rbd_device *rbd_dev = container_of(work, struct rbd_device, in rbd_release_lock_work()
4160 static void maybe_kick_acquire(struct rbd_device *rbd_dev) in maybe_kick_acquire()
4177 static void rbd_handle_acquired_lock(struct rbd_device *rbd_dev, u8 struct_v, in rbd_handle_acquired_lock()
4206 static void rbd_handle_released_lock(struct rbd_device *rbd_dev, u8 struct_v, in rbd_handle_released_lock()
4240 static int rbd_handle_request_lock(struct rbd_device *rbd_dev, u8 struct_v, in rbd_handle_request_lock()
4287 static void __rbd_acknowledge_notify(struct rbd_device *rbd_dev, in __rbd_acknowledge_notify()
4313 static void rbd_acknowledge_notify(struct rbd_device *rbd_dev, u64 notify_id, in rbd_acknowledge_notify()
4320 static void rbd_acknowledge_notify_result(struct rbd_device *rbd_dev, in rbd_acknowledge_notify_result()
4330 struct rbd_device *rbd_dev = arg; in rbd_watch_cb()
4391 static void __rbd_unregister_watch(struct rbd_device *rbd_dev);
4395 struct rbd_device *rbd_dev = arg; in rbd_watch_errcb()
4416 static int __rbd_register_watch(struct rbd_device *rbd_dev) in __rbd_register_watch()
4437 static void __rbd_unregister_watch(struct rbd_device *rbd_dev) in __rbd_unregister_watch()
4452 static int rbd_register_watch(struct rbd_device *rbd_dev) in rbd_register_watch()
4470 static void cancel_tasks_sync(struct rbd_device *rbd_dev) in cancel_tasks_sync()
4484 static void rbd_unregister_watch(struct rbd_device *rbd_dev) in rbd_unregister_watch()
4501 static void rbd_reacquire_lock(struct rbd_device *rbd_dev) in rbd_reacquire_lock()
4534 struct rbd_device *rbd_dev = container_of(to_delayed_work(work), in rbd_reregister_watch()
4535 struct rbd_device, watch_dwork); in rbd_reregister_watch()
4582 static int rbd_obj_method_sync(struct rbd_device *rbd_dev, in rbd_obj_method_sync()
4639 struct rbd_device *rbd_dev = img_request->rbd_dev; in rbd_queue_workfn()
4693 struct rbd_device *rbd_dev = hctx->queue->queuedata; in rbd_queue_rq()
4731 static void rbd_free_disk(struct rbd_device *rbd_dev) in rbd_free_disk()
4738 static int rbd_obj_read_sync(struct rbd_device *rbd_dev, in rbd_obj_read_sync()
4787 static int rbd_dev_v1_header_info(struct rbd_device *rbd_dev) in rbd_dev_v1_header_info()
4842 static void rbd_dev_update_size(struct rbd_device *rbd_dev) in rbd_dev_update_size()
4859 static int rbd_dev_refresh(struct rbd_device *rbd_dev) in rbd_dev_refresh()
4896 static int rbd_init_disk(struct rbd_device *rbd_dev) in rbd_init_disk()
4968 static struct rbd_device *dev_to_rbd_dev(struct device *dev) in dev_to_rbd_dev()
4970 return container_of(dev, struct rbd_device, dev); in dev_to_rbd_dev()
4976 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_size_show()
4985 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_features_show()
4993 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_major_show()
5004 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_minor_show()
5012 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_client_addr_show()
5023 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_client_id_show()
5032 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_cluster_fsid_show()
5040 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_config_info_show()
5051 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_pool_show()
5059 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_pool_id_show()
5068 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_pool_ns_show()
5076 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_name_show()
5087 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_image_id_show()
5100 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_snap_show()
5108 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_snap_id_show()
5122 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_parent_show()
5153 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_image_refresh()
5263 static void rbd_dev_free(struct rbd_device *rbd_dev) in rbd_dev_free()
5280 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_dev_release()
5299 static struct rbd_device *__rbd_dev_create(struct rbd_client *rbdc, in __rbd_dev_create()
5302 struct rbd_device *rbd_dev; in __rbd_dev_create()
5354 static struct rbd_device *rbd_dev_create(struct rbd_client *rbdc, in rbd_dev_create()
5358 struct rbd_device *rbd_dev; in rbd_dev_create()
5392 static void rbd_dev_destroy(struct rbd_device *rbd_dev) in rbd_dev_destroy()
5403 static int _rbd_dev_v2_snap_size(struct rbd_device *rbd_dev, u64 snap_id, in _rbd_dev_v2_snap_size()
5436 static int rbd_dev_v2_image_size(struct rbd_device *rbd_dev) in rbd_dev_v2_image_size()
5443 static int rbd_dev_v2_object_prefix(struct rbd_device *rbd_dev) in rbd_dev_v2_object_prefix()
5480 static int _rbd_dev_v2_snap_features(struct rbd_device *rbd_dev, u64 snap_id, in _rbd_dev_v2_snap_features()
5524 static int rbd_dev_v2_features(struct rbd_device *rbd_dev) in rbd_dev_v2_features()
5538 static int rbd_dev_v2_get_flags(struct rbd_device *rbd_dev) in rbd_dev_v2_get_flags()
5602 static int __get_parent_info(struct rbd_device *rbd_dev, in __get_parent_info()
5645 static int __get_parent_info_legacy(struct rbd_device *rbd_dev, in __get_parent_info_legacy()
5680 static int get_parent_info(struct rbd_device *rbd_dev, in get_parent_info()
5709 static int rbd_dev_v2_parent_info(struct rbd_device *rbd_dev) in rbd_dev_v2_parent_info()
5805 static int rbd_dev_v2_striping_info(struct rbd_device *rbd_dev) in rbd_dev_v2_striping_info()
5830 static int rbd_dev_v2_data_pool(struct rbd_device *rbd_dev) in rbd_dev_v2_data_pool()
5848 static char *rbd_dev_image_name(struct rbd_device *rbd_dev) in rbd_dev_image_name()
5899 static u64 rbd_v1_snap_id_by_name(struct rbd_device *rbd_dev, const char *name) in rbd_v1_snap_id_by_name()
5917 static u64 rbd_v2_snap_id_by_name(struct rbd_device *rbd_dev, const char *name) in rbd_v2_snap_id_by_name()
5946 static u64 rbd_snap_id_by_name(struct rbd_device *rbd_dev, const char *name) in rbd_snap_id_by_name()
5957 static int rbd_spec_fill_snap_id(struct rbd_device *rbd_dev) in rbd_spec_fill_snap_id()
5986 static int rbd_spec_fill_names(struct rbd_device *rbd_dev) in rbd_spec_fill_names()
6036 static int rbd_dev_v2_snap_context(struct rbd_device *rbd_dev) in rbd_dev_v2_snap_context()
6108 static const char *rbd_dev_v2_snap_name(struct rbd_device *rbd_dev, in rbd_dev_v2_snap_name()
6148 static int rbd_dev_v2_header_info(struct rbd_device *rbd_dev) in rbd_dev_v2_header_info()
6172 static int rbd_dev_header_info(struct rbd_device *rbd_dev) in rbd_dev_header_info()
6524 static void rbd_dev_image_unlock(struct rbd_device *rbd_dev) in rbd_dev_image_unlock()
6537 static int rbd_add_acquire_lock(struct rbd_device *rbd_dev) in rbd_add_acquire_lock()
6591 static int rbd_dev_image_id(struct rbd_device *rbd_dev) in rbd_dev_image_id()
6665 static void rbd_dev_unprobe(struct rbd_device *rbd_dev) in rbd_dev_unprobe()
6683 static int rbd_dev_v2_header_onetime(struct rbd_device *rbd_dev) in rbd_dev_v2_header_onetime()
6728 static int rbd_dev_probe_parent(struct rbd_device *rbd_dev, int depth) in rbd_dev_probe_parent()
6730 struct rbd_device *parent = NULL; in rbd_dev_probe_parent()
6771 static void rbd_dev_device_release(struct rbd_device *rbd_dev) in rbd_dev_device_release()
6783 static int rbd_dev_device_setup(struct rbd_device *rbd_dev) in rbd_dev_device_setup()
6828 static int rbd_dev_header_name(struct rbd_device *rbd_dev) in rbd_dev_header_name()
6846 static void rbd_print_dne(struct rbd_device *rbd_dev, bool is_snap) in rbd_print_dne()
6864 static void rbd_dev_image_release(struct rbd_device *rbd_dev) in rbd_dev_image_release()
6884 static int rbd_dev_image_probe(struct rbd_device *rbd_dev, int depth) in rbd_dev_image_probe()
6980 struct rbd_device *rbd_dev = NULL; in do_rbd_add()
7100 static void rbd_dev_remove_parent(struct rbd_device *rbd_dev) in rbd_dev_remove_parent()
7103 struct rbd_device *first = rbd_dev; in rbd_dev_remove_parent()
7104 struct rbd_device *second = first->parent; in rbd_dev_remove_parent()
7105 struct rbd_device *third; in rbd_dev_remove_parent()
7131 struct rbd_device *rbd_dev = NULL; in do_rbd_remove()
7160 rbd_dev = list_entry(tmp, struct rbd_device, node); in do_rbd_remove()