Re: [PATCH v2 6/9] mm/swap: handle swapcache lookup in swapin_entry

From: Huang, Ying
Date: Mon Jan 08 2024 - 03:29:00 EST


Kairui Song <ryncsn@xxxxxxxxx> writes:

> From: Kairui Song <kasong@xxxxxxxxxxx>
>
> Since all callers of swapin_entry need to check the swap cache first, we
> can merge this common routine into swapin_entry, so it can be shared and
> optimized later.
>
> Also introduce a enum to better represent possible swap cache usage, and
> add some comments about it, make the usage of swap cache easier to
> understand.

I don't find any benefit to do this. The code line number isn't
reduced. The concept of swap cache isn't hided either.

--
Best Regards,
Huang, Ying