Source
720
720
}
721
721
722
722
/* Set target (no write same support) */
723
723
ti->max_io_len = dev->zone_nr_sectors << 9;
724
724
ti->num_flush_bios = 1;
725
725
ti->num_discard_bios = 1;
726
726
ti->num_write_zeroes_bios = 1;
727
727
ti->per_io_data_size = sizeof(struct dmz_bioctx);
728
728
ti->flush_supported = true;
729
729
ti->discards_supported = true;
730
-
ti->split_discard_bios = true;
731
730
732
731
/* The exposed capacity is the number of chunks that can be mapped */
733
732
ti->len = (sector_t)dmz_nr_chunks(dmz->metadata) << dev->zone_nr_sectors_shift;
734
733
735
734
/* Zone BIO */
736
735
ret = bioset_init(&dmz->bio_set, DMZ_MIN_BIOS, 0, 0);
737
736
if (ret) {
738
737
ti->error = "Create BIO set failed";
739
738
goto err_meta;
740
739
}