Message ID | 20230724190759.483013-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 1E0A1C41513 for <linux-mm@archiver.kernel.org>; Mon, 24 Jul 2023 19:10:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A6E8E6B0078; Mon, 24 Jul 2023 15:10:15 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A1F038E0001; Mon, 24 Jul 2023 15:10:15 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8BFBD6B007D; Mon, 24 Jul 2023 15:10:15 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 7CE0D6B0078 for <linux-mm@kvack.org>; Mon, 24 Jul 2023 15:10:15 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 3D8C8160B90 for <linux-mm@kvack.org>; Mon, 24 Jul 2023 19:10:15 +0000 (UTC) X-FDA: 81047445990.19.8BD0416 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by imf30.hostedemail.com (Postfix) with ESMTP id 70E4880022 for <linux-mm@kvack.org>; Mon, 24 Jul 2023 19:10:12 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=cAkkE5ER; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf30.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=1690225812; 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=PoFFwtWHq+ffbzbCzl2ZA0XdhdJwSM3TndhjbFI8QnQ=; b=YPpDCsNfMfs9KE/xEHcXrNbqIHlbchGSrHvy5OLjasJOIpViBqPIHDvDqI0SJt+4vfPmRu O9RZ2zy4/wbFYXtFYbpXV71Ka/BVC4NtaU5hSn5KhrovZgYxnoN2JeuExz91ZG+MzCvB/U za9mE1ff3Q7kHbp7kwUItUPaSyChbuk= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=cAkkE5ER; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf30.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=1690225812; a=rsa-sha256; cv=none; b=UthM1+25lgBI1OMGPHKJkh3md50bUgbABuwyfUH9QNW8j5EnetNeyW+AvTgIwH073Yw2X7 zzW6tctecSrSUaQIrkgk0Yg+txD+cixXcnAswS5SkbdxxEJUVuif4dxPEKTWIcsoLCIbXF sJ28i/OER1Rd+5meP8VAFLcHDYc6G2s= Received: from pps.filterd (m0353727.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36OIbJTu000495; Mon, 24 Jul 2023 19:10:00 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=PoFFwtWHq+ffbzbCzl2ZA0XdhdJwSM3TndhjbFI8QnQ=; b=cAkkE5ERFGUBHxestudUO2BuhBBK527JcL30ttWlgnijTlB0Xf/0wmFnr7xJXnbK2+nD mWrv5bBKHPciDvnOTCX6dzikDiWDDiymzedLsf9S8lMTc/ijgfoxat234L+ooQHLghw5 khdLsKsLVALTwQzkg9x3aqJKKG9SBTAmI5S7FSAmnHxv63d2ey+X10SxqHyAB8KogdO9 FumAaht8PN/0ax0VRS6BWVJbkUcHQBW+qJkY0VvbSvLyou2WtQuPCLORDZ6m1Cyht8IJ 4d3QpxmlU2GtQRVI2JLNzTyNArznS5Nh7M85A6BXSRlZt+C+Az68rosdGWnLi9mGmibj AQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3s1wxa1uhv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jul 2023 19:10:00 +0000 Received: from m0353727.ppops.net (m0353727.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 36OItfwp018664; Mon, 24 Jul 2023 19:09:59 GMT Received: from ppma22.wdc07v.mail.ibm.com (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3s1wxa1uh9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jul 2023 19:09:59 +0000 Received: from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1]) by ppma22.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 36OJ9RVY014365; Mon, 24 Jul 2023 19:09:58 GMT Received: from smtprelay04.dal12v.mail.ibm.com ([172.16.1.6]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3s0stxp1eq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jul 2023 19:09:58 +0000 Received: from smtpav01.wdc07v.mail.ibm.com (smtpav01.wdc07v.mail.ibm.com [10.39.53.228]) by smtprelay04.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 36OJ9vvq19268120 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Jul 2023 19:09:57 GMT Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 49EB658067; Mon, 24 Jul 2023 19:09:57 +0000 (GMT) Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9103758055; Mon, 24 Jul 2023 19:09:52 +0000 (GMT) Received: from skywalker.ibmuc.com (unknown [9.177.66.22]) by smtpav01.wdc07v.mail.ibm.com (Postfix) with ESMTP; Mon, 24 Jul 2023 19:09:52 +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 v6 05/13] mm: Add pud_same similar to __HAVE_ARCH_P4D_SAME Date: Tue, 25 Jul 2023 00:37:51 +0530 Message-ID: <20230724190759.483013-6-aneesh.kumar@linux.ibm.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230724190759.483013-1-aneesh.kumar@linux.ibm.com> References: <20230724190759.483013-1-aneesh.kumar@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: vCtvuxYQNZid0V10sHikjJ10jgDNJFgR X-Proofpoint-GUID: y1NIPwZaB4Pxl6lAIO3-bTdmXZChHrJD 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-24_14,2023-07-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 mlxscore=0 malwarescore=0 suspectscore=0 mlxlogscore=999 priorityscore=1501 impostorscore=0 lowpriorityscore=0 phishscore=0 bulkscore=0 adultscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307240168 X-Rspamd-Queue-Id: 70E4880022 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: hcqhiaia7563ygwhsufb67ut1gkta4q6 X-HE-Tag: 1690225812-199524 X-HE-Meta: U2FsdGVkX1/AKZCLdtrf1V5tWiFaBjwzE0tBRJOACTOujtIULeFptqaWQFTKHPPtNTnXX0sbr4JG5aGcBaYrQuaMRgIuX+OvmxJ+4d2Rl0lmGSX5wDB9rTcxH0R8xKvngcYYmAAxW8xkBxbT/iaTKkVbvutS5/RSBB1kFXN4mXkxs5fHayFmu+V+pw2YAxylR9mLXCtQy5BzGtznK6ru6ogWVLILUTie1GEbK6HblBX15C/QzwAAvaGgVuow+7ZtnJIfyrDvJvq0Wv/JnDCasWrOGDNf4i4+0mWMwLZD37B05PxXCDY2Dri/YmsWYnBGGWCzZJkJ/1EMiovy0r4Ay1s+UH9pjQh9+07BeGVq/mN+PXQFItMIrzVwVxzDpeFdnmWndqqSySHukUlClonvUrjYq+9saezSFtxQTanfMgp1MR4FEyx5i83YNtweN8F8YW9ksEeBBI3oUDest+CPBPJZoZKEOdys2p4M+sFKqs5Bk6+kyfNAVvwAquf+jcTGiDREAgKJSLHdmRr8SGc/tuFOsdMzb81N9NaZfl98s57yNwuXUstXlkp1daQ5sDBGfBXyiLpXTHGPmhGgE0zFtvUjXFjq0yCVbzrFycGzXWEgivMIjGQk1xZgJvutDobO2kjRhjY6kdMQ6VVb0SC5S3HTZ6bisTTDqSiS/uL0+bWPkFWrRRx39fLdDgYqR0uQrNri42/yGD3jo0Ac/BdFaJLORA9lNOaz3pbJZRvdqFQjAhhJWxF/e+REbyxm1ySljfll6crTvgD9EiAc01+lqeBIkIptrom5PS5hdLjxLnWhgCD4edMUO+7bDPCKtwFqB18RYHdmM19ryHH1hPqsLeCJ7/1+9EOBGf8jzBJhPbSeKtYg/PwkanrYgfPg44/ea9XL80LrwuAC1rifFo3+fDSRy+XxBHpuHkcOZBbawIkjsuCf9TinMm4VQIPf74dx54BcrmgIbsAVKDhiYb5 Ipru9oNM xjjXxLACyLS8/2FbcFpsNbAsyCRxMQIByBTGzf2QO3Gedma0hWELD8Wl5dDw9C1S0jmy2eHOvhtqH9F7V6/KQsM/QsNnvbZbQW0fvNylTFlGGueOsxs7MoU0X9ujEVCwUaJkLPrCLrxEDQO4WEEtwHdNkgQEMf94FNzd2yhGSLvdYh8ai2im6sWjlojXqyQwXOtSd 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 124427ece520..0af8bc4ce258 100644 --- a/include/linux/pgtable.h +++ b/include/linux/pgtable.h @@ -699,11 +699,14 @@ static inline int pmd_same(pmd_t pmd_a, pmd_t pmd_b) { return pmd_val(pmd_a) == pmd_val(pmd_b); } +#endif +#ifndef pud_same static inline int pud_same(pud_t pud_a, pud_t pud_b) { return pud_val(pud_a) == pud_val(pud_b); } +#define pud_same pud_same #endif #ifndef __HAVE_ARCH_P4D_SAME
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 | 3 +++ 1 file changed, 3 insertions(+)