Message ID | 20230706085819.827761-6-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 BB7C8EB64D9 for <linux-mm@archiver.kernel.org>; Thu, 6 Jul 2023 08:59:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 61B358D0005; Thu, 6 Jul 2023 04:59:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5CB5B8D0001; Thu, 6 Jul 2023 04:59:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 46C498D0005; Thu, 6 Jul 2023 04:59:16 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 397108D0001 for <linux-mm@kvack.org>; Thu, 6 Jul 2023 04:59:16 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 0FBE2804D9 for <linux-mm@kvack.org>; Thu, 6 Jul 2023 08:59:16 +0000 (UTC) X-FDA: 80980587912.08.0755DCA Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by imf24.hostedemail.com (Postfix) with ESMTP id 606AD18001B for <linux-mm@kvack.org>; Thu, 6 Jul 2023 08:59:13 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=VTjjHpT+; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf24.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.156.1 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=1688633953; 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=v4rgjlG+j4BFMpAKCsUxYL28soNQi0PCLcozMdYF/S8=; b=w/WtskZOHv0yRvHmUJ2GNkoLnDOecVvdiwbboUWOU7DFUZ3fnSlHKkcgQK+jxu7vIYCXdb qpCb5FAk+sqf0pDKzau0m7i7Cm4KUmbfTRNAC2y+rf9xymT0bBQw087mg0M5WWVoxeqmKK jupyQ/PzC+JtnxESGrntEabZr4fLoWM= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=VTjjHpT+; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf24.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.156.1 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688633953; a=rsa-sha256; cv=none; b=fEU/xCS5tRy6EKQ+2nBc4N1WIrNnPr42QRMMYC6kRonPzDdgzWUEikm3kZNymYUmclPTog 9ihO9mm3gurtRODu45sej3zOZosds9PQvMKnyapdb+Qv/def8LH+lFEpfF+I9ecrZhjuNF P/1kuIJhigrQbJHQLoNu4S7VU9NhBy8= Received: from pps.filterd (m0353728.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3668lleW027855; Thu, 6 Jul 2023 08:59:02 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=v4rgjlG+j4BFMpAKCsUxYL28soNQi0PCLcozMdYF/S8=; b=VTjjHpT+1SSkhlvAyFeUE2QUnTuR0LPpSemF8P9e2xNNGx2D4Bo9/BV+WS4rpjKiB677 9Och+mx2uScqd8AhjPMPEHrdmGHRerD0aop/r/Ajrs8CuBHW7+YDWbcKk2qORizLBeLw zJ9V5HRySviZqe/1J4Az3UTLJA2tXr9QPALvAuTWyZ8FhZg4goSPxmHyCpkI3B6ymOmA xrHpK8UshgHn1uArZf5w/ZEZoOy6tHYhZX5qcAqnHLt7ovOoIzJQj/3s5i/fJMEBFP4Y IccJLGiq+L0lRRnJv2TeNPsKPVWFJcQIJBmdl1k5I4qdLVX9DV55TgMXyM4J+3gbNAh9 0A== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rntdpg7wm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 08:59:01 +0000 Received: from m0353728.ppops.net (m0353728.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3668lx1c028183; Thu, 6 Jul 2023 08:59:01 GMT Received: from ppma01wdc.us.ibm.com (fd.55.37a9.ip4.static.sl-reverse.com [169.55.85.253]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rntdpg7vv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 08:59:01 +0000 Received: from pps.filterd (ppma01wdc.us.ibm.com [127.0.0.1]) by ppma01wdc.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 36687OMW004433; Thu, 6 Jul 2023 08:58:59 GMT Received: from smtprelay02.wdc07v.mail.ibm.com ([9.208.129.120]) by ppma01wdc.us.ibm.com (PPS) with ESMTPS id 3rjbs5quxd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 08:58:59 +0000 Received: from smtpav01.dal12v.mail.ibm.com (smtpav01.dal12v.mail.ibm.com [10.241.53.100]) by smtprelay02.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3668wweT62587240 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 6 Jul 2023 08:58:58 GMT Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7B2CE58061; Thu, 6 Jul 2023 08:58:58 +0000 (GMT) Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E039058058; Thu, 6 Jul 2023 08:58:53 +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:53 +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 05/13] mm: Add __HAVE_ARCH_PUD_SAME similar to __HAVE_ARCH_P4D_SAME Date: Thu, 6 Jul 2023 14:28:11 +0530 Message-ID: <20230706085819.827761-6-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: k-Sst2htYGDWj5KXzMIJg6MIzT1S8pmY X-Proofpoint-GUID: rwBAueoCyLZfX1dRqPDOGiV00Lb5-bu3 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 priorityscore=1501 adultscore=0 lowpriorityscore=0 mlxlogscore=999 phishscore=0 impostorscore=0 suspectscore=0 bulkscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307060075 X-Rspamd-Queue-Id: 606AD18001B X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: zye194o4djgbpg7ybhi87pp63t8hab7s X-HE-Tag: 1688633953-611773 X-HE-Meta: U2FsdGVkX1/wyAYr1fC0Wpzf45I9oS70ksJaTuKHQmjEbminxz3inZl6ux8Ss1d/c9YawrX+DHHC90r0JNtw3yNRmacCsNqw7okBs03oQDrEvmTA3FQUxyoY47VawfKEpY5pAiK7z0E4qUo1XYzOGOMJhinDhh8EEV7YyNlCBbK8EJG1SYucECSfgq5hvAp86/LOa/W/UPhWNSaCitpcbZk6XqjPvvakjIH1B2BXAsYXldSXHYTA39lFVS4uMO+4zrBdUUcOVRit42HsdJzaEzl3JbekRf1TOA7XH6s7NMwAKhZODg/5njKvSiYVHs8lKvS2FLQZF+hf4XzcboUHYwQM4S918gkqqoDmyc4Oouzdri257gPuHQkzn2nyRGqvxjw62Z2ifujrQodgOWOqBuEBOxKb0koIQcAw/+w57RTKnIHLn/KxmVw1Ns941299lEF/wtJdEEMVfSizX4HiWJ89GRguuGD7Fiap2UDOh6n06WDa1vzM2+3FWhGD2wnFLHSS74i9FyYy35Ck4sic9+CjHg83FVoAaP3PmuJZiiQbJg1eHlPVzFtSHINb1vypHcRupbRnaQfdFFfq7Y/jbFSEuAbNaL8vgzsooocfoDR/NNW6x1qQEZa0Rb15XaZErCqQKxBq5GwxMkM45MWmh5nSqWUEZIwn8Hi+rkThWvklQq0/MVSxYihvtXUjBsDeppCXS/oWwGj+a3ypn9HsYQDxMJwI1UMyrQQu69ieDBWoYsFEeu2D/LVJ27nPQc1zju92/AgQZ5ekC4aqXvuSg1V9S1ZjmSFLBbMZnh5advUYvyVnFgM/qmuuAG4UJdHKi2yNvLIsh6lz0ZvzWUymYbmPFUuJeVPMTTRfKQl2GNFSdHjA47aBGT3Hie3MiGjt2Z7VHZ0Io65QHMilOLL0OSYOCmK8u/RZJP2GPiSq6X8aoGs5Yd9oBrgjR38s3orY1XXtLo0bsszyMgXyTlv R56pi6h1 /Z2Bu9r6IMjl6Bk/63Q2v/y9GSx1L9zBOGiiOmlhCSJt7A1GEwYTuYU8E7pQ94REAvpOCEAElB6nn1GI24wIqRLefIchua376cflllI7oCbygzZU29QalnFqn/x2gORp1HDDrOBRXb8LyRZKe2JLLiwmCOLmBURqhpt8gFRAjmQZL7H965aD+6V/3hODHG14yRpYw/Bi5yQNBKedK4RBaalti9KurZoW8QDBa2kagRXKOdwRDzcIBSK+MmmT92L7BUyGl63OUmTZ8GpGx+2ct1pjgUg== 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 6fd9b2831338..91def34f7784 100644 --- a/include/linux/pgtable.h +++ b/include/linux/pgtable.h @@ -693,7 +693,9 @@ static inline int pmd_same(pmd_t pmd_a, pmd_t pmd_b) { return pmd_val(pmd_a) == pmd_val(pmd_b); } +#endif +#ifndef __HAVE_ARCH_PUD_SAME static inline int pud_same(pud_t pud_a, pud_t pud_b) { return pud_val(pud_a) == pud_val(pud_b);
This helps architectures to override pmd_same and pud_same independently. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> --- include/linux/pgtable.h | 2 ++ 1 file changed, 2 insertions(+)