Files
mirror_zfs/include/sys
Alexander Motin 96b9cf42e0 ARC: Remove b_bufcnt/b_ebufcnt from ARC headers
In most cases we do not care about exact number of buffers linked
to the header, we just need to know if it is zero, non-zero or one.
That can easily be checked just looking on b_buf pointer or in some
cases derefencing it.

b_ebufcnt is read only once, and in that case we already traverse
the list as part of arc_buf_remove(), so second traverse should not
be expensive.

This reduces L1 ARC header size by 8 bytes and full crypto header by
16 bytes, down to 176 and 232 bytes on FreeBSD respectively.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by:	Alexander Motin <mav@FreeBSD.org>
Sponsored by:	iXsystems, Inc.
Closes #15350
2023-10-06 08:56:17 -07:00
..
2022-05-10 10:18:51 -07:00
2022-05-25 09:18:49 -07:00
2021-06-07 09:02:47 -07:00
2023-06-15 10:49:03 -07:00
2023-01-10 13:39:22 -08:00
2023-05-11 16:06:36 -07:00
2023-03-10 11:59:53 -08:00
2023-03-14 15:25:50 -07:00
2023-05-09 09:03:10 -07:00
2023-07-21 11:51:47 -07:00
2017-10-11 16:54:48 -04:00
2023-08-07 13:53:59 -07:00
2023-09-01 18:00:30 -07:00
2021-06-10 10:42:31 -06:00
2019-06-19 09:48:12 -07:00
2022-07-11 14:16:13 -07:00
2023-09-01 18:00:30 -07:00
2023-09-01 18:00:30 -07:00
2023-07-28 13:30:33 -07:00
2022-09-06 09:43:21 -07:00
2022-10-20 11:57:15 -07:00
2018-02-08 15:28:18 -08:00
2022-10-29 13:05:11 -07:00
2023-05-25 13:51:53 -07:00
2022-06-29 14:08:54 -07:00
2020-07-03 11:05:50 -07:00
2023-07-28 13:30:33 -07:00
2023-01-05 09:31:55 -08:00