diff options
author | Alexander Motin <[email protected]> | 2021-07-01 11:32:31 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-01 09:32:31 -0600 |
commit | b192a2c0a19133234972b491e9c06093b3d21358 (patch) | |
tree | 8df9296060d668a224032aad4926d359be3eabcf /include/sys/avl_impl.h | |
parent | 490c845efe3ca29eaa8aa6ea1e3f45eda72895fe (diff) |
Remove avl_size field from struct avl_tree
This field is used only by illumos mdb. On other platforms it only
increases the struct size from 32 to 40 bytes. For struct vdev_queue
including 13 instances of avl_tree_t size means active cache lines.
Keep the padding in user-space for now to not break the ABI.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Matthew Ahrens <[email protected]>
Signed-off-by: Alexander Motin <[email protected]>
Sponsored-By: iXsystems, Inc.
Closes #12290
Diffstat (limited to 'include/sys/avl_impl.h')
-rw-r--r-- | include/sys/avl_impl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/sys/avl_impl.h b/include/sys/avl_impl.h index f577ecd42..c464a62a1 100644 --- a/include/sys/avl_impl.h +++ b/include/sys/avl_impl.h @@ -147,7 +147,9 @@ struct avl_tree { int (*avl_compar)(const void *, const void *); size_t avl_offset; /* offsetof(type, avl_link_t field) */ ulong_t avl_numnodes; /* number of nodes in the tree */ - size_t avl_size; /* sizeof user type struct */ +#ifndef _KERNEL + size_t avl_pad; /* For backwards ABI compatibility. */ +#endif }; |