Skip to content

Commit 62cc9d4

Browse files
FreeBSD: make zfs_vfs_held() definition consistent with declaration
Noticed while attempting to change FreeBSD's 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. Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Brian Atkinson <[email protected]> Signed-off-by: Dimitry Andric <[email protected]> Closes #14776
1 parent 8eae2d2 commit 62cc9d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/os/freebsd/zfs/zfs_ioctl_os.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ zfs_vfs_ref(zfsvfs_t **zfvp)
5959
return (error);
6060
}
6161

62-
int
62+
boolean_t
6363
zfs_vfs_held(zfsvfs_t *zfsvfs)
6464
{
6565
return (zfsvfs->z_vfs != NULL);

0 commit comments

Comments
 (0)