[PATCH RFC 15/29] mm/migration: remove PageMovable()

Zi Yan ziy at nvidia.com
Sat Jun 21 06:19:12 AEST 2025


On 18 Jun 2025, at 13:39, David Hildenbrand wrote:

> As __ClearPageMovable() is gone that would have only made
> PageMovable()==false but still __PageMovable()==true, now
> PageMovable() == __PageMovable().
>
> So we can replace PageMovable() checks by __PageMovable(). In fact,
> __PageMovable() cannot change until a page is freed, so we can turn
> some PageMovable() into sanity checks for __PageMovable().
>
> Signed-off-by: David Hildenbrand <david at redhat.com>
> ---
>  include/linux/migrate.h |  2 --
>  mm/compaction.c         | 15 ---------------
>  mm/migrate.c            | 18 ++++++++++--------
>  3 files changed, 10 insertions(+), 25 deletions(-)
>
Reviewed-by: Zi Yan <ziy at nvidia.com>

--
Best Regards,
Yan, Zi


More information about the Linuxppc-dev mailing list