mapped_device
struct mapped_device *md = dm_table_get_md(ti->table);
static inline sector_t dm_get_size(struct mapped_device *md)
static inline struct dm_stats *dm_get_stats(struct mapped_device *md)
static inline bool dm_emulate_zone_append(struct mapped_device *md)
struct mapped_device *md;
struct mapped_device *md;
struct mapped_device *md = dm_table_get_md(ti->table);
static int dm_ima_alloc_and_copy_device_data(struct mapped_device *md, char **device_data,
static int dm_ima_alloc_and_copy_capacity_str(struct mapped_device *md, char **capacity_str,
void dm_ima_reset_data(struct mapped_device *md)
void dm_ima_measure_on_device_resume(struct mapped_device *md, bool swap)
void dm_ima_measure_on_device_remove(struct mapped_device *md, bool remove_all)
void dm_ima_measure_on_table_clear(struct mapped_device *md, bool new_map)
static int dm_ima_alloc_and_copy_name_uuid(struct mapped_device *md, char **dev_name,
void dm_ima_measure_on_device_rename(struct mapped_device *md)
void dm_ima_reset_data(struct mapped_device *md);
void dm_ima_measure_on_device_resume(struct mapped_device *md, bool swap);
void dm_ima_measure_on_device_remove(struct mapped_device *md, bool remove_all);
void dm_ima_measure_on_table_clear(struct mapped_device *md, bool new_map);
void dm_ima_measure_on_device_rename(struct mapped_device *md);
static inline void dm_ima_reset_data(struct mapped_device *md) {}
static inline void dm_ima_measure_on_device_resume(struct mapped_device *md, bool swap) {}
static inline void dm_ima_measure_on_device_remove(struct mapped_device *md, bool remove_all) {}
static inline void dm_ima_measure_on_table_clear(struct mapped_device *md, bool new_map) {}
static inline void dm_ima_measure_on_device_rename(struct mapped_device *md) {}
struct mapped_device *md;
struct mapped_device *md;
struct mapped_device *md;
struct mapped_device *md;
struct mapped_device *md;
struct mapped_device *md;
struct mapped_device *md;
struct mapped_device *md;
struct mapped_device *md;
struct mapped_device *md;
static int message_for_md(struct mapped_device *md, unsigned int argc, char **argv,
struct mapped_device *md;
struct mapped_device *md;
struct mapped_device *md)
int dm_copy_name_and_uuid(struct mapped_device *md, char *name, char *uuid)
struct mapped_device *md;
static int dm_hash_insert(const char *name, const char *uuid, struct mapped_device *md)
struct mapped_device *md;
static struct mapped_device *dm_hash_rename(struct dm_ioctl *param,
struct mapped_device *md;
struct mapped_device *md;
static struct dm_table *dm_get_inactive_table(struct mapped_device *md, int *srcu_idx)
static struct dm_table *dm_get_live_or_inactive_table(struct mapped_device *md,
static void __dev_status(struct mapped_device *md, struct dm_ioctl *param)
struct mapped_device *md;
static struct mapped_device *find_device(struct dm_ioctl *param)
struct mapped_device *md = NULL;
struct mapped_device *md;
struct mapped_device *md = ti->table->md;
static void rq_end_stats(struct mapped_device *md, struct request *orig)
static void rq_completed(struct mapped_device *md)
struct mapped_device *md = tio->md;
void dm_mq_kick_requeue_list(struct mapped_device *md)
struct mapped_device *md;
struct mapped_device *md = tio->md;
struct mapped_device *md = tio->md;
struct mapped_device *md)
struct mapped_device *md = tio->md;
ssize_t dm_attr_rq_based_seq_io_merge_deadline_show(struct mapped_device *md, char *buf)
ssize_t dm_attr_rq_based_seq_io_merge_deadline_store(struct mapped_device *md,
static void dm_start_request(struct mapped_device *md, struct request *orig)
struct mapped_device *md = set->driver_data;
struct mapped_device *md = tio->md;
int dm_mq_init_request_queue(struct mapped_device *md, struct dm_table *t)
void dm_mq_cleanup_mapped_device(struct mapped_device *md)
int dm_request_based(struct mapped_device *md)
struct mapped_device;
int dm_mq_init_request_queue(struct mapped_device *md, struct dm_table *t);
void dm_mq_cleanup_mapped_device(struct mapped_device *md);
void dm_mq_kick_requeue_list(struct mapped_device *md);
ssize_t dm_attr_rq_based_seq_io_merge_deadline_show(struct mapped_device *md, char *buf);
ssize_t dm_attr_rq_based_seq_io_merge_deadline_store(struct mapped_device *md,
struct mapped_device *origin_md = NULL;
static int message_stats_create(struct mapped_device *md,
static int message_stats_delete(struct mapped_device *md,
static int message_stats_clear(struct mapped_device *md,
static int message_stats_list(struct mapped_device *md,
static int message_stats_print(struct mapped_device *md,
static int message_stats_set_aux(struct mapped_device *md,
int dm_stats_message(struct mapped_device *md, unsigned int argc, char **argv,
void (*suspend_callback)(struct mapped_device *),
void (*resume_callback)(struct mapped_device *),
struct mapped_device *md)
struct mapped_device;
int dm_stats_message(struct mapped_device *md, unsigned int argc, char **argv,
int dm_sysfs_init(struct mapped_device *md)
void dm_sysfs_exit(struct mapped_device *md)
ssize_t (*show)(struct mapped_device *md, char *p);
ssize_t (*store)(struct mapped_device *md, const char *p, size_t count);
struct mapped_device *md;
struct mapped_device *md;
static ssize_t dm_attr_name_show(struct mapped_device *md, char *buf)
static ssize_t dm_attr_uuid_show(struct mapped_device *md, char *buf)
static ssize_t dm_attr_suspended_show(struct mapped_device *md, char *buf)
static ssize_t dm_attr_use_blk_mq_show(struct mapped_device *md, char *buf)
static int dm_table_alloc_md_mempools(struct dm_table *t, struct mapped_device *md)
struct mapped_device *md;
struct mapped_device *md =
struct mapped_device *md =
unsigned int num_targets, struct mapped_device *md)
static void free_devices(struct list_head *devices, struct mapped_device *md)
struct mapped_device *dm_table_get_md(struct dm_table *t)
struct mapped_device *md)
struct mapped_device *pool_md;
static struct pool *pool_create(struct mapped_device *pool_md,
static struct pool *__pool_find(struct mapped_device *pool_md,
struct mapped_device *thin_md;
struct mapped_device *pool_md;
static struct pool *__pool_table_lookup(struct mapped_device *md)
struct mapped_device *md = dm_table_get_md(ti->table);
struct mapped_device *md;
static struct dm_uevent *dm_uevent_alloc(struct mapped_device *md)
static struct dm_uevent *dm_build_path_uevent(struct mapped_device *md,
struct mapped_device *md;
struct mapped_device *md = dm_table_get_md(v->ti->table);
bool dm_is_zone_write(struct mapped_device *md, struct bio *bio)
struct mapped_device *md = t->md;
static int dm_blk_do_report_zones(struct mapped_device *md, struct dm_table *t,
struct mapped_device *md = t->md;
struct mapped_device *md = t->md;
struct mapped_device *md = io->md;
int dm_zone_get_reset_bitmap(struct mapped_device *md, struct dm_table *t,
struct mapped_device *md = disk->private_data;
static inline struct queue_limits *dm_get_queue_limits(struct mapped_device *md)
struct mapped_device *md = io->md;
static struct dm_target *dm_dax_get_live_target(struct mapped_device *md,
struct mapped_device *md = dax_get_private(dax_dev);
struct mapped_device *md = dax_get_private(dax_dev);
struct mapped_device *md = dax_get_private(dax_dev);
static noinline void __set_swap_bios_limit(struct mapped_device *md, int latch)
struct mapped_device *md = io->md;
static inline bool dm_zone_plug_bio(struct mapped_device *md, struct bio *bio)
struct mapped_device *md = ci->io->md;
static inline bool dm_zone_plug_bio(struct mapped_device *md, struct bio *bio)
static void dm_split_and_process_bio(struct mapped_device *md,
struct mapped_device *md = bio->bi_bdev->bd_disk->private_data;
static void cleanup_mapped_device(struct mapped_device *md)
static struct mapped_device *alloc_dev(int minor)
struct mapped_device *md;
static void unlock_fs(struct mapped_device *md);
static void free_dev(struct mapped_device *md)
struct mapped_device *md = context;
static struct dm_table *__bind(struct mapped_device *md, struct dm_table *t,
static struct dm_table *__unbind(struct mapped_device *md)
int dm_create(int minor, struct mapped_device **result)
struct mapped_device *md;
void dm_lock_md_type(struct mapped_device *md)
void dm_unlock_md_type(struct mapped_device *md)
enum dm_queue_mode dm_get_md_type(struct mapped_device *md)
struct target_type *dm_get_immutable_target_type(struct mapped_device *md)
int dm_setup_md_queue(struct mapped_device *md, struct dm_table *t)
struct mapped_device *dm_get_md(dev_t dev)
struct mapped_device *md;
void *dm_get_mdptr(struct mapped_device *md)
void dm_set_mdptr(struct mapped_device *md, void *ptr)
void dm_get(struct mapped_device *md)
int dm_hold(struct mapped_device *md)
const char *dm_device_name(struct mapped_device *md)
static void __dm_destroy(struct mapped_device *md, bool wait)
void dm_destroy(struct mapped_device *md)
void dm_destroy_immediate(struct mapped_device *md)
void dm_put(struct mapped_device *md)
static bool dm_in_flight_bios(struct mapped_device *md)
static int dm_wait_for_bios_completion(struct mapped_device *md, unsigned int task_state)
static int dm_wait_for_completion(struct mapped_device *md, unsigned int task_state)
struct mapped_device *md = container_of(work, struct mapped_device, work);
static void dm_queue_flush(struct mapped_device *md)
struct dm_table *dm_swap_table(struct mapped_device *md, struct dm_table *table)
static int lock_fs(struct mapped_device *md)
static void unlock_fs(struct mapped_device *md)
static int __dm_suspend(struct mapped_device *md, struct dm_table *map,
int dm_suspend(struct mapped_device *md, unsigned int suspend_flags)
int dm_deleting_md(struct mapped_device *md)
static int __dm_resume(struct mapped_device *md, struct dm_table *map)
int dm_resume(struct mapped_device *md)
static void __dm_internal_suspend(struct mapped_device *md, unsigned int suspend_flags)
struct mapped_device *md;
static void __dm_internal_resume(struct mapped_device *md)
void dm_internal_suspend_noflush(struct mapped_device *md)
void dm_internal_resume(struct mapped_device *md)
void dm_internal_suspend_fast(struct mapped_device *md)
void dm_internal_resume_fast(struct mapped_device *md)
int dm_kobject_uevent(struct mapped_device *md, enum kobject_action action,
uint32_t dm_next_uevent_seq(struct mapped_device *md)
uint32_t dm_get_event_nr(struct mapped_device *md)
int dm_wait_event(struct mapped_device *md, int event_nr)
void dm_uevent_add(struct mapped_device *md, struct list_head *elist)
struct gendisk *dm_disk(struct mapped_device *md)
struct kobject *dm_kobject(struct mapped_device *md)
struct mapped_device *dm_get_from_kobject(struct kobject *kobj)
struct mapped_device *md;
md = container_of(kobj, struct mapped_device, kobj_holder.kobj);
int dm_suspended_md(struct mapped_device *md)
static int dm_post_suspending_md(struct mapped_device *md)
int dm_suspended_internally_md(struct mapped_device *md)
int dm_test_deferred_remove_flag(struct mapped_device *md)
struct mapped_device *md;
struct mapped_device *md = disk->private_data;
struct mapped_device *md = bdev->bd_disk->private_data;
int dm_open_count(struct mapped_device *md)
int dm_lock_for_deletion(struct mapped_device *md, bool mark_deferred, bool only_deferred)
struct mapped_device *md = bdev->bd_disk->private_data;
int dm_cancel_deferred_remove(struct mapped_device *md)
struct mapped_device *md = disk->private_data;
static int dm_prepare_ioctl(struct mapped_device *md, int *srcu_idx,
static void dm_unprepare_ioctl(struct mapped_device *md, int srcu_idx)
struct mapped_device *md = bdev->bd_disk->private_data;
static struct dm_io *alloc_io(struct mapped_device *md, struct bio *bio, gfp_t gfp_mask)
struct mapped_device *md = ci->io->md;
static void queue_io(struct mapped_device *md, struct bio *bio)
struct dm_table *dm_get_live_table(struct mapped_device *md,
void dm_put_live_table(struct mapped_device *md,
void dm_sync_table(struct mapped_device *md)
static struct dm_table *dm_get_live_table_fast(struct mapped_device *md) __acquires(RCU)
static void dm_put_live_table_fast(struct mapped_device *md) __releases(RCU)
static struct table_device *open_table_device(struct mapped_device *md,
static void close_table_device(struct table_device *td, struct mapped_device *md)
int dm_get_table_device(struct mapped_device *md, dev_t dev, blk_mode_t mode,
void dm_put_table_device(struct mapped_device *md, struct dm_dev *d)
int dm_get_geometry(struct mapped_device *md, struct hd_geometry *geo)
int dm_set_geometry(struct mapped_device *md, struct hd_geometry *geo)
static int __noflush_suspending(struct mapped_device *md)
struct mapped_device *md = io->md;
static void dm_kick_requeue(struct mapped_device *md, bool first_stage)
struct mapped_device *md = io->md;
struct mapped_device *md = io->md;
struct mapped_device *md = container_of(work, struct mapped_device,
bool dm_is_zone_write(struct mapped_device *md, struct bio *bio);
int dm_zone_get_reset_bitmap(struct mapped_device *md, struct dm_table *t,
static inline bool dm_is_zone_write(struct mapped_device *md, struct bio *bio)
int dm_deleting_md(struct mapped_device *md);
int dm_suspended_md(struct mapped_device *md);
int dm_suspended_internally_md(struct mapped_device *md);
void dm_internal_suspend_fast(struct mapped_device *md);
void dm_internal_resume_fast(struct mapped_device *md);
void dm_internal_suspend_noflush(struct mapped_device *md);
void dm_internal_resume(struct mapped_device *md);
int dm_test_deferred_remove_flag(struct mapped_device *md);
int dm_sysfs_init(struct mapped_device *md);
void dm_sysfs_exit(struct mapped_device *md);
struct kobject *dm_kobject(struct mapped_device *md);
struct mapped_device *dm_get_from_kobject(struct kobject *kobj);
void dm_destroy(struct mapped_device *md);
void dm_destroy_immediate(struct mapped_device *md);
int dm_open_count(struct mapped_device *md);
int dm_lock_for_deletion(struct mapped_device *md, bool mark_deferred, bool only_deferred);
int dm_cancel_deferred_remove(struct mapped_device *md);
int dm_request_based(struct mapped_device *md);
int dm_get_table_device(struct mapped_device *md, dev_t dev, blk_mode_t mode,
void dm_put_table_device(struct mapped_device *md, struct dm_dev *d);
int dm_kobject_uevent(struct mapped_device *md, enum kobject_action action,
void dm_lock_md_type(struct mapped_device *md);
void dm_unlock_md_type(struct mapped_device *md);
enum dm_queue_mode dm_get_md_type(struct mapped_device *md);
struct target_type *dm_get_immutable_target_type(struct mapped_device *md);
int dm_setup_md_queue(struct mapped_device *md, struct dm_table *t);
bus->mapped_device = NULL;
if (unlikely(bus->mapped_device != dev)) {
if (unlikely(bus->mapped_device != dev)) {
if (unlikely(bus->mapped_device != dev)) {
if (unlikely(bus->mapped_device != dev)) {
if (unlikely(bus->mapped_device != dev)) {
bus->mapped_device = dev;
if (unlikely(bus->mapped_device != dev)) {
if (unlikely(bus->mapped_device != dev)) {
if (unlikely(bus->mapped_device != dev)) {
bus->mapped_device = dev;
if (unlikely(dev != bus->mapped_device)) {
bus->mapped_device = NULL;
bus->mapped_device = dev;
struct mapped_device;
int dm_create(int minor, struct mapped_device **md);
struct mapped_device *dm_get_md(dev_t dev);
void dm_get(struct mapped_device *md);
int dm_hold(struct mapped_device *md);
void dm_put(struct mapped_device *md);
void dm_set_mdptr(struct mapped_device *md, void *ptr);
void *dm_get_mdptr(struct mapped_device *md);
int dm_suspend(struct mapped_device *md, unsigned int suspend_flags);
int dm_resume(struct mapped_device *md);
uint32_t dm_get_event_nr(struct mapped_device *md);
int dm_wait_event(struct mapped_device *md, int event_nr);
uint32_t dm_next_uevent_seq(struct mapped_device *md);
void dm_uevent_add(struct mapped_device *md, struct list_head *elist);
const char *dm_device_name(struct mapped_device *md);
int dm_copy_name_and_uuid(struct mapped_device *md, char *name, char *uuid);
struct gendisk *dm_disk(struct mapped_device *md);
int dm_get_geometry(struct mapped_device *md, struct hd_geometry *geo);
int dm_set_geometry(struct mapped_device *md, struct hd_geometry *geo);
unsigned int num_targets, struct mapped_device *md);
struct dm_table *dm_get_live_table(struct mapped_device *md, int *srcu_idx);
void dm_put_live_table(struct mapped_device *md, int srcu_idx);
void dm_sync_table(struct mapped_device *md);
struct mapped_device *dm_table_get_md(struct dm_table *t);
struct dm_table *dm_swap_table(struct mapped_device *md,
struct ssb_device *mapped_device;