Message ID | 20230718022934.90447-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 2AEF6C0015E for <linux-mm@archiver.kernel.org>; Tue, 18 Jul 2023 02:30:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B95D78D0003; Mon, 17 Jul 2023 22:30:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B46376B0075; Mon, 17 Jul 2023 22:30:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9E6E38D0003; Mon, 17 Jul 2023 22:30:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 8FA166B0074 for <linux-mm@kvack.org>; Mon, 17 Jul 2023 22:30:28 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 5EC36C0682 for <linux-mm@kvack.org>; Tue, 18 Jul 2023 02:30:28 +0000 (UTC) X-FDA: 81023153736.20.EFA4D01 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by imf02.hostedemail.com (Postfix) with ESMTP id 3463380006 for <linux-mm@kvack.org>; Tue, 18 Jul 2023 02:30:26 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=K7xwPU6y; spf=pass (imf02.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.158.5 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com; dmarc=pass (policy=none) header.from=ibm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689647426; 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=DhjHib9yNi+amjTZ6SyCSCSFT3YePg3pTl6ka+gmVO0=; b=a3bZV+sr9aER9eierbzWCDQtDtvSwyCBEYVSh2PMaT5sZHAm4CARob1FPWKL3q7WibqAOu jDhZV2SpOI1UdQLYOzLeNjfu79R7tapsUwqT+Y+H8Qo0Edu36NEFG2cc9QqQtMIzle2Q// YLhPAVKrkV2JqE76Wy0GoU47UDiJ3X0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689647426; a=rsa-sha256; cv=none; b=pRNN1W5CCASfB0pUiR4AlDJz6f2yGmFaA1LU3kFu0LYjxA7Wc4VYhK6Bpc5wY9JzC/nOpx Nt306JUZX6u1+M3wYMjr8mHUAvSMmdtf8dDVoIGMgCYm7li4NN6vvgvIk16Z0bcmcl8Euw pELHIqF3iIaHZV6RoET2HNd7uJroTPo= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=K7xwPU6y; spf=pass (imf02.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.158.5 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com; dmarc=pass (policy=none) header.from=ibm.com Received: from pps.filterd (m0353724.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36I2CLW0001558; Tue, 18 Jul 2023 02:30:15 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=DhjHib9yNi+amjTZ6SyCSCSFT3YePg3pTl6ka+gmVO0=; b=K7xwPU6yaPl2Uysp/keRtu42tly164eB0TrRfkbs0U7LwOxVnlNxKWGJ6yXOrWIh4ePS 60diAi5AUvAW0DdKHKJDvng5q0+VCpIgr8MN+kZxoSf0YsAQTUWgu3bO1CKj74ZpAtmJ DU4NqWEOiMzy9gX55E/DTPUxT3jaVWY8mix4ui9eReo0fR79N3OFeq0sNbEymsYlxaJf Q5EyxvKOPYhqXXF8kmc1vZcJpA3RyUPTlOXnhLbx3qUFwtDYQMEIjzT6J8gZ/MK2qwcD 3kj5Ee7jv7OTHSUXANYdmBbkHN9sRbN163CiEXCYGbBf4+k2D1j7ozvrGdjHl9YfUJ4I 7A== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rwgy4s2r6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Jul 2023 02:30:14 +0000 Received: from m0353724.ppops.net (m0353724.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 36I2UEsd019609; Tue, 18 Jul 2023 02:30:14 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 3rwgy4s2qt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Jul 2023 02:30:14 +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 36HMgHHK003340; Tue, 18 Jul 2023 02:30:13 GMT Received: from smtprelay01.wdc07v.mail.ibm.com ([172.16.1.68]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3rv65xbuh3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Jul 2023 02:30:13 +0000 Received: from smtpav01.dal12v.mail.ibm.com (smtpav01.dal12v.mail.ibm.com [10.241.53.100]) by smtprelay01.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 36I2UCBU35521152 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Jul 2023 02:30:13 GMT Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A483158063; Tue, 18 Jul 2023 02:30:12 +0000 (GMT) Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7357C58061; Tue, 18 Jul 2023 02:30:07 +0000 (GMT) Received: from skywalker.ibmuc.com (unknown [9.43.62.199]) by smtpav01.dal12v.mail.ibm.com (Postfix) with ESMTP; Tue, 18 Jul 2023 02:30:07 +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 v5 05/13] mm: Add pud_same similar to __HAVE_ARCH_P4D_SAME Date: Tue, 18 Jul 2023 07:59:25 +0530 Message-ID: <20230718022934.90447-6-aneesh.kumar@linux.ibm.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230718022934.90447-1-aneesh.kumar@linux.ibm.com> References: <20230718022934.90447-1-aneesh.kumar@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: RqJTgJ31xbyKtrC8K5RK6Pl6OTUDrFAA X-Proofpoint-GUID: a-M8Bk_9JvMTPNFO5Jo7lFO4ZV4V0LpC 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-17_15,2023-07-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxscore=0 phishscore=0 clxscore=1015 spamscore=0 mlxlogscore=999 adultscore=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307180017 X-Rspamd-Queue-Id: 3463380006 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: 1empd1eeqa4c3wmo6eh8o7kkzerihqk5 X-HE-Tag: 1689647426-874778 X-HE-Meta: U2FsdGVkX19FsVHygi9OQ+KfXw4peuDM/m84Wlc1/7PDlhxS9jP3mzK+a0oQvlKjsd++7zJ4ks4dtUFVtcnnGg/eRH0v0Gm1R7TYl1CXc24cHBUMdFRJHCcoKZuZzIWgbCJ6u74FqAAkEwcrUpGT2dyzE5OgPJ5MJuf8AV9/NU7o+tirDjoeURnbzrMFOixqWzDPkBtxEow2LNhTXujvFwR9ujiaJ447xANlcqX3GOjg2HVyNVxhqV4rfzQ0qO50g2uSRRTQgP8YjtEEQou+ebZXwyljRuPM8ZKhFznetgAABjjp/bZjSqxt0/UkG+hBbUcH0YstA+njQHoQQyl8LPQQnTlEheMSR9ESuKdjLmbLeuHrKDx7Uz8TUCfLu3ttmi724i1wvCjdlHlvbYKsQf9bp/9jGZQdHdbNFkPkQ1KrfhiHimE+IvTIsF/xRLFM7519ttFOU4TMve8A4J/R73puMwjP8ewR7DF2qUrSLmCYPBcONJfgNOt1v7mPJZM6W9set+gxQXlgq6QG5nVG3khwmK17in22F3+MdxYQX8mrhgkgGkOMUwX8LETRIdilPU9ynmQyALeT6YjTPY8T0QjgkLNDXAMccsxuiypYZswRhjyGt57lOW6zf/ew6RW+H5WcAmJMTN8JwHKOvfMCeb8ZRmf/Blo9iSM1A0SWzKpWumS2L37yEiWvvk8/UDn9P8vk08IKutNOYJN6E3nIM0XneR4sRxEYq4Vm1GQqgSjTmn3ujsg0ljUY/7IdmKs+8ZHg1Y7rcGd04uLo+Hzg10sXBVHRTNpAk15oYKxZuJOTLaET9q49u4EcIaF2nxCkxhm5snAc9WBC3SfNZ7T6QSCTIqQ9vbBVpGB2Z1k0VcpmM7hzRcEmTlCxFeFnmKCbJ6zhlW39iGNqwzNMijKoUE+yaS3aK+VU+7eT2Xf462XiZiF6WXE6BpSx1Og+o6VMjBMljj+7VBVON96dtN4 oIZYXK83 /eHzhYCUY7IrDKzot2AgXreWBFrPSREV9zXwmVIi61UgNGpz/KIH63nHufytNpOrss2ng7KV1vk09QUFkXxPpCxgPdC3/Y5ZeIhHY/JXIROOeNYa9tFVTKo9gvdejOiUfC3xiS3Z1zm/yFHy467vYe1w2iMay/fC+rmUAboQ4qLLWybSm5bcn1DuyaetuQtBBdBYe 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..ca67ecbd9a66 100644 --- a/include/linux/pgtable.h +++ b/include/linux/pgtable.h @@ -693,11 +693,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(+)