]> git.proxmox.com Git - mirror_zfs.git/commitdiff
zed: remove zed_conf::{min,max}_events and ZED_{MIN,MAX}_EVENTS
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Wed, 7 Apr 2021 13:35:10 +0000 (15:35 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sun, 11 Apr 2021 22:27:25 +0000 (15:27 -0700)
No users, fields marked "reserved for future use", macros defined to 0

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #11860

cmd/zed/zed.h
cmd/zed/zed_conf.c
cmd/zed/zed_conf.h

index 68a90039ace4fd5d105f4876cd57a76f0f174cc9..8f2767d74d6d9414090281ecfb1e387302d1fde1 100644 (file)
  */
 #define        ZED_ZEDLET_DIR          SYSCONFDIR "/zfs/zed.d"
 
-/*
- * Reserved for future use.
- */
-#define        ZED_MAX_EVENTS          0
-
-/*
- * Reserved for future use.
- */
-#define        ZED_MIN_EVENTS          0
-
 /*
  * String prefix for ZED variables passed via environment variables.
  */
index 0a6eea80db2dcf9075ce072e34e2422557a7b96c..5f895109d9ff8c08fad740e9d4d591e2672846ad 100644 (file)
@@ -43,8 +43,6 @@ zed_conf_create(void)
        if (!zcp)
                goto nomem;
 
-       zcp->min_events = ZED_MIN_EVENTS;
-       zcp->max_events = ZED_MAX_EVENTS;
        zcp->pid_fd = -1;
        zcp->zedlets = NULL;            /* created via zed_conf_scan_dir() */
        zcp->state_fd = -1;             /* opened via zed_conf_open_state() */
index 8ad02f91bfa638eb6bd3596f7373c769c502683c..c0691ddbc5c989f44c7d486bdc1b7d05c012dba7 100644 (file)
@@ -26,8 +26,6 @@ struct zed_conf {
        unsigned        do_verbose:1;           /* true if verbosity enabled */
        unsigned        do_zero:1;              /* true if zeroing state */
        unsigned        do_idle:1;              /* true if idle enabled */
-       int             min_events;             /* RESERVED FOR FUTURE USE */
-       int             max_events;             /* RESERVED FOR FUTURE USE */
        char            *pid_file;              /* abs path to pid file */
        int             pid_fd;                 /* fd to pid file for lock */
        char            *zedlet_dir;            /* abs path to zedlet dir */