HomeFreeBSD

zfs: make zfs_vfs_held() definition consistent with declaration

Description

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

(cherry picked from commit 64b5d74fffc8882d915e6e8de7e5fc893c606213)

Details

Provenance
dimAuthored on Apr 25 2023, 5:43 PM
Reviewer
jhb
Differential Revision
D39753: boolean_t: change to unsigned int to avoid signed bitfield warnings
Parents
rGa7e6ae2dc64b: Apply clang fix for assertion building emulators/rpcs3
Branches
Unknown
Tags
Unknown