diff options
author | Ryan Moeller <[email protected]> | 2021-03-12 19:09:15 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-12 16:09:15 -0800 |
commit | f845b2dd1c6048db6c67cd6072a9a976b1dcf6e4 (patch) | |
tree | af31b040fb1577907b3ab76700d3f719c98c43e6 /include | |
parent | e3e82dcc515586d460bb739ceb549443df26a863 (diff) |
FreeBSD: Clean up zfsdev_close to match Linux
Resolve some oddities in zfsdev_close() which could result in a
panic and were not present in the equivalent function for Linux.
- Remove unused definition ZFS_MIN_MINOR
- FreeBSD: Simplify zfsdev state destruction
- Assert zs_minor is valid in zfsdev_close
- Make locking around zfsdev state match Linux
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #11720
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/zfs_ioctl.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/sys/zfs_ioctl.h b/include/sys/zfs_ioctl.h index afae576ea..8834c5299 100644 --- a/include/sys/zfs_ioctl.h +++ b/include/sys/zfs_ioctl.h @@ -525,7 +525,6 @@ typedef struct zfs_useracct { } zfs_useracct_t; #define ZFSDEV_MAX_MINOR (1 << 16) -#define ZFS_MIN_MINOR (ZFSDEV_MAX_MINOR + 1) #define ZPOOL_EXPORT_AFTER_SPLIT 0x1 |