aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2021-01-07 10:41:27 -0800
committerGitHub <[email protected]>2021-01-07 10:41:27 -0800
commitf11b09dec3d33ba11bc3bf7644bdde558d08ad76 (patch)
treeaeb13c6ae397a538619c9a7b9f5bb775528b7f33
parent06346cc5b50bef7327f7c901b92cbadab7fd7265 (diff)
FreeBSD: minor_t needs to be signed so that -1 is recognized as such
zfsdev_close sets zs_minor to -1 to avoid duplicate calls to destroy. This doesn't mix well with the current u_int used. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #11437
-rw-r--r--include/os/freebsd/spl/sys/types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/os/freebsd/spl/sys/types.h b/include/os/freebsd/spl/sys/types.h
index 3f8953628..ecb91fd1b 100644
--- a/include/os/freebsd/spl/sys/types.h
+++ b/include/os/freebsd/spl/sys/types.h
@@ -64,7 +64,7 @@ typedef u_int uint_t;
typedef u_char uchar_t;
typedef u_short ushort_t;
typedef u_long ulong_t;
-typedef u_int minor_t;
+typedef int minor_t;
/* END CSTYLED */
#ifndef _OFF64_T_DECLARED
#define _OFF64_T_DECLARED