HomeFreeBSD

Fix list handling to only use the API

Description

Fix list handling to only use the API

Remove all instances of list handling where the API is not used
and instead list data members are directly accessed. Doing this
sort of thing is bad for portability.

Additionally, ensure that list_link_init() is called on newly
created list nodes. This ensures the node is properly initialized
and does not rely on the assumption that zero'ing the list_node_t
via kmem_zalloc() is the same as proper initialization.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Aug 26 2010, 5:26 PM
Parents
rG59e6e7ca85e9: Fix kstat xuio
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG98f72a539c8c: Fix list handling to only use the API (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Aug 31 2010, 3:38 PM