diff --git a/module/zfs/zvol.c b/module/zfs/zvol.c index bcdd8e8def..37c39d19ad 100644 --- a/module/zfs/zvol.c +++ b/module/zfs/zvol.c @@ -662,6 +662,7 @@ zvol_discard(struct bio *bio) if (!(bio->bi_rw & REQ_SECURE)) { start = P2ROUNDUP(start, zv->zv_volblocksize); end = P2ALIGN(end, zv->zv_volblocksize); + size = end - start; } #endif