]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blobdiff - drivers/md/dm-thin.c
Merge branch 'dm-4.12' into dm-4.12-post-merge
[mirror_ubuntu-eoan-kernel.git] / drivers / md / dm-thin.c
index f90bcbf24ebccee462ae3afef7cf6ae77644a7c3..17ad50daed08ef5022b8648ef2e8701208c85a9d 100644 (file)
@@ -3264,7 +3264,6 @@ static int pool_ctr(struct dm_target *ti, unsigned argc, char **argv)
         * them down to the data device.  The thin device's discard
         * processing will cause mappings to be removed from the btree.
         */
-       ti->discard_zeroes_data_unsupported = true;
        if (pf.discard_enabled && pf.discard_passdown) {
                ti->num_discard_bios = 1;
 
@@ -4120,7 +4119,6 @@ static int thin_ctr(struct dm_target *ti, unsigned argc, char **argv)
        ti->per_io_data_size = sizeof(struct dm_thin_endio_hook);
 
        /* In case the pool supports discards, pass them on. */
-       ti->discard_zeroes_data_unsupported = true;
        if (tc->pool->pf.discard_enabled) {
                ti->discards_supported = true;
                ti->num_discard_bios = 1;