mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +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:
@@ -48,7 +48,6 @@
|
||||
typedef struct list_head list_node_t;
|
||||
|
||||
typedef struct list {
|
||||
size_t list_size;
|
||||
size_t list_offset;
|
||||
list_node_t list_head;
|
||||
} list_t;
|
||||
@@ -72,7 +71,8 @@ list_link_init(list_node_t *node)
|
||||
static inline void
|
||||
list_create(list_t *list, size_t size, size_t offset)
|
||||
{
|
||||
list->list_size = size;
|
||||
(void) size;
|
||||
|
||||
list->list_offset = offset;
|
||||
INIT_LIST_HEAD(&list->list_head);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user