Lines Matching full:metadata
49 /* For metadata handling */
50 struct dmz_metadata *metadata; member
135 dmz_start_sect(dmz->metadata, zone) + dmz_blk2sect(chunk_block); in dmz_submit_bio()
173 struct dmz_metadata *zmd = dmz->metadata; in dmz_handle_read()
255 struct dmz_metadata *zmd = dmz->metadata; in dmz_handle_direct_write()
288 struct dmz_metadata *zmd = dmz->metadata; in dmz_handle_buffered_write()
322 struct dmz_metadata *zmd = dmz->metadata; in dmz_handle_write()
361 struct dmz_metadata *zmd = dmz->metadata; in dmz_handle_discard()
375 dmz_metadata_label(dmz->metadata), in dmz_handle_discard()
401 struct dmz_metadata *zmd = dmz->metadata; in dmz_handle_bio()
439 dmz_metadata_label(dmz->metadata), bio_op(bio)); in dmz_handle_bio()
510 /* Flush dirty metadata blocks */ in dmz_flush_work()
511 ret = dmz_flush_metadata(dmz->metadata); in dmz_flush_work()
513 DMDEBUG("(%s): Metadata flush failed, rc=%d", in dmz_flush_work()
514 dmz_metadata_label(dmz->metadata), ret); in dmz_flush_work()
537 unsigned int chunk = dmz_bio_chunk(dmz->metadata, bio); in dmz_queue_chunk_work()
579 * start failing I/O. Reclaim and metadata components also call this
629 struct dmz_metadata *zmd = dmz->metadata; in dmz_map()
876 /* Initialize metadata */ in dmz_ctr()
877 ret = dmz_ctr_metadata(dmz->dev, argc, &dmz->metadata, in dmz_ctr()
880 ti->error = "Metadata initialization failed"; in dmz_ctr()
885 ti->max_io_len = dmz_zone_nr_sectors(dmz->metadata); in dmz_ctr()
894 ti->len = (sector_t)dmz_nr_chunks(dmz->metadata) << in dmz_ctr()
895 dmz_zone_nr_sectors_shift(dmz->metadata); in dmz_ctr()
909 dmz_metadata_label(dmz->metadata)); in dmz_ctr()
921 dmz_metadata_label(dmz->metadata)); in dmz_ctr()
931 ret = dmz_ctr_reclaim(dmz->metadata, &dmz->dev[i].reclaim, i); in dmz_ctr()
939 dmz_metadata_label(dmz->metadata), in dmz_ctr()
952 dmz_dtr_metadata(dmz->metadata); in dmz_ctr()
979 (void) dmz_flush_metadata(dmz->metadata); in dmz_dtr()
981 dmz_dtr_metadata(dmz->metadata); in dmz_dtr()
999 unsigned int chunk_sectors = dmz_zone_nr_sectors(dmz->metadata); in dmz_io_hints()
1068 unsigned int zone_nr_sectors = dmz_zone_nr_sectors(dmz->metadata); in dmz_iterate_devices()
1094 dmz_nr_zones(dmz->metadata), in dmz_status()
1095 dmz_nr_unmap_cache_zones(dmz->metadata), in dmz_status()
1096 dmz_nr_cache_zones(dmz->metadata)); in dmz_status()
1103 (dmz_nr_cache_zones(dmz->metadata) > 0)) in dmz_status()
1106 dmz_nr_unmap_rnd_zones(dmz->metadata, i), in dmz_status()
1107 dmz_nr_rnd_zones(dmz->metadata, i), in dmz_status()
1108 dmz_nr_unmap_seq_zones(dmz->metadata, i), in dmz_status()
1109 dmz_nr_seq_zones(dmz->metadata, i)); in dmz_status()