Message ID | 20230627031431.29653-28-vishal.moola@gmail.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 4F078C001B3 for <linux-mm@archiver.kernel.org>; Tue, 27 Jun 2023 03:16:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 023198E0012; Mon, 26 Jun 2023 23:16:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EEE128E0002; Mon, 26 Jun 2023 23:16:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CF1E68E0012; Mon, 26 Jun 2023 23:16:07 -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 B9E528E0002 for <linux-mm@kvack.org>; Mon, 26 Jun 2023 23:16:07 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 9E09AB00CD for <linux-mm@kvack.org>; Tue, 27 Jun 2023 03:16:07 +0000 (UTC) X-FDA: 80947063974.16.155E5BD Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) by imf14.hostedemail.com (Postfix) with ESMTP id D1915100004 for <linux-mm@kvack.org>; Tue, 27 Jun 2023 03:16:05 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=e60Y6sev; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf14.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.128.181 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1687835765; 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=0AnRv7d38hHUVaoAGins0CaWMMRgzo0GwUb20Y9YoSw=; b=gc8mEM2ep7b3q1op7HWOhMlaGACyBECx7+b7UlMoI7Tqr/gES6zMu+8FJiOREWH43NnP1N w5I9DKNm+X8xgjeKCBrS7T9ndJsvIqPgUWQROceXHIUE2hP3Yiij64nxQ89T59nhDVSlds vDcuK/VHlCC/1zKGJBARi9Qg3PZyo9g= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=e60Y6sev; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf14.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.128.181 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1687835765; a=rsa-sha256; cv=none; b=WSG8Xyrpurd6Mr4WF2Ujb9ymQaLArzku56uwPWJcBd+7Pv8Y8/rpjJOw7GQvWReuzBODx/ Y6rg9jvBTYppsu03G1UzttHCOBVmp42dykv4nzFVfuhKUw+lW+1ulUP6Q3guHtL4ADs+Px Ja5ookaI9DjtDTq/tF4zDm5KHv0tbRI= Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-573491c4deeso42155287b3.0 for <linux-mm@kvack.org>; Mon, 26 Jun 2023 20:16:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687835765; x=1690427765; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0AnRv7d38hHUVaoAGins0CaWMMRgzo0GwUb20Y9YoSw=; b=e60Y6sevaT4oQ/L5KuHLcNtraCcaqymJSw0Pta6sshcpf6ZZ6QManSmR0ZQpDOB1TG Zv6Fux3N6RAGTYaqlaV6L/vXV7y5TNrp+A8hP8/1TroaBlBjnjU2829v3J+cnc+AhOb5 JN+Np+61YaCNuusYO6cIWgMGGdhyo7H5wD/egNG2vy+zzD2dD0OPETzsjKXbKfq9Y/2e UqWfUGJ07+JZFMPC47CCL6nCuIIVod63+MvhTRgj6G4ml0xqLiHcn4xnMK5EG5kSpCpR IaKEXBQ7G4bgWt8P3QrMWU+dPATv19IcGEhHsTfe2EI7sEKEiwRzexwBCQnzrxDWjBM/ K5Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687835765; x=1690427765; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0AnRv7d38hHUVaoAGins0CaWMMRgzo0GwUb20Y9YoSw=; b=lvJKMWJrXLxOf5xBMlrI8mZcwDEH1cGh+5Zucj+cQfkSV6q42gSQiqnRlyPP1wBSmQ XCeQ8JbuPXHmftgH6RsJUw+rX32NRsl2JZxllo9JhCWvFfKwZ1T6Uc4Lrge65t6YtDdM zlKNNhriKieBBCf5NyjY/C7TEZBAAQs7OcPno6E341fEA9REhclgalRbEUvxqZ4N2Vkc aRme7Aklsn55qj/awdMKnMXGG/TejASnKqM1Pe7qZc7on1gk+pSLElW7ARZlbIpKcdn9 dnVuJ+V85nNLVmBrIjcZLI6yjUK7w2n8aRcEIm7JOXSutrZZY3KHPjl7nxbH2pSFhdyU qG/Q== X-Gm-Message-State: AC+VfDxk0Xr+dykyhtnZwOo4CkmZWUQ+78gflzlirNzUCJOPAE8E8yVG iUS3brIGwTwrNWlR7pcg4SM= X-Google-Smtp-Source: ACHHUZ5DGQdkUnjmZtvUypsIHEbjelQEN0sIFmuzviWoifvHBxszYaVoeD06anXcP6T6X+bEflb+Ug== X-Received: by 2002:a0d:fb86:0:b0:573:5071:2a12 with SMTP id l128-20020a0dfb86000000b0057350712a12mr24368068ywf.18.1687835764817; Mon, 26 Jun 2023 20:16:04 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::16]) by smtp.googlemail.com with ESMTPSA id s4-20020a0dd004000000b0057399b3bd26sm1614798ywd.33.2023.06.26.20.16.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 20:16:04 -0700 (PDT) From: "Vishal Moola (Oracle)" <vishal.moola@gmail.com> To: Andrew Morton <akpm@linux-foundation.org>, Matthew Wilcox <willy@infradead.org> Cc: linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, xen-devel@lists.xenproject.org, kvm@vger.kernel.org, Hugh Dickins <hughd@google.com>, "Vishal Moola (Oracle)" <vishal.moola@gmail.com>, Mike Rapoport <rppt@kernel.org> Subject: [PATCH v6 27/33] openrisc: Convert __pte_free_tlb() to use ptdescs Date: Mon, 26 Jun 2023 20:14:25 -0700 Message-Id: <20230627031431.29653-28-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230627031431.29653-1-vishal.moola@gmail.com> References: <20230627031431.29653-1-vishal.moola@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: D1915100004 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: hcbtqbg4zsf3thuo7zyit6m6d3t67pxk X-HE-Tag: 1687835765-43630 X-HE-Meta: U2FsdGVkX18xPHBB0Sm7TXwxrGD0HG2JIuRYrbdPz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L4xqd0nN5jxFsIyMJ86g+bbgpsb21QQXa52n+cLz/YdUwPxryIGjJpODIrXW6dIjaQe1ylAioKmXO1k/kS36oW7Mjcks+J45UqqxzPITIcYjG/UXYd99glsadsryn5A9wcY8wIqqKiNMWfs9EcHEMsls4k2MGnji8NaHHPvneOXY0I/I72Ex9n2HN+MsKQ/UOQ1ChXf8v2995S8lpcJnoy9vMf6hbCM56fmP8xpOnBeM9Yysfb012hMaRRpvA3DwJa0XlZVOiJrzFKI+2nQ9HMRV8vq+V4YPl9V54EOCgc6F6NZh8UW6hFJme3pPldd1L/AMGEjaGP/rzuwnpOdQS/hwzSo7825Nc4pIk/OCdqehzyqmQJePuxCGQeKP7ZDP6d9s4a7tZQJmJ2MVNZsTcH+Kez7hrw5SVZMd59buTQc4/uY3WK/9mdgSXmGzGPlI9gvZTcfuQ5MzS8TWMKez1Sx1JIg7HpU/veFGlyjcvhmRA0Qk+Eq8OFJuRf7AqY9oZjZqBbo= 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 |
Split ptdesc from struct page
|
expand
|
diff --git a/arch/openrisc/include/asm/pgalloc.h b/arch/openrisc/include/asm/pgalloc.h index b7b2b8d16fad..c6a73772a546 100644 --- a/arch/openrisc/include/asm/pgalloc.h +++ b/arch/openrisc/include/asm/pgalloc.h @@ -66,10 +66,10 @@ extern inline pgd_t *pgd_alloc(struct mm_struct *mm) extern pte_t *pte_alloc_one_kernel(struct mm_struct *mm); -#define __pte_free_tlb(tlb, pte, addr) \ -do { \ - pgtable_pte_page_dtor(pte); \ - tlb_remove_page((tlb), (pte)); \ +#define __pte_free_tlb(tlb, pte, addr) \ +do { \ + pagetable_pte_dtor(page_ptdesc(pte)); \ + tlb_remove_page_ptdesc((tlb), (page_ptdesc(pte))); \ } while (0) #endif