Received: by 10.192.165.148 with SMTP id m20csp2209860imm; Thu, 26 Apr 2018 07:31:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx48I4WZvIsEW9Q5r0H8fY/M93jpt1HLsfFQoWnWXny0uoSB/pfiYgJXdJyX+Ivt6SVnScuEK X-Received: by 2002:a17:902:529:: with SMTP id 38-v6mr34542225plf.64.1524753108807; Thu, 26 Apr 2018 07:31:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524753108; cv=none; d=google.com; s=arc-20160816; b=XO8eH9Cf2mqW2vZIr60XWZzbjdidHv8u9HqpUNJ2tR7O5DU5Wu94hMfR4rhn67rATg afUc7uNIRmqrsNHF0LAMvHjkEuUaAbBSFAppSkS+22Jq8yAZRIbG7rlNLpLMFS4oj9Kn z03RDDAljQTG80FWWvsKF1VwGO1KxEjS5i9M41wxO4DLCHpql+SI6q8FMsE6Kk8fUG8j SwLV5IWTFhHVU6xjPVsN9TD6hhxe8qWfi9U+PEY0bb1fdNTkBqArS9VqMoRT8jG+UYO8 IViCD8WYAuvbGBQfl/eK1HBUu3Yzmy24oYzACJH1YtZ6y13gwFcZ57qXnyq1BgWkkUZe Enyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-signature :arc-authentication-results; bh=XB2/KI/4YqFvG33L7srr/3b23qYpdzAVd++sR+K44Qs=; b=Po34oD7GQKInDMBMrKar3/Q48ywGh6niMIFXQkE4rg55GICRCOJA74mqsLUCgtEyfC pJJuT/qc9b5tz7bHFr1+VhCPz6DkWKlxQFroVFX02XvndRnrVINJWJcLXCysEZWm5zq6 jwIQmAfibdo7WsU9d6ECKW31MwdUYHOm95bMDJFkMic/rY9LGg9B9ffhBZcfVyZleZ/k YyZjYdthmtocmzLppESyBWB3w3IAa/gc3aGjvEuZyCHsTla/yQQsvX6o88d9H6/KYrFU q8Zucv7TBVoggfYPmqMuEcm/TDU4v15aM3a6NpBl0q1EpRbsKDbg0D2TN/xerccID713 Ol/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sent.com header.s=fm3 header.b=QEuhs8rR; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=kaT9B+zP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sent.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 91-v6si18567570plf.78.2018.04.26.07.31.35; Thu, 26 Apr 2018 07:31:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sent.com header.s=fm3 header.b=QEuhs8rR; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=kaT9B+zP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sent.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756619AbeDZO24 (ORCPT + 99 others); Thu, 26 Apr 2018 10:28:56 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:58855 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755861AbeDZO2v (ORCPT ); Thu, 26 Apr 2018 10:28:51 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id CCFD720FED; Thu, 26 Apr 2018 10:28:50 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 26 Apr 2018 10:28:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sent.com; h=cc :date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=XB2/KI/4YqFvG33L7 srr/3b23qYpdzAVd++sR+K44Qs=; b=QEuhs8rRKNRpiJlcXOHkj4K6H8WEcZRGU OW0iBKGaiVb36O6LwxsvJYWcOkGm61G/i6vcGeJ0zJFfQZq/TUkoPjUcorWf0D3W rn7lA/epAlR14BCE6D4IhO0tG3Hy2jYc8tpqrm85JtQ9BllltcdPKj8I7l+f3dWe NUnU0lIDXdv/vu36H3tEE65P/w5TdcrAy7YXX5CRtZrGHaP2NXB0nnJ+Dh+hKduq AfPjauHzZ8ZMVqBc3UZ6IkcPqXDrZ9QBGIUNj0vl4EPc1hmadDxjCOrUehQF0nn6 XZH91UqD3PRh0VQ37/eojgGxP0su6bLMQQRAJEC6t5DVcCiUnkolA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=XB2/KI/4YqFvG33L7srr/3b23qYpdzAVd++sR+K44Qs=; b=kaT9B+zP kJHdQI5Z7qXge8e5ihYeHRx6O0eh+h9dBUfme+qiY2sq3ToPzv+LmqvU1sZ7fcYf LE5kZlJ4IPfdM/oiIr3PGFWUOR4t2luzXe5XESfOtOPLuPJ4HWHbWb8NzNnKYvOt BwlNMfZTnpUx0UPeZbWGKZ0osAG8+UVeqUVjP79UNrfNbXtyvGJkEcpoSf9yyH13 9GaDeCOwOHbH2bG5p7EpO2tRByBf5r3oXtA6SbA7eSKWzyfi2dwYox4rQjHx4R0R jtT/kqunAcOGzVn68B7yXrjuvv9NA65wCL8vyFppzGkmelIi4RGOwYp/q92R3R5G eVpjwve34GgxZg== X-ME-Sender: Received: from tenansix.rutgers.edu (pool-165-230-225-59.nat.rutgers.edu [165.230.225.59]) by mail.messagingengine.com (Postfix) with ESMTPA id 85454E4924; Thu, 26 Apr 2018 10:28:50 -0400 (EDT) From: Zi Yan To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Zi Yan , Russell King , Christoffer Dall , Marc Zyngier , linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH 2/9] arm: mm: migrate: add pmd swap entry to support thp migration. Date: Thu, 26 Apr 2018 10:27:57 -0400 Message-Id: <20180426142804.180152-3-zi.yan@sent.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180426142804.180152-1-zi.yan@sent.com> References: <20180426142804.180152-1-zi.yan@sent.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zi Yan Signed-off-by: Zi Yan Cc: Russell King Cc: Christoffer Dall Cc: Marc Zyngier Cc: linux-arm-kernel@lists.infradead.org Cc: linux-mm@kvack.org --- arch/arm/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h index a757401129f9..d4b35514e96a 100644 --- a/arch/arm/include/asm/pgtable.h +++ b/arch/arm/include/asm/pgtable.h @@ -347,7 +347,9 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) #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 }) /* * It is an error for the kernel to have more swap files than we can -- 2.17.0