Avoid magic numbers.
Remove DISLINK_TRACK macro.
Remove misleading comment.
Remove more magic numbers.
Avoid redundant traversals of dislink hashes.
Remove dead code.
Reduce nesting.