From patchwork Mon Aug 7 23:05:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vishal Moola X-Patchwork-Id: 13345303 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 52932C04A94 for ; Mon, 7 Aug 2023 23:06:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DE47F940018; Mon, 7 Aug 2023 19:05:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D70DD940008; Mon, 7 Aug 2023 19:05:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BE854940018; Mon, 7 Aug 2023 19:05:59 -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 B1EC4940008 for ; Mon, 7 Aug 2023 19:05:59 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 97FCB120582 for ; Mon, 7 Aug 2023 23:05:59 +0000 (UTC) X-FDA: 81098843238.04.DD20DDC Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) by imf12.hostedemail.com (Postfix) with ESMTP id C2A3140003 for ; Mon, 7 Aug 2023 23:05:57 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=pCbA+Uxr; spf=pass (imf12.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.174 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=1691449557; 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=H/qh+9u1BcCIl2V5thva5G2rletbRXaxfcBgzJGGgXU=; b=kLpZq1Yf/PS7JbKJ7NVGMgARGXwtBVWk4q9DAQ+SLhIXjcWkFcCY8NsAoGshY0LcjgY4pj KdvBxVcJjzFJMfRavu/9G8mo9EgH3StD7iHj4loL4iZ/Z9MSNliEiBZwoJOMk1ZWY4XMA2 u8iTp8twelEOCIJx6koEs5fNDKIKSbw= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691449557; a=rsa-sha256; cv=none; b=ZQilJV7xX2GISHp9wusAPNv5qog/vX+CwoL/l866FmUjaOqkd2qYiMCfXPHpqei61qyuj0 0vdVMOo7QDbqwiC+08Udc/7uN1oQoMrZt4CFbHwT7Gmds3IbBFYP1G2EIrFBUYsptYRsY8 JIlELrhe5uFLXh9APG9ghsMjQ7eF7qw= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=pCbA+Uxr; spf=pass (imf12.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.174 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-yb1-f174.google.com with SMTP id 3f1490d57ef6-d2b8437d825so5087652276.3 for ; Mon, 07 Aug 2023 16:05:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691449557; x=1692054357; 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=H/qh+9u1BcCIl2V5thva5G2rletbRXaxfcBgzJGGgXU=; b=pCbA+UxrLZ96Iu/LappjpSZmLEozYOYmdO5RTxaM7BlCH20e3MEhp3Bn4lGiK7HrnF zI5vTymTyexPs2fEWKMf3YOixGPBtUiqT1+gX7fLWBa+Q9gs2M2cYtqmojJG+cqpxy8a yiuXYP2euWfRpeTnK/Ph7t69G3h70UOk68zLodvepBaU3Ub4ZFK2KFzJhB7TlCbjRGdX ie8hnx40ZzCuPRz3xDX8QGC9rAdvd3I0ubBMPCct9yJ64tgNkqrnZ4vxqqMZLVPIiaaP rYqmFrrQlxG0A3en5YH5Vcd7HyjhL8swCun/14090vxoeSz0eujRX7UW9eNuwqOQts53 n0Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691449557; x=1692054357; 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=H/qh+9u1BcCIl2V5thva5G2rletbRXaxfcBgzJGGgXU=; b=GbtfG8OFhPH/x2ZsBk7jin18NpPrnoWPkMtRrDsXeSH4ebeuIZ3SVsh6KPn5czPIcy 1zPquKlGMoqk8zQNeKp3wr+fuIlY9a6C8e6lPumlkuMSL0Y0WpwXvTP+M9wIjw+ZkonQ mRxXn9K2A6AktDpzesZNgZCFMp2A7eU2DlQB19u1e5SCue7gVPrAB00gS+gF3ub+E0J6 hiYf/FGhD46kID+W9t3rwwFzAOQflVnictb8yu2GJgZWVNhE4EQb10XRJxTYi0GW1CkN vAKqmDiyEsNTt8+ftdLHg6q4LRuxC4vaNxD5C49nxvh/sjytzqNDqlr1r2qL5Ly+Huq9 9E3g== X-Gm-Message-State: AOJu0Yw11/uYwxr2R7YmlNJ4Ec/943NND3pbjuHZMFmRVgKnXe+cVCfk J7Tu59H3wtj1/GfWjEdA2bE= X-Google-Smtp-Source: AGHT+IGb7qTBQz9qcaNa56xxCbdxPZmnKDiha96eaUPQlL4XzY5YUB1UJSqCKxKHPrzOS/VVDboJfg== X-Received: by 2002:a05:6902:4c4:b0:d0f:65db:dc0e with SMTP id v4-20020a05690204c400b00d0f65dbdc0emr10052463ybs.39.1691449556886; Mon, 07 Aug 2023 16:05:56 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::16]) by smtp.googlemail.com with ESMTPSA id d190-20020a25cdc7000000b00d3596aca5bcsm2545203ybf.34.2023.08.07.16.05.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 16:05:56 -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 mm-unstable v9 19/31] csky: Convert __pte_free_tlb() to use ptdescs Date: Mon, 7 Aug 2023 16:05:01 -0700 Message-Id: <20230807230513.102486-20-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230807230513.102486-1-vishal.moola@gmail.com> References: <20230807230513.102486-1-vishal.moola@gmail.com> MIME-Version: 1.0 X-Stat-Signature: 7nf6576eg96pnr13rswk9jipmunmf59j X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: C2A3140003 X-Rspam-User: X-HE-Tag: 1691449557-49095 X-HE-Meta: U2FsdGVkX1/XgSWrQhH/uP8FPXA9zhgwEnSZSNtVn4CPdghQOtKqeFRBi64UbPpu1b1v0j2dDADjEO8w5qEjBLgcncfyXATjJzBoAA4JrJm8Zj4tUmJB6c/H9TZDXMU1mayuJ+ZDQk56zI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G33L3MpdzLM+wUPq+vcyNIOPM6uY5HVJJHUJUiRVQji2zryXqVigwt+nkgk/iTgDCOK5Cyi7O1U8ZhNQjiYWU95Rs4kYx7aMz6UpjVvDxnPpS7xxPjgk6Ys40/yLcl6jePQOoq8bYeiSNRFIAM2H3HCc4QmiBhJxtzTyF+CcMvgQKP0lvdsy/OdqSXjDFBaVXUPutBpL+PT4pFfT3+DUik0wTEj/UFQRBakGdAw5LJ1PMwt27rv65N4ARq/4F3xS7s40g4zFPADOePb8R7H1Nc/lFeyGQsTK3c0j2VTTgfqjn7FVkzX3pQnswBoFwSsR9tCgkW0v3bC181208Z93BjBS1Ui0JxPkbIwjYItIoGJunAVc3UQdsHIO0tjyjIxqQEM/YNJENNm4p34kZl25Ik0fmifhpnt75WbCawvVdxqWVDVskFafAIfZE4= 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. Acked-by: Guo Ren Acked-by: Mike Rapoport (IBM) Signed-off-by: Vishal Moola (Oracle) --- 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);