> 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
On Wed, Dec 17, 2025 at 11:12:46AM +0800, cca5507 wrote:
> Although this does not affect correctness, I'd like to propose a
> patch to fix it.
That's an interesting point.
Indeed, the code bothers putting a fresh matching entry at the
beginning of a bucket, and the code does the opposite when mov
Hi,
Although this does not affect correctness, I'd like to propose a patch to fix
it.
--
Regards,
ChangAo Chen
v1-0001-Fix-unexpected-reversal-of-the-list-during-rehash.patch
Description: Binary data