dm.h (4cc96131afce3eaae7c13dff41c6ba771cf10e96) | dm.h (e83068a5faafb8ca65d3b58bd1e1e3959ce1ddce) |
---|---|
1/* 2 * Internal header file for device mapper 3 * 4 * Copyright (C) 2001, 2002 Sistina Software 5 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. 6 * 7 * This file is released under the LGPL. 8 */ --- 20 unchanged lines hidden (view full) --- 29#define DM_SUSPEND_NOFLUSH_FLAG (1 << 1) 30 31/* 32 * Status feature flags 33 */ 34#define DM_STATUS_NOFLUSH_FLAG (1 << 0) 35 36/* | 1/* 2 * Internal header file for device mapper 3 * 4 * Copyright (C) 2001, 2002 Sistina Software 5 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. 6 * 7 * This file is released under the LGPL. 8 */ --- 20 unchanged lines hidden (view full) --- 29#define DM_SUSPEND_NOFLUSH_FLAG (1 << 1) 30 31/* 32 * Status feature flags 33 */ 34#define DM_STATUS_NOFLUSH_FLAG (1 << 0) 35 36/* |
37 * Type of table and mapped_device's mempool 38 */ 39#define DM_TYPE_NONE 0 40#define DM_TYPE_BIO_BASED 1 41#define DM_TYPE_REQUEST_BASED 2 42#define DM_TYPE_MQ_REQUEST_BASED 3 43 44/* | |
45 * List of devices that a metadevice uses and should open/close. 46 */ 47struct dm_dev_internal { 48 struct list_head list; 49 atomic_t count; 50 struct dm_dev *dm_dev; 51}; 52 --- 19 unchanged lines hidden (view full) --- 72void dm_table_postsuspend_targets(struct dm_table *t); 73int dm_table_resume_targets(struct dm_table *t); 74int dm_table_any_congested(struct dm_table *t, int bdi_bits); 75unsigned dm_table_get_type(struct dm_table *t); 76struct target_type *dm_table_get_immutable_target_type(struct dm_table *t); 77struct dm_target *dm_table_get_immutable_target(struct dm_table *t); 78struct dm_target *dm_table_get_wildcard_target(struct dm_table *t); 79bool dm_table_request_based(struct dm_table *t); | 37 * List of devices that a metadevice uses and should open/close. 38 */ 39struct dm_dev_internal { 40 struct list_head list; 41 atomic_t count; 42 struct dm_dev *dm_dev; 43}; 44 --- 19 unchanged lines hidden (view full) --- 64void dm_table_postsuspend_targets(struct dm_table *t); 65int dm_table_resume_targets(struct dm_table *t); 66int dm_table_any_congested(struct dm_table *t, int bdi_bits); 67unsigned dm_table_get_type(struct dm_table *t); 68struct target_type *dm_table_get_immutable_target_type(struct dm_table *t); 69struct dm_target *dm_table_get_immutable_target(struct dm_table *t); 70struct dm_target *dm_table_get_wildcard_target(struct dm_table *t); 71bool dm_table_request_based(struct dm_table *t); |
80bool dm_table_mq_request_based(struct dm_table *t); | 72bool dm_table_all_blk_mq_devices(struct dm_table *t); |
81void dm_table_free_md_mempools(struct dm_table *t); 82struct dm_md_mempools *dm_table_get_md_mempools(struct dm_table *t); 83 84void dm_lock_md_type(struct mapped_device *md); 85void dm_unlock_md_type(struct mapped_device *md); 86void dm_set_md_type(struct mapped_device *md, unsigned type); 87unsigned dm_get_md_type(struct mapped_device *md); 88struct target_type *dm_get_immutable_target_type(struct mapped_device *md); --- 136 unchanged lines hidden --- | 73void dm_table_free_md_mempools(struct dm_table *t); 74struct dm_md_mempools *dm_table_get_md_mempools(struct dm_table *t); 75 76void dm_lock_md_type(struct mapped_device *md); 77void dm_unlock_md_type(struct mapped_device *md); 78void dm_set_md_type(struct mapped_device *md, unsigned type); 79unsigned dm_get_md_type(struct mapped_device *md); 80struct target_type *dm_get_immutable_target_type(struct mapped_device *md); --- 136 unchanged lines hidden --- |