mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
Remove list_size struct member from list implementation
Removed the list_size struct member as it was only used in a single assertion, as mentioned in PR #15478. Reviewed-by: Brian Atkinson <batkinson@lanl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: MigeljanImeri <imerimigel@gmail.com> Closes #15812
This commit is contained in:
@@ -64,7 +64,8 @@ list_create(list_t *list, size_t size, size_t offset)
|
||||
ASSERT3P(list, !=, NULL);
|
||||
ASSERT3U(size, >=, offset + sizeof (list_node_t));
|
||||
|
||||
list->list_size = size;
|
||||
(void) size;
|
||||
|
||||
list->list_offset = offset;
|
||||
list->list_head.list_next = list->list_head.list_prev =
|
||||
&list->list_head;
|
||||
@@ -194,7 +195,6 @@ list_move_tail(list_t *dst, list_t *src)
|
||||
list_node_t *dstnode = &dst->list_head;
|
||||
list_node_t *srcnode = &src->list_head;
|
||||
|
||||
ASSERT3U(dst->list_size, ==, src->list_size);
|
||||
ASSERT3U(dst->list_offset, ==, src->list_offset);
|
||||
|
||||
if (list_empty(src))
|
||||
|
||||
Reference in New Issue
Block a user