Message ID | 20230710204339.3554919-33-willy@infradead.org (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 826BCEB64D9 for <linux-mm@archiver.kernel.org>; Mon, 10 Jul 2023 20:44:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 693528E0022; Mon, 10 Jul 2023 16:44:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 61D8A8E001B; Mon, 10 Jul 2023 16:44:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 447768E0022; Mon, 10 Jul 2023 16:44:07 -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 2CFEE8E001B for <linux-mm@kvack.org>; Mon, 10 Jul 2023 16:44:07 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 0395E80246 for <linux-mm@kvack.org>; Mon, 10 Jul 2023 20:44:06 +0000 (UTC) X-FDA: 80996879334.13.0A310E7 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf14.hostedemail.com (Postfix) with ESMTP id 055B110000F for <linux-mm@kvack.org>; Mon, 10 Jul 2023 20:44:04 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=h5hg1vuQ; dmarc=none; spf=none (imf14.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689021845; a=rsa-sha256; cv=none; b=EAGifej1a2/p7sMrQsgKMsKQbH/rs9Ed2tuBy4xruRqAlSMMMMEY6QfPZfcJcZTtqQBrIJ B93ncbw0bDwb2dxWsEdY6VhU8UTKluY2+bh9FqGhaf83pHVd/7Ja1QtidQ/Mwu81SsPr/b MMtXvCiSDHf3bhLGT2RZ4tt/OcKi4do= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=h5hg1vuQ; dmarc=none; spf=none (imf14.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689021845; 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=zInuUFQyhX5p7DpW3QqqQDh+iQp8HWHqrOQDZ/8fecU=; b=Jfjs3BzCJdCtoIvLCP8B/GnOYv+rTXZQ91YA2jrhDUXX9qAwSwIIJFpL0RvxGm8P3qNc3Y NOw8JGNHd8LKgz1h0AFDy7ey5fvj3nLAFJpZmV9OlVkAnXmcgzrEpF2jow8fiEsvmTqoPv UzAwbfRcJPnj7fqZL9pSBPq4ppZ3IW0= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=zInuUFQyhX5p7DpW3QqqQDh+iQp8HWHqrOQDZ/8fecU=; b=h5hg1vuQKj8IikMBDz/QMQ5zbM BU94LS/OWLcKkW6MxRnbHPLCfyRZ2Lr6xBmEK9Rx6BXDSf1Sra6nL03pUpr/aTtubBUTbTjg4XQH+ VdLL8HvPmHmq79BaL5uIRw16OPQJX1cm4deBVvW+FjCaqQha73lKU2GtIOfjnBeGaQnYkCRUB+4/G aYjSnWAwOzf+4ATQRUlE040bdRBIC74jAE4rASNqAsBSG2GrOBj/+eN1MgBa+07KdCQCYEQA7VSOI 8V/56S2yFOPY+Hc8geU/XDl1km87/OOnNr1GGaCAOUC1zRM0wAZJVqzCjQWNAdN+VV2gt9Shqf+aI vZ94wgIA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qIxjU-00Euqu-P3; Mon, 10 Jul 2023 20:43:44 +0000 From: "Matthew Wilcox (Oracle)" <willy@infradead.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Anshuman Khandual <anshuman.khandual@arm.com> Subject: [PATCH v5 32/38] mm: Tidy up set_ptes definition Date: Mon, 10 Jul 2023 21:43:33 +0100 Message-Id: <20230710204339.3554919-33-willy@infradead.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230710204339.3554919-1-willy@infradead.org> References: <20230710204339.3554919-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 055B110000F X-Stat-Signature: 1c55hubo8onikebozb8u6hobzxpxs4tf X-HE-Tag: 1689021844-284960 X-HE-Meta: U2FsdGVkX1/32cb5pnYiTDTkB+Suh5UvEXBXdQJRBI2kvrOqK0Jv7M4nRXMfw678CUC8XZ3tzzs95yeGSt7FaVu6q/XelDSmQCJ7yeSYBDCkHMQPN//iXV3cpCWkiPo6rX4CFi/HevnL59/88lOd21aSePf4HpspvY1LhPk7V4gfT+VMkOUZAFWA3d9OAY53H68wc+r19OB/BIdA32UM5wx2tTtBPZWc8xz0FhllLn2cmFE5eEvttphHStIpuQ1QDFTfqbTUiHVpVfNKiMi0WbmLDK2PEX21rpCiJPG+PE9IUKSya98w1z2eq+qTPs2TJotaTQqqJatOUAO39IGR+8OfM+Mj5W5zGzqODC6FYOS33t/pLUNc5D4dwQZIjOZ2mPK9dfs1YBCb8XJcrYlVWpOZnEyQ1uF5vRZRgpFRfm35wx6J66qcov2sbpiecRsZEEy/HW6SBbHuQ3JuVGNqJH8uH04s7Itcfa5jovO5KhfxfLhBH8HHjwoxZJxO7hK3jdb/ksIbR3pS5EEelP2rS+exo918qxFPqhjbIDSznJeg04kF0qrMOsq6cxrR3WjuBT0TbOPRirf9xvWlmwRLV+zCjd2nUTdeCvWro+yfWuNWNQRJaj8ybty8R1ubECl60X3/wgc6cO7OWo48sGakajR4Z/s6pd4jRCFMg1MSC2t+F7Y3LmxbHGG6mBseosZAxZIbRZLrZzLWVC8NZaXY3BuPg2ZugYwBac5dzCokEU+MR0A3LNDSymgYl4AaZ9i67TeO5EyXCpl9z+B5sNhlRyC7GZQk8HokLg75jwleKpkxDnZC3PI/DzWBIeSDxEzXdJQlmDuXFuYKVL0aBSGmhcfkHsP+RS84+cwDwuBfaqaRVr/bJyv96mf/uOkfoNkLmbwyf3m+3NNjI2DW7btA8Esl3JbscDTnbTlP3kfkrA56XLu+9LkIHLGTJMTmajM0gBCj4FXSlwb046zMNyP dVcALKlH t4mDry5FY47rbbwCA8QrqlptK+BCdSn7Z3kJQDsuXRoeAdWyvI0nT7qaEvntajvq2TGWKoBn0LuVmm0W1zG6NmCipspEkBuc+kl25968+bK2lKz1aR2AJgyFh/6Dtwjm+6IbV+TN3e/iz2O3FqVdHoQEX4GFf9xmssCBYPUwNg25zxRa5qs9oP+1u0qlT2vWfvXSVy2+mV5uh4j5+mSqzNAAqsXM5CuuSfID9rsOQcJKnV2hO+flqRS8rmOxkGzRHa4lG/aNOpkD7RF29cP0sas4vRQtXXIfOtEud 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 |
New page table range API
|
expand
|
diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h index 22f48f9997d5..e2a0bd5941be 100644 --- a/include/linux/pgtable.h +++ b/include/linux/pgtable.h @@ -181,7 +181,6 @@ static inline int pmd_young(pmd_t pmd) #endif #ifndef set_ptes -#ifdef PFN_PTE_SHIFT /** * set_ptes - Map consecutive pages to a contiguous range of addresses. * @mm: Address space to map the pages into. @@ -209,13 +208,8 @@ static inline void set_ptes(struct mm_struct *mm, unsigned long addr, pte = __pte(pte_val(pte) + (1UL << PFN_PTE_SHIFT)); } } -#ifndef set_pte_at -#define set_pte_at(mm, addr, ptep, pte) set_ptes(mm, addr, ptep, pte, 1) -#endif #endif -#else #define set_pte_at(mm, addr, ptep, pte) set_ptes(mm, addr, ptep, pte, 1) -#endif #ifndef __HAVE_ARCH_PTEP_SET_ACCESS_FLAGS extern int ptep_set_access_flags(struct vm_area_struct *vma,