HomeFreeBSD

Cleanup: metaslab_alloc_dva() should not NULL check mg->mg_next

Description

Cleanup: metaslab_alloc_dva() should not NULL check mg->mg_next

This is a circularly linked list. mg->mg_next can never be NULL.

This caused 3 defect reports in Coverity.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14042

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Oct 17 2022, 6:02 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 18 2022, 10:39 PM
Parents
rGd953bcbf6b28: Cleanup: Delete unnecessary pointer check from vdev_to_nvlist_iter()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGef55679a75f0: Cleanup: metaslab_alloc_dva() should not NULL check mg->mg_next (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Oct 18 2022, 10:39 PM