diff options
author | Matthew Macy <[email protected]> | 2020-08-20 10:55:02 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-20 10:55:02 -0700 |
commit | 1c2725a157d1af79d73bbe980ff8db01086fd1e8 (patch) | |
tree | f78109c4880b58b0e85e8fb3ab5ec49a82f5b331 /include/sys/arc_impl.h | |
parent | 10b3c7f5e424f54b3ba82dbf1600d866e64ec0a0 (diff) |
FreeBSD: 11.x arc_stats compatibility
Removing other_size from arc_stats breaks top in 11.x jails
running on HEAD.
Reviewed-by: Ryan Moeller <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matt Macy <[email protected]>
Closes #10745
Diffstat (limited to 'include/sys/arc_impl.h')
-rw-r--r-- | include/sys/arc_impl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sys/arc_impl.h b/include/sys/arc_impl.h index 9051fd2bf..c5061695d 100644 --- a/include/sys/arc_impl.h +++ b/include/sys/arc_impl.h @@ -619,6 +619,13 @@ typedef struct arc_stats { * Not updated directly; only synced in arc_kstat_update. */ kstat_named_t arcstat_bonus_size; +#if defined(COMPAT_FREEBSD11) + /* + * Sum of the previous three counters, provided for compatibility. + */ + kstat_named_t arcstat_other_size; +#endif + /* * Total number of bytes consumed by ARC buffers residing in the * arc_anon state. This includes *all* buffers in the arc_anon |