aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/openzfs/module
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2023-04-25 17:43:48 +0000
committerDimitry Andric <dim@FreeBSD.org>2023-04-25 17:58:17 +0000
commit64b5d74fffc8882d915e6e8de7e5fc893c606213 (patch)
tree8f39299f3cca8b586a158d8c93231cec049612de /sys/contrib/openzfs/module
parent47cf1b37f42d2acb24fa3a1e6106374dddb3edbf (diff)
downloadsrc-64b5d74fffc8882d915e6e8de7e5fc893c606213.tar.gz
src-64b5d74fffc8882d915e6e8de7e5fc893c606213.zip
zfs: make zfs_vfs_held() definition consistent with declaration
Noticed while attempting to change boolean_t into an actual bool: in include/sys/zfs_ioctl_impl.h, zfs_vfs_held() is declared to return a boolean_t, but in module/os/freebsd/zfs/zfs_ioctl_os.c it is defined to return an int. Make the definition match the declaration. Obtained from: https://github.com/openzfs/zfs/commit/62cc9d4f6 Reviewed by: jhb MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D39753
Diffstat (limited to 'sys/contrib/openzfs/module')
-rw-r--r--sys/contrib/openzfs/module/os/freebsd/zfs/zfs_ioctl_os.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_ioctl_os.c b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_ioctl_os.c
index 8f44cced5d95..a835e013d630 100644
--- a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_ioctl_os.c
+++ b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_ioctl_os.c
@@ -59,7 +59,7 @@ zfs_vfs_ref(zfsvfs_t **zfvp)
return (error);
}
-int
+boolean_t
zfs_vfs_held(zfsvfs_t *zfsvfs)
{
return (zfsvfs->z_vfs != NULL);