From patchwork Thu Jun 22 20:57:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vishal Moola X-Patchwork-Id: 13289618 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 2C791EB64DC for ; Thu, 22 Jun 2023 20:58:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 91E7A8D0017; Thu, 22 Jun 2023 16:58:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8CDDE8D0001; Thu, 22 Jun 2023 16:58:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7209B8D0017; Thu, 22 Jun 2023 16:58:42 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 5F3AA8D0001 for ; Thu, 22 Jun 2023 16:58:42 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 36C2480180 for ; Thu, 22 Jun 2023 20:58:42 +0000 (UTC) X-FDA: 80931597684.06.9589B78 Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) by imf28.hostedemail.com (Postfix) with ESMTP id 6BE61C0018 for ; Thu, 22 Jun 2023 20:58:40 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=BLHldLJJ; spf=pass (imf28.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.222.175 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=1687467520; 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=Gq/4ZmKNXFKQVk1gkO+uwnqoX5OhH7CpF4mkXffOxUMET7q1bZxQwyBLgsNRCgmtqcBh+B EhLj0l/CrAA2knJqThg0Tt234MR+bspEjOkcfHMmf9TM57sm6lgw9B/GrtFyYOpByPDtBW 8gLuD91kI/Rk38ikR1xc3o7XFxypl68= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=BLHldLJJ; spf=pass (imf28.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.222.175 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1687467520; a=rsa-sha256; cv=none; b=Jx8oOJDspSD9qdsYL3lx8PlkDp7z61htAq5tS2suz++Fbdy7Gs64/p5XfxDloI26J64iqr 3AhAQ4Rk3eaGeUzSt0Smr/B+sdlllFJgtPcBFJ7L9B2BmZoxKlSyWwAP3leYYX9wxEsNUu 3oxhq45u/p8y327hpVfoELpUezsYj/A= Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-76300f4d7eeso451165285a.1 for ; Thu, 22 Jun 2023 13:58:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687467519; x=1690059519; 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=BLHldLJJqXLpr8GAfoHi79v0sph0w6vN/SuJg9rBXjFWP7vHx2aGmaKx+f9hTGSIek StBGUDmlBLLgONen/ouQl25e+2Oh56rCFDCpMgFUEQOkNNTjcxLzf4Qpme/gK6EBGlEV uCg8bxuRbLrdLb22VpaeGfLLJwjdPeKaXRkjf+OAYYySwTDsQSI3SAbqeNXGAGljALee fcpdhclAhH7b5XES0gNbsvIBabKOZu9Ga/PYBeMD7nv08Dx2WAP2VJoEQ2QraVWTFN45 Wt/gJDKXfFk6SzeY9rfcZjQwBqyFukcCgFCguNA0XxXJLEGG2f88pPraJdoTC9IQG6ul Gb7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687467519; x=1690059519; 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=GHCOPR7BzCkWwLOq4QiTnwq0a0fgOPbu0LjLWFRJtfoeW6pvUP8cd7MNegDlc6Fj3d IiUWeerdJQSI+Vzj+R1edNLQvvwR8W8veDXgAUd2g7jPYkbNn033AtFDahR+BgdL671g Vs+hIgdW26y+c28Dv6/gu5OgMIPENm+wdTQkdqsRcup6PuH9jI677GpDbUzJydqbM4/0 aTYu+bW5/tWCkPHkAesO9tZfa3LImBbsMnOkVo2nyRP832mGhB78Q/KBl2ZyjD9WddMt WVxNDV4d2uNAi8txrYnXg4uAuiBIvaDv7+4owrI7RbcOmHxms9uZy+9hAPIm+81d6gJB n/OQ== X-Gm-Message-State: AC+VfDyy0d6RvhASczpbqFV8iBWjOYwg21FL+l/ZfNyyFCuN1XhC9Fs2 L3kg5rUJHen8pAoFq0FzMOs= X-Google-Smtp-Source: ACHHUZ4KRcOpBQjT0rqr9douhR2m3+ahnRE2h5Kbx3P/xMpW7X3b4hHm7K0gMXBTqIp4OFz3bRB+Jw== X-Received: by 2002:a05:620a:2cc1:b0:763:d981:d0a0 with SMTP id tc1-20020a05620a2cc100b00763d981d0a0mr4781474qkn.38.1687467519407; Thu, 22 Jun 2023 13:58:39 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::36]) by smtp.googlemail.com with ESMTPSA id d18-20020a5b0c52000000b00bc501a1b062sm1684937ybr.42.2023.06.22.13.58.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 13:58:39 -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)" , Arnd Bergmann , Guo Ren , Mike Rapoport Subject: [PATCH v5 21/33] csky: Convert __pte_free_tlb() to use ptdescs Date: Thu, 22 Jun 2023 13:57:33 -0700 Message-Id: <20230622205745.79707-22-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230622205745.79707-1-vishal.moola@gmail.com> References: <20230622205745.79707-1-vishal.moola@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 6BE61C0018 X-Rspam-User: X-Stat-Signature: y4z1rr6f7uh7sqj1fjq3cazihu619bh6 X-Rspamd-Server: rspam01 X-HE-Tag: 1687467520-660634 X-HE-Meta: U2FsdGVkX1/+Ec0v8wi+RfyxYGB4uL2nrPBhQ/fXw5RO5zzno7I09pmM2BC9LSWxdWdZxWLuXdED03KELfM03mF4cNn8+FDvO/kH1Tpxaner7muqPfHz6CdLEQgJGdjT/Wtany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T+zhSEYe48hEM+pemmi4i/kzPDjE6Ctu3fPS6KqQ8CD8WjLC0KEosV+L2CBnMgkgD2k0PIJsqfImP/d6wLPTEvxqliL2iffj78qKt1wV5QMnRlT7+aYn2cNS6yBKsc7npRqatszaMcZYgK8tV0wpGn0O9OtSQwJJO9BUXGzZpsxVQDOM8PXqyXM75+iC9/fELTPh2DDkDvsEe3t6jQ9L6MhrS76eX7d5iR6AeMgwwjwOKzvfcOHwM82N6nRlqr3ocTyHo+8V4/isQ08EbEehi4sN0W4+p8DT5TlMQN2fYXQrWPI3v2NY6xgc36pFKTdDkh2o6XgO+k5gyhJ/9GrWb8rkOAsl53bT5m+parIIgxhGy2oU/VT6/kVPceRD6c1/hg2iXpV0W1an+DbHNhMOXgpUXslzFjZMMO1iHXoh+gybp4HoYA8= 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);