X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=module%2Fzfs%2Fzvol.c;fp=module%2Fzfs%2Fzvol.c;h=b516156372448a286f8e68c761314048d8334ac4;hb=a1d9543a39942be56879ca9338078afc77c25cea;hp=e35c91bc184ea2c91c89ee25f7611df645a0b98e;hpb=168d056cf8ed073e17f008b9109ad3d37e63f172;p=zfs.git diff --git a/module/zfs/zvol.c b/module/zfs/zvol.c index e35c91b..b516156 100644 --- a/module/zfs/zvol.c +++ b/module/zfs/zvol.c @@ -1024,7 +1024,11 @@ out_mutex: return (error); } +#ifdef HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID +static void +#else static int +#endif zvol_release(struct gendisk *disk, fmode_t mode) { zvol_state_t *zv = disk->private_data; @@ -1044,7 +1048,9 @@ zvol_release(struct gendisk *disk, fmode_t mode) if (drop_mutex) mutex_exit(&zvol_state_lock); +#ifndef HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID return (0); +#endif } static int