defrag: do not leak list implementation details
data-sort: use list_for_each_entry_safe when not under lock