Message ID | 20230706085819.827761-7-aneesh.kumar@linux.ibm.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC251EB64D9 for <linux-mm@archiver.kernel.org>; Thu, 6 Jul 2023 08:59:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 420AA8D0002; Thu, 6 Jul 2023 04:59:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3CF818D0001; Thu, 6 Jul 2023 04:59:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2980A8D0002; Thu, 6 Jul 2023 04:59:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 1B4FF8D0001 for <linux-mm@kvack.org>; Thu, 6 Jul 2023 04:59:20 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id E6CB9C046B for <linux-mm@kvack.org>; Thu, 6 Jul 2023 08:59:19 +0000 (UTC) X-FDA: 80980588038.06.9B08114 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by imf23.hostedemail.com (Postfix) with ESMTP id 8CF98140018 for <linux-mm@kvack.org>; Thu, 6 Jul 2023 08:59:17 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=bi3KaxNO; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf23.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.158.5 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688633957; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=CCRKKwBNmbNEXrHZXrT40NjFgPyXV2Q+00nl9gdum18=; b=O2SofwaJKXfDouF0+0TdSspjTeGgEZHz9wid6n4n9o+hvPi9Vv4MtpP7t3saNhU8y+QqO/ UMPNWAJsigiIV/8HPLCNLoYH1ut9J0wxZ34jCNPymoOVbQxzYG6cKtxLlVN7TYKU998Bm+ ttRL4F41g5xk72A9UBIP70Unlu1yhm4= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=bi3KaxNO; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf23.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.158.5 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688633957; a=rsa-sha256; cv=none; b=oGyz5xpJN8r2HtIuSlMtIREh/MOGoWHlOKv42lMovT+6Im2Gks+z94cSkpx0YvRaZsaW/J 0GE0BSQkFb1cKSYF7aYZhEVpK3qupNkMQ56+vuT8OrIOyUJUr23w+Pp3dOr5kOO0CCCLBS b3/x7L0Ou6AP/MfeXXbZ4Ws7RwhFAt8= Received: from pps.filterd (m0353722.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3668qQSf013375; Thu, 6 Jul 2023 08:59:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=CCRKKwBNmbNEXrHZXrT40NjFgPyXV2Q+00nl9gdum18=; b=bi3KaxNOU8l0U91MtNjqdDxNN6h7eDdWvXF2fobthN8F+aY5WVW+nzctW5gjy+P80BEQ +JXYfXvjNYqFrPCpuDcGi0kCFPcooS+qH5WOuahw/FFoOBsPmEqvqZ12je+koCB0kirx lMv9RJMr9gQUM/RgkuODzqnDOkvGVHxDV29tJAwzvejE/Y7yhIONafQQITCIyESOTr9k Pxb559O58Ku+pFplOpmEfMmY/IeESQlp+OP7B6HxnospMfk4R2VbUpPJzOgZJvRWp5yd 4Qidy7mWCPkHp6fhegFDJ2vh7Zlw6YmAzCsW7XYOCryiL0SJHADBdIihHLMQe8Pvx9No jw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rntfrr485-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 08:59:06 +0000 Received: from m0353722.ppops.net (m0353722.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3668sQO0019849; Thu, 6 Jul 2023 08:59:05 GMT Received: from ppma04wdc.us.ibm.com (1a.90.2fa9.ip4.static.sl-reverse.com [169.47.144.26]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rntfrr47m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 08:59:05 +0000 Received: from pps.filterd (ppma04wdc.us.ibm.com [127.0.0.1]) by ppma04wdc.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 36680Yo8023003; Thu, 6 Jul 2023 08:59:04 GMT Received: from smtprelay05.wdc07v.mail.ibm.com ([9.208.129.117]) by ppma04wdc.us.ibm.com (PPS) with ESMTPS id 3rjbs5qy1g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 08:59:04 +0000 Received: from smtpav01.dal12v.mail.ibm.com (smtpav01.dal12v.mail.ibm.com [10.241.53.100]) by smtprelay05.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3668x3fI1114834 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 6 Jul 2023 08:59:03 GMT Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3A93A58064; Thu, 6 Jul 2023 08:59:03 +0000 (GMT) Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0997A58059; Thu, 6 Jul 2023 08:58:59 +0000 (GMT) Received: from skywalker.in.ibm.com (unknown [9.109.212.144]) by smtpav01.dal12v.mail.ibm.com (Postfix) with ESMTP; Thu, 6 Jul 2023 08:58:58 +0000 (GMT) From: "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com> To: linux-mm@kvack.org, akpm@linux-foundation.org, mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, npiggin@gmail.com, christophe.leroy@csgroup.eu Cc: Oscar Salvador <osalvador@suse.de>, Mike Kravetz <mike.kravetz@oracle.com>, Dan Williams <dan.j.williams@intel.com>, Joao Martins <joao.m.martins@oracle.com>, Catalin Marinas <catalin.marinas@arm.com>, Muchun Song <muchun.song@linux.dev>, Will Deacon <will@kernel.org>, "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com> Subject: [PATCH v3 06/13] mm/huge pud: Use transparent huge pud helpers only with CONFIG_TRANSPARENT_HUGEPAGE Date: Thu, 6 Jul 2023 14:28:12 +0530 Message-ID: <20230706085819.827761-7-aneesh.kumar@linux.ibm.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230706085819.827761-1-aneesh.kumar@linux.ibm.com> References: <20230706085819.827761-1-aneesh.kumar@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 0bXOmG1rEAB8OaUVCUViSM-43wJivQJV X-Proofpoint-GUID: TUKWLIiVIJVFytlnvJjJMP4oj8752eB3 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-06_05,2023-07-06_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 clxscore=1015 lowpriorityscore=0 mlxlogscore=999 spamscore=0 priorityscore=1501 malwarescore=0 suspectscore=0 impostorscore=0 adultscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307060075 X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 8CF98140018 X-Stat-Signature: wgezur1ogbwaapuwzk17itex75b1npzq X-HE-Tag: 1688633957-219754 X-HE-Meta: U2FsdGVkX1+V7hNKnnZr89ri7RvkDx74YP+2LDOtvlAcNTFrYFhCmNVEZ/JjWyNqGjyXZI45asGh9HB24p6VCAHcTpcic3iJNh/4MzszheZRyhru172L5mGddPNKZ4AmFmC203guJCmprjSovIJXyFMhFV89Zx4BYhtYBaCk/wMhUG0taVtQCEBcsDqtrr5nOX1TL2swIUiVl+bpH+BZvbKKJIEEb+cs2OC7C0dRlVfTDXxA2qkmuOehbJnCnBkTfZQ/T69ARWnaBcGLETYKU3CiSbXJBaTolbsv9Lr+iPgWg95MFiLCWRjW4LwIZb+mE4pDSuqQ4BA4+pjN4xP5aU6n1TDROett8Mknnw8VuTzOpULSb3dSCL+DM0U0VaZ7mbXTkRakkn5VVQ2NonMv8Rx8nkzMb/UEWRuRvMrYyrbOVpRs2mZVc1XeFxRH3spwH67GaBcIBDmakd0J0m8GKZ5C4KdsZjtZ600hLnACmEKBC4igM/c/Es+LD1/hlTQkBF2JeSru9NJTEVGsxjkGAuHq8f6EX2GkSmaf/bDmLrPHrIHuaEY9gev5xKT0h4ijlhJA68dHR0Qr97if0bIU5onttbf6Uq7JSRc6RdGjlDsmcBw6cAS5RxHVF5Usq9jtWo9cVXtARycJRogdr5P+kVMmu8FvTyoeWZOCyJi0tkr5cjkCbk49x58Ezx+/9NTm2t1cHrJkwj+739aoux7GM5B+N5oHWvi17YC43HrAh3XcXHExRrnBS/Kc+98DadWejm1ZSFosUalb8LnWgLt1r1iDSg0WOJFDEOI0iRqPcCv7k+jUGlsVkcZ4pM97+3Ccb7/dpjTRVgygN5wv41VXYwWfi/d14hBIKK9KCrKHQMWFXVf5mrc2S9GjcmlgNL6Pu5MZ1ZWUBMq9fj7J4I15lARliWkWoyQksAA2SqKirm3gbvtVXsRivzYXtVL2o6WXID393hVuGSpPhX1opxn zII6l9nO KsDTzFvpdRxi6lHEDN/LkP2fbSa8elzM9W1P9RJityB1lGdr7q2cSJxhHQR7WW8LwDsV/RxmFade67CD/fXYqxgKGR4Sdr0iNLyCXAZ9F6gvxz+FIC6ts0DLj9mKZOZL/cKMng11q5VaWK7OeKEUWQYWSYRxOwglbnBwBQoY8KGqINykgXulqNhizI/HMZV8NXWfsVjWKAZFj8/nwSiJjU9ijzrHUX226Az3GbNsLxHPMO7cBPLWRSxcWIrIL2aDE2CppnfSU0ydLDgJaOQ9UCE6+9vvl3o7NIQm+ X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
Add support for DAX vmemmap optimization for ppc64
|
expand
|
diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h index 91def34f7784..b5af3e014606 100644 --- a/include/linux/pgtable.h +++ b/include/linux/pgtable.h @@ -558,6 +558,7 @@ static inline void pmdp_set_wrprotect(struct mm_struct *mm, #endif #ifndef __HAVE_ARCH_PUDP_SET_WRPROTECT #ifdef CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD +#ifdef CONFIG_TRANSPARENT_HUGEPAGE static inline void pudp_set_wrprotect(struct mm_struct *mm, unsigned long address, pud_t *pudp) { @@ -571,6 +572,7 @@ static inline void pudp_set_wrprotect(struct mm_struct *mm, { BUILD_BUG(); } +#endif /* CONFIG_TRANSPARENT_HUGEPAGE */ #endif /* CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD */ #endif diff --git a/mm/mremap.c b/mm/mremap.c index 11e06e4ab33b..056478c106ee 100644 --- a/mm/mremap.c +++ b/mm/mremap.c @@ -349,7 +349,7 @@ static inline bool move_normal_pud(struct vm_area_struct *vma, } #endif -#ifdef CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD +#if defined(CONFIG_TRANSPARENT_HUGEPAGE) && defined(CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD) static bool move_huge_pud(struct vm_area_struct *vma, unsigned long old_addr, unsigned long new_addr, pud_t *old_pud, pud_t *new_pud) {
pudp_set_wrprotect and move_huge_pud helpers are only used when CONFIG_TRANSPARENT_HUGEPAGE is enabled. Similar to pmdp_set_wrprotect and move_huge_pmd_helpers use architecture override only if CONFIG_TRANSPARENT_HUGEPAGE is set Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> --- include/linux/pgtable.h | 2 ++ mm/mremap.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)