Lines Matching full:metadata
49 /* For metadata handling */
50 struct dmz_metadata *metadata; member
134 dmz_start_sect(dmz->metadata, zone) + dmz_blk2sect(chunk_block); in dmz_submit_bio()
172 struct dmz_metadata *zmd = dmz->metadata; in dmz_handle_read()
254 struct dmz_metadata *zmd = dmz->metadata; in dmz_handle_direct_write()
287 struct dmz_metadata *zmd = dmz->metadata; in dmz_handle_buffered_write()
321 struct dmz_metadata *zmd = dmz->metadata; in dmz_handle_write()
360 struct dmz_metadata *zmd = dmz->metadata; in dmz_handle_discard()
374 dmz_metadata_label(dmz->metadata), in dmz_handle_discard()
400 struct dmz_metadata *zmd = dmz->metadata; in dmz_handle_bio()
438 dmz_metadata_label(dmz->metadata), bio_op(bio)); in dmz_handle_bio()
509 /* Flush dirty metadata blocks */ in dmz_flush_work()
510 ret = dmz_flush_metadata(dmz->metadata); in dmz_flush_work()
512 DMDEBUG("(%s): Metadata flush failed, rc=%d", in dmz_flush_work()
513 dmz_metadata_label(dmz->metadata), ret); in dmz_flush_work()
536 unsigned int chunk = dmz_bio_chunk(dmz->metadata, bio); in dmz_queue_chunk_work()
578 * start failing I/O. Reclaim and metadata components also call this
628 struct dmz_metadata *zmd = dmz->metadata; in dmz_map()
872 /* Initialize metadata */ in dmz_ctr()
873 ret = dmz_ctr_metadata(dmz->dev, argc, &dmz->metadata, in dmz_ctr()
876 ti->error = "Metadata initialization failed"; in dmz_ctr()
881 ti->max_io_len = dmz_zone_nr_sectors(dmz->metadata); in dmz_ctr()
890 ti->len = (sector_t)dmz_nr_chunks(dmz->metadata) << in dmz_ctr()
891 dmz_zone_nr_sectors_shift(dmz->metadata); in dmz_ctr()
905 dmz_metadata_label(dmz->metadata)); in dmz_ctr()
917 dmz_metadata_label(dmz->metadata)); in dmz_ctr()
927 ret = dmz_ctr_reclaim(dmz->metadata, &dmz->dev[i].reclaim, i); in dmz_ctr()
935 dmz_metadata_label(dmz->metadata), in dmz_ctr()
948 dmz_dtr_metadata(dmz->metadata); in dmz_ctr()
974 (void) dmz_flush_metadata(dmz->metadata); in dmz_dtr()
976 dmz_dtr_metadata(dmz->metadata); in dmz_dtr()
994 unsigned int chunk_sectors = dmz_zone_nr_sectors(dmz->metadata); in dmz_io_hints()
1062 unsigned int zone_nr_sectors = dmz_zone_nr_sectors(dmz->metadata); in dmz_iterate_devices()
1088 dmz_nr_zones(dmz->metadata), in dmz_status()
1089 dmz_nr_unmap_cache_zones(dmz->metadata), in dmz_status()
1090 dmz_nr_cache_zones(dmz->metadata)); in dmz_status()
1097 (dmz_nr_cache_zones(dmz->metadata) > 0)) in dmz_status()
1100 dmz_nr_unmap_rnd_zones(dmz->metadata, i), in dmz_status()
1101 dmz_nr_rnd_zones(dmz->metadata, i), in dmz_status()
1102 dmz_nr_unmap_seq_zones(dmz->metadata, i), in dmz_status()
1103 dmz_nr_seq_zones(dmz->metadata, i)); in dmz_status()