Lines Matching defs:dmz_metadata
143 struct dmz_metadata { struct
144 struct dmz_dev *dev;
145 unsigned int nr_devs;
147 char devname[BDEVNAME_SIZE];
148 char label[BDEVNAME_SIZE];
149 uuid_t uuid;
151 sector_t zone_bitmap_size;
152 unsigned int zone_nr_bitmap_blocks;
153 unsigned int zone_bits_per_mblk;
155 sector_t zone_nr_blocks;
156 sector_t zone_nr_blocks_shift;
158 sector_t zone_nr_sectors;
159 sector_t zone_nr_sectors_shift;
161 unsigned int nr_bitmap_blocks;
162 unsigned int nr_map_blocks;
164 unsigned int nr_zones;
165 unsigned int nr_useable_zones;
166 unsigned int nr_meta_blocks;
167 unsigned int nr_meta_zones;
168 unsigned int nr_data_zones;
169 unsigned int nr_cache_zones;
170 unsigned int nr_rnd_zones;
171 unsigned int nr_reserved_seq;
172 unsigned int nr_chunks;
175 struct xarray zones;
177 struct dmz_sb sb[2];
178 unsigned int mblk_primary;
179 unsigned int sb_version;
180 u64 sb_gen;
181 unsigned int min_nr_mblks;
182 unsigned int max_nr_mblks;
183 atomic_t nr_mblks;
184 struct rw_semaphore mblk_sem;
185 struct mutex mblk_flush_lock;
186 spinlock_t mblk_lock;
187 struct rb_root mblk_rbtree;
188 struct list_head mblk_lru_list;
189 struct list_head mblk_dirty_list;
190 struct shrinker *mblk_shrinker;
193 struct mutex map_lock;
194 struct dmz_mblock **map_mblk;
196 unsigned int nr_cache;
197 atomic_t unmap_nr_cache;
221 static unsigned int dmz_dev_zone_id(struct dmz_metadata *zmd, struct dm_zone *zone) in dmz_dev_zone_id() argument