]> www.infradead.org Git - users/jedix/linux-maple.git/commit
memory tiering: introduce folio_use_access_time() check
authorZi Yan <ziy@nvidia.com>
Wed, 24 Jul 2024 13:01:14 +0000 (09:01 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:52:26 +0000 (17:52 -0700)
commit562b41561eb900c4af8fe8b8c3ed5f80529ceae8
tree648f8413a295efce00e636702f687789821b2b96
parent362bcfed1c1edb24d07efa8289af0f902e0c7c69
memory tiering: introduce folio_use_access_time() check

If memory tiering mode is on and a folio is not in the top tier memory,
folio's cpupid field is repurposed to store page access time.  Instead of
an open coded check, use a function to encapsulate the check.

Link: https://lkml.kernel.org/r/20240724130115.793641-3-ziy@nvidia.com
Signed-off-by: Zi Yan <ziy@nvidia.com>
Reviewed-by: "Huang, Ying" <ying.huang@intel.com>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm.h
kernel/sched/fair.c
mm/huge_memory.c
mm/memory-tiers.c
mm/memory.c
mm/mprotect.c