]> git.proxmox.com Git - mirror_zfs.git/commit
zvol_os: Tidy up asserts
authorRyan Moeller <ryan@iXsystems.com>
Wed, 21 Oct 2020 17:23:08 +0000 (17:23 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 30 Oct 2020 22:34:15 +0000 (15:34 -0700)
commit0b32d81783bad54540792fc3701817a7b49025ca
treee2cc22b4a022e9a3173ef0f0de86bffde80da7ef
parentc4ede65bdfca11b532403620bbf0d6e33f0c1c1d
zvol_os: Tidy up asserts

Using more specific assert variants gives better messages on failure.

No functional change.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Matt Macy <mmacy@FreeBSD.org>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #11117
module/os/freebsd/zfs/zvol_os.c
module/os/linux/zfs/zvol_os.c