> This deserves a comment, at least.
How about adding this comment:
We keep recently searched entries at the front of the list, so we should call dlist_push_tail() here.
--Regards,ChangAo Chen