Files
mirror_zfs/lib
Colm f97142c748 A couple of small style cleanups
In `zpool_load_compat()`:

  * initialize `l_features[]` with a loop rather than a static
    initializer.

  * don't redefine system constants; use private names instead

Rationale here:

When an array is initialized using a static {foo}, only the specified
members are initialized to the provided values, the rest are
initialized to zero. While B_FALSE is of course zero, it feels
unsafe to rely on this being true forever, so I'm inclined to sacrifice
a few microseconds of runtime here and initialize using a loop.

When looking for the correct combination of system constants to use
(in open() and mmap()), I prefer to use private constants rather than
redefining system ones; due to the small chance that the system
ones might be referenced later in the file. So rather than defining
O_PATH and MAP_POPULATE, I use distinct constant names.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Signed-off-by: Colm Buckley <colm@tuatha.org>
Closes #12156
2021-06-03 09:13:42 -06:00
..
2021-01-26 16:12:26 -08:00
2021-01-26 16:12:26 -08:00
2021-01-26 16:12:26 -08:00
2021-01-26 16:12:26 -08:00
2021-05-27 14:27:29 -06:00
2021-01-26 16:12:26 -08:00
2021-01-26 16:12:26 -08:00
2021-04-12 09:32:43 -07:00
2021-06-03 09:13:42 -06:00
2021-04-11 15:45:59 -07:00
2021-01-26 16:12:26 -08:00
2021-01-26 16:12:26 -08:00