Revert "openzfs: use IN_BASE instead of IN_FREEBSD_BASE in spa.h"

Further testing (sadly, after committing) shows that I missed the fact
that IN_BASE is used as userland/kernel delimiter (and not just for
FreeBSD-specific code unlike the IN_FREEBSD_BASE).  Revert until I have
a full (and proper) fix.

This reverts commit d2a45e9e81.
This commit is contained in:
Yuri Pankov 2023-06-29 22:57:02 +02:00
parent d2a45e9e81
commit af2939f227

View file

@ -723,12 +723,12 @@ typedef enum spa_mode {
* Send TRIM commands in-line during normal pool operation while deleting.
* OFF: no
* ON: yes
* NB: IN_BASE is defined within the FreeBSD sources.
* NB: IN_FREEBSD_BASE is defined within the FreeBSD sources.
*/
typedef enum {
SPA_AUTOTRIM_OFF = 0, /* default */
SPA_AUTOTRIM_ON,
#ifdef IN_BASE
#ifdef IN_FREEBSD_BASE
SPA_AUTOTRIM_DEFAULT = SPA_AUTOTRIM_ON,
#else
SPA_AUTOTRIM_DEFAULT = SPA_AUTOTRIM_OFF,