[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180426142804.180152-4-zi.yan@sent.com>
Date: Thu, 26 Apr 2018 10:27:58 -0400
From: Zi Yan <zi.yan@...t.com>
To: linux-mm@...ck.org, linux-kernel@...r.kernel.org
Cc: Zi Yan <zi.yan@...rutgers.edu>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will.deacon@....com>,
Steve Capper <steve.capper@....com>,
Marc Zyngier <marc.zyngier@....com>,
Kristina Martsenko <kristina.martsenko@....com>,
Dan Williams <dan.j.williams@...el.com>,
linux-arm-kernel@...ts.infradead.org
Subject: [RFC PATCH 3/9] arm64: mm: migrate: add pmd swap entry to support thp migration.
From: Zi Yan <zi.yan@...rutgers.edu>
Signed-off-by: Zi Yan <zi.yan@...rutgers.edu>
Cc: Catalin Marinas <catalin.marinas@....com>
Cc: Will Deacon <will.deacon@....com>
Cc: Steve Capper <steve.capper@....com>
Cc: Marc Zyngier <marc.zyngier@....com>
Cc: Kristina Martsenko <kristina.martsenko@....com>
Cc: Dan Williams <dan.j.williams@...el.com>
Cc: linux-arm-kernel@...ts.infradead.org
Cc: linux-mm@...ck.org
---
arch/arm64/include/asm/pgtable.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h
index 7e2c27e63cd8..1cdc9d3db2c7 100644
--- a/arch/arm64/include/asm/pgtable.h
+++ b/arch/arm64/include/asm/pgtable.h
@@ -742,7 +742,9 @@ extern pgd_t tramp_pg_dir[PTRS_PER_PGD];
#define __swp_entry(type,offset) ((swp_entry_t) { ((type) << __SWP_TYPE_SHIFT) | ((offset) << __SWP_OFFSET_SHIFT) })
#define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
+#define __pmd_to_swp_entry(pmd) ((swp_entry_t) { pmd_val(pmd) })
#define __swp_entry_to_pte(swp) ((pte_t) { (swp).val })
+#define __swp_entry_to_pmd(swp) ((pmd_t) { (swp).val })
/*
* Ensure that there are not more swap files than can be encoded in the kernel
--
2.17.0
Powered by blists - more mailing lists