aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2021-03-16 13:04:58 +0000
committerBrian Behlendorf <[email protected]>2021-04-08 21:17:43 -0700
commita631283b745efc8354ad680b3a3c1f7bff38c4f8 (patch)
tree95cc40d973e507dfea1863722b570702f25667df /include
parent1dff54527806efb2e710a9c86370a43e33f8e03a (diff)
Move zfsdev_state_{init,destroy} to common code
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #11833
Diffstat (limited to 'include')
-rw-r--r--include/os/freebsd/zfs/sys/zfs_znode_impl.h2
-rw-r--r--include/sys/zfs_ioctl.h1
-rw-r--r--include/sys/zfs_ioctl_impl.h4
3 files changed, 4 insertions, 3 deletions
diff --git a/include/os/freebsd/zfs/sys/zfs_znode_impl.h b/include/os/freebsd/zfs/sys/zfs_znode_impl.h
index d7cdb360c..9a1d3ae26 100644
--- a/include/os/freebsd/zfs/sys/zfs_znode_impl.h
+++ b/include/os/freebsd/zfs/sys/zfs_znode_impl.h
@@ -77,8 +77,6 @@ typedef struct zfs_soft_state {
void *zss_data;
} zfs_soft_state_t;
-extern minor_t zfsdev_minor_alloc(void);
-
/*
* Range locking rules
* --------------------
diff --git a/include/sys/zfs_ioctl.h b/include/sys/zfs_ioctl.h
index 8834c5299..41c978a3f 100644
--- a/include/sys/zfs_ioctl.h
+++ b/include/sys/zfs_ioctl.h
@@ -567,7 +567,6 @@ typedef struct zfsdev_state {
extern void *zfsdev_get_state(minor_t minor, enum zfsdev_state_type which);
extern int zfsdev_getminor(int fd, minor_t *minorp);
-extern minor_t zfsdev_minor_alloc(void);
extern uint_t zfs_fsyncer_key;
extern uint_t zfs_allow_log_key;
diff --git a/include/sys/zfs_ioctl_impl.h b/include/sys/zfs_ioctl_impl.h
index 787475cf3..23262a35d 100644
--- a/include/sys/zfs_ioctl_impl.h
+++ b/include/sys/zfs_ioctl_impl.h
@@ -91,6 +91,10 @@ void zfs_vfs_rele(zfsvfs_t *);
long zfsdev_ioctl_common(uint_t, zfs_cmd_t *, int);
int zfsdev_attach(void);
void zfsdev_detach(void);
+void zfsdev_private_set_state(void *, zfsdev_state_t *);
+zfsdev_state_t *zfsdev_private_get_state(void *);
+int zfsdev_state_init(void *);
+void zfsdev_state_destroy(void *);
int zfs_kmod_init(void);
void zfs_kmod_fini(void);