Gleb Smirnoff 3d5e3df73f For not offpage zones the slab is placed at the end of page. Keg's uk_pgoff
is calculated to guarantee that struct uma_slab is placed at pointer size
alignment. Calculation of real struct uma_slab size is done in keg_ctor()
and yet again in keg_large_init(), to check if we need an extra page. This
calculation can actually be performed at compile time.

- Add SIZEOF_UMA_SLAB macro to calculate size of struct uma_slab placed at
  an end of a page with alignment requirement.
- Use SIZEOF_UMA_SLAB in keg_ctor() and in keg_large_init(). This is a not
  a functional change.
- Use SIZEOF_UMA_SLAB in UMA_SLAB_SPACE definition and in keg_small_init().
  This is a potential bugfix, but in reality I don't think there are any
  systems affected, since compiler aligns struct uma_slab anyway.
2018-11-28 19:17:27 +00:00
..
2018-11-27 00:36:35 +00:00
2018-11-28 13:53:43 +00:00
2018-11-28 17:37:17 +00:00
2018-11-12 22:18:11 +00:00
2018-11-27 19:50:58 +00:00
2018-11-28 13:53:43 +00:00
2018-11-27 20:01:05 +00:00
2018-11-22 20:49:41 +00:00
2018-11-21 00:21:58 +00:00