From patchwork Tue Jun 27 03:14:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vishal Moola X-Patchwork-Id: 13293738 Return-Path: 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 36132C0729B for ; Tue, 27 Jun 2023 03:16:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 774B78E000E; Mon, 26 Jun 2023 23:15:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6D5608E0002; Mon, 26 Jun 2023 23:15:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 52A1D8E000E; Mon, 26 Jun 2023 23:15:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 385928E0002 for ; Mon, 26 Jun 2023 23:15:55 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 0FA9C1A082E for ; Tue, 27 Jun 2023 03:15:55 +0000 (UTC) X-FDA: 80947063470.26.26042AC Received: from mail-yw1-f177.google.com (mail-yw1-f177.google.com [209.85.128.177]) by imf28.hostedemail.com (Postfix) with ESMTP id 4A010C0010 for ; Tue, 27 Jun 2023 03:15:53 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Z2y492L3; spf=pass (imf28.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.128.177 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1687835753; 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=/CuYJ7liBLmFxtlpmCAIL/qtog0vkZLk1dVk72P32nA=; b=avo9tbj3NU0r/jHX8AqMcXhov1RLcAQGYrB1/Wj8PGgNHXVJzT3evKu2z31vfW/82PTUx3 DXqzL6l/biElcGPp2JFUVm1EUWGRELOzoWsQSEHzhU8sv/uWlGLj0/yqwDTSMSa3ZMoqM1 AGObp7V1Oqa0yaJwwY/lCNUQScFOyyk= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1687835753; a=rsa-sha256; cv=none; b=WoP9S7w6Fi5AuioWI4c4hVrmE9xJBJTcUS6GCkDZzgnshqK/tupSU5ONVvNVkcbGpT/eIc mjqfSzjmzaUFJjpFnnT06Jshh9dYIOv081G6ufoZQ24KDxl6EoQfTyD2dtU+LSED3COhFk kANr/ct94FySakoOwFx7E22b4f6hN10= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Z2y492L3; spf=pass (imf28.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.128.177 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-5704fce0f23so42036337b3.3 for ; Mon, 26 Jun 2023 20:15:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687835752; x=1690427752; 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=/CuYJ7liBLmFxtlpmCAIL/qtog0vkZLk1dVk72P32nA=; b=Z2y492L3/D8WlJ5Hq0dqKp0BKJYUW7Eb9G7qdf3vIGRQ+O8SF6z7cY8de1pnrMmDqQ +a96x8kX3opEhwfyHnlNFTWX5OwZauzWBj6C4ouPJiZfrfA0EmnR4gOkOWCXT0Tt5rk7 XHfLS6CI7/qHcQlfDrYckrQudKqfd53TugdHSOAC54JEXTOgwU9ogsxc/TSIilUUybaL /EAuzpcVE6dEZDr0iMV3l0ZL5CrHH5SQ2tSWsVIXTRE6S7JRWuiJGvbxR8kbv1x+D3dj SKo4oZP9xKp5iaeAAmMvP/qF+1bKjojF2HvsjQLLw57QGCxHLxvjF/rVFYkYGLWd7pTO F1LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687835752; x=1690427752; 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=/CuYJ7liBLmFxtlpmCAIL/qtog0vkZLk1dVk72P32nA=; b=km6kTV1nV9vQ55bAj3sGZd8+6LPe/8kyvKwyFrdPbD2EvR9lRwGVgoORRYxOlrjb+e IMEBqpwlGmmzyDSXz1CLZ1zoSdTmPoS9RP7z7Prj7/IZvKa9yf6ymwzHIjwU9Fpc45Ij U7DYkSlb4XqAtuPfvQ/mSxEBpIKWoUWwX+Xf2n/6uQr3ILITZngCx5YXGWu/NAWW0hlA e8O7g4xuFkbawWXUL3EUJqHB2mWepS6jiCciZ8SdKkYSiD9fCHL+UTi/eWfIMuPynCSW jTSHC0ydXjvqFYq2clQY4dsTFaavI4gotjgZnpKpf3tyseRWEBOx/XacXTesYBG+UYK+ fvHg== X-Gm-Message-State: AC+VfDzlqLRAvkeo+ss8H40ByJNvAsESs3oChPbveEy/jgqC9oz1CApd RZcDCI7/fDiqVqsIsp9u6dw= X-Google-Smtp-Source: ACHHUZ5CQK8kRHJUPJM2uDCPFRj7p03JLp7keUZBkce6O+8d/iMl0gg4/oyJxvTRdTEHePf390CKKQ== X-Received: by 2002:a81:4689:0:b0:573:9751:ad15 with SMTP id t131-20020a814689000000b005739751ad15mr18645821ywa.17.1687835752283; Mon, 26 Jun 2023 20:15:52 -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.15.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 20:15:52 -0700 (PDT) From: "Vishal Moola (Oracle)" To: Andrew Morton , Matthew Wilcox 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 , "Vishal Moola (Oracle)" , Guo Ren , Mike Rapoport Subject: [PATCH v6 21/33] csky: Convert __pte_free_tlb() to use ptdescs Date: Mon, 26 Jun 2023 20:14:19 -0700 Message-Id: <20230627031431.29653-22-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 X-Stat-Signature: ygyfhxoje1axckq139agnsgsaaoobzxq X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 4A010C0010 X-Rspam-User: X-HE-Tag: 1687835753-471574 X-HE-Meta: U2FsdGVkX19bpkqHiYv0OEEMO5EwgzzpYeAMWh4LGx66gYosqSHod1bLL54fPkdhocUbHCQ/Udrkus3zyBoNn5bV1lOEmYNQJbBNy87h5WmIpK3DjbJmwHQ/kf4G8F7RuY0bdEs6XdCUVU/tLtM8KbDORrcywyThC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XrCrtdeMIDZcXd8Mo+x2FUcKzJUzAdXGy4af1zbty18Ejy1XKm2SZrBIeeDK9X8ne99LlrRC8MPf0/7Q7sr7tTeTxxTcXEfPc4gzrpUY63HOh1DiztTr0h8GigPGY/guPuSE02FJwwa0vRoJGimxk7b8jEzzS7UdpgJRcLoLOWMvbidrcIEd4ppz2UtfSM5Rx3beXsGbl6LcTYsY3IvcVnsoWtI3lShRpIqX2EYvRKLbiVPlBjEXaq5W/P0r5qBcjHSK41PY4+K4WFNRD4eQQEv48GvF5cjM+WPb3SEdUsE5tZWaXOQgpxmGajKJOlf1MN/hCxdwpcO4EwYV1bdJzynTF2fdul/krSB7NyUHjP12JWVNX5jHLLnimDzCO4voJbivxzHF8bA4q41fBvVjVFUCpo= 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: Part of the conversions to replace pgtable constructor/destructors with ptdesc equivalents. Signed-off-by: Vishal Moola (Oracle) Acked-by: Guo Ren Acked-by: Mike Rapoport (IBM) --- arch/csky/include/asm/pgalloc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/csky/include/asm/pgalloc.h b/arch/csky/include/asm/pgalloc.h index 7d57e5da0914..9c84c9012e53 100644 --- a/arch/csky/include/asm/pgalloc.h +++ b/arch/csky/include/asm/pgalloc.h @@ -63,8 +63,8 @@ static inline pgd_t *pgd_alloc(struct mm_struct *mm) #define __pte_free_tlb(tlb, pte, address) \ do { \ - pgtable_pte_page_dtor(pte); \ - tlb_remove_page(tlb, pte); \ + pagetable_pte_dtor(page_ptdesc(pte)); \ + tlb_remove_page_ptdesc(tlb, page_ptdesc(pte)); \ } while (0) extern void pagetable_init(void);