Commit 453286ba authored by Zhaoyang Huang's avatar Zhaoyang Huang Committed by Carlos Llamas
Browse files

UPSTREAM: mm: migrate LRU_REFS_MASK bits in folio_migrate_flags

Bits of LRU_REFS_MASK are not inherited during migration which lead to new
folio start from tier0 when MGLRU enabled.  Try to bring as much bits of
folio->flags as possible since compaction and alloc_contig_range which
introduce migration do happen at times.

Link: https://lkml.kernel.org/r/20240926050647.5653-1-zhaoyang.huang@unisoc.com


Signed-off-by: default avatarZhaoyang Huang <zhaoyang.huang@unisoc.com>
Suggested-by: default avatarYu Zhao <yuzhao@google.com>
Acked-by: default avatarDavid Hildenbrand <david@redhat.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Yu Zhao <yuzhao@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
(cherry picked from commit 473c3712)
Bug: 393446550
Signed-off-by: default avatarKalesh Singh <kaleshsingh@google.com>
Change-Id: I691de5ad0401e93b601340584bf76f3d73ea5045
parent 7a351c24
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment