Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Apr 2023 17:59:13 GMT
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 64b5d74fffc8 - main - zfs: make zfs_vfs_held() definition consistent with declaration
Message-ID:  <202304251759.33PHxD1r078846@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=64b5d74fffc8882d915e6e8de7e5fc893c606213

commit 64b5d74fffc8882d915e6e8de7e5fc893c606213
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-04-25 17:43:48 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-04-25 17:58:17 +0000

    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
---
 sys/contrib/openzfs/module/os/freebsd/zfs/zfs_ioctl_os.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304251759.33PHxD1r078846>