Fix list handling to only use the API
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 26 Aug 2010 17:26:44 +0000 (10:26 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 31 Aug 2010 15:38:45 +0000 (08:38 -0700)
commit98f72a539c8ca2ba1ca7fc8cac44018ade96065c
tree466e468d0e1b4abbad0e42cf7bbba222371a9962
parent59e6e7ca85e984433fc9c929dd0d474579bb88a5
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>
module/zfs/arc.c
module/zfs/dbuf.c
module/zfs/dsl_dataset.c
module/zfs/vdev.c