Home
last modified time | relevance | path

Searched refs:zmd (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/md/
A Ddm-zoned-metadata.c412 if (zmd->max_nr_mblks && atomic_read(&zmd->nr_mblks) > zmd->max_nr_mblks) { in dmz_alloc_mblock()
916 dev = zmd->sb[zmd->mblk_primary].dev; in dmz_flush_metadata()
1148 zmd->sb[1].dev = zmd->sb[0].dev; in dmz_lookup_secondary_sb()
1206 zmd->sb[0].block = dmz_start_block(zmd, zmd->sb[0].zone); in dmz_recover_mblocks()
1208 zmd->sb[1].block = dmz_start_block(zmd, zmd->sb[1].zone); in dmz_recover_mblocks()
1258 zmd->sb[0].block = dmz_start_block(zmd, zmd->sb[0].zone); in dmz_load_sb()
1259 zmd->sb[0].dev = zmd->sb[0].zone->dev; in dmz_load_sb()
1260 ret = dmz_get_sb(zmd, &zmd->sb[0], 0); in dmz_load_sb()
1277 zmd->sb[1].block = dmz_start_block(zmd, zmd->sb[1].zone); in dmz_load_sb()
1278 zmd->sb[1].dev = zmd->sb[0].dev; in dmz_load_sb()
[all …]
A Ddm-zoned-reclaim.c213 dmz_lock_flush(zmd); in dmz_reclaim_buf()
219 dmz_invalidate_blocks(zmd, bzone, 0, dmz_zone_nr_blocks(zmd)); in dmz_reclaim_buf()
220 dmz_lock_map(zmd); in dmz_reclaim_buf()
252 dmz_lock_flush(zmd); in dmz_reclaim_seq_data()
261 dmz_invalidate_blocks(zmd, dzone, 0, dmz_zone_nr_blocks(zmd)); in dmz_reclaim_seq_data()
262 dmz_lock_map(zmd); in dmz_reclaim_seq_data()
289 dmz_lock_map(zmd); in dmz_reclaim_rnd_data()
318 dmz_lock_map(zmd); in dmz_reclaim_rnd_data()
323 dmz_invalidate_blocks(zmd, dzone, 0, dmz_zone_nr_blocks(zmd)); in dmz_reclaim_rnd_data()
324 dmz_lock_map(zmd); in dmz_reclaim_rnd_data()
[all …]
A Ddm-zoned.h85 dmz_zone_nr_sectors_shift(zmd))
86 #define dmz_chunk_block(zmd, b) ((b) & (dmz_zone_nr_blocks(zmd) - 1)) argument
195 void dmz_dtr_metadata(struct dmz_metadata *zmd);
198 void dmz_lock_map(struct dmz_metadata *zmd);
199 void dmz_unlock_map(struct dmz_metadata *zmd);
200 void dmz_lock_metadata(struct dmz_metadata *zmd);
202 void dmz_lock_flush(struct dmz_metadata *zmd);
203 void dmz_unlock_flush(struct dmz_metadata *zmd);
204 int dmz_flush_metadata(struct dmz_metadata *zmd);
211 bool dmz_check_dev(struct dmz_metadata *zmd);
[all …]
A Ddm-zoned-target.c173 struct dmz_metadata *zmd = dmz->metadata; in dmz_handle_read() local
187 dmz_metadata_label(zmd), in dmz_handle_read()
293 bzone = dmz_get_chunk_buffer(zmd, zone); in dmz_handle_buffered_write()
330 dmz_metadata_label(zmd), in dmz_handle_write()
405 dmz_lock_metadata(zmd); in dmz_handle_bio()
412 zone = dmz_get_chunk_mapping(zmd, dmz_bio_chunk(zmd, bio), in dmz_handle_bio()
448 dmz_put_chunk_mapping(zmd, zone); in dmz_handle_bio()
452 dmz_unlock_metadata(zmd); in dmz_handle_bio()
636 if (dmz_dev_is_dying(zmd)) in dmz_map()
640 dmz_metadata_label(zmd), in dmz_map()
[all …]

Completed in 27 milliseconds