Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp537596yba; Fri, 3 May 2019 06:32:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqydzYQhO4Eol8ZmO8+3JZPsyIlE7gxqTO2WyPLEc4Po5CYWO6L1mVbdJxqR/pfXvmS6n+pJ X-Received: by 2002:a65:44c7:: with SMTP id g7mr5802593pgs.399.1556890330648; Fri, 03 May 2019 06:32:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556890330; cv=none; d=google.com; s=arc-20160816; b=QYMLDI0cPrXmFmcMWPbZ5qan36gktRmTnylCH0n+2lxmJ+RkftwRo6JghrAlRZ2qn2 sSPIQD5sMl2hEGy5IGfo1zpLhc1C3Fu2q/WpsimYsN6poYEpFF0U5laiIeSy46EvkgX/ USsT7TzCwjmZC1dZvm28TUuY55lH898XYxQykDGQs7/5KZ+rtZuFBlQDdxlj+LgVVmdS j34klFntMNn0TG9nG539su+kdfzIKNSptWT4QGbqLnryX1TzMW+ZdfaXu+IK7uH12h3h KWo/1A59i5oXSWJRgbpOzbAAdMK2Qk9dwZhI7E+fyhjJu5cL+SuqBRSdtEQK7MmqKo0V Clng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mkGg1i+EI0XU//yFAO+gJW+bQDnnQU83x/RNkUevVAw=; b=SulwQm6Jnj9/6TWWnMTv5w1ALTp0qcJGjEIGHTbjH6sAM4QwKZ/n4p1kmhA+fbVJaA gksuPKBM5S5x3lsW+hF1bs9m+veBkMe+8evPcV1tpTqBP7zsUZ132TeFVtwedoaJQrW1 jPmLxdc3wMns8i5Qa+o9Zo4HGx4DMVcBybi61CKc+peHKFCSWb/eVEAJu0BFR7B+kWZn XvWR64C4qu2/dG3aIyLc26sTNginKzNxnoozftaU3ORlPgFich2drgN41PtGGID4GD7+ M5UXxObUVjuxKmBeD25pQCABqZjpNLtBlyNQbIiETior5uEPSGAvcwIZnMiKFDvtH9TM ZCxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=T9s51+W+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9si2193266pfm.156.2019.05.03.06.31.53; Fri, 03 May 2019 06:32:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=T9s51+W+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727548AbfECN1p (ORCPT + 99 others); Fri, 3 May 2019 09:27:45 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:53688 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727231AbfECN1p (ORCPT ); Fri, 3 May 2019 09:27:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=mkGg1i+EI0XU//yFAO+gJW+bQDnnQU83x/RNkUevVAw=; b=T9s51+W+nABH6PVAvlfgP+ohw RCDyHolxbxOczp+Cg0V5Q3SXBf36YHMOis1fkWWpWSE0zZx6A65FVoDithh+5zNBA/L+/pInK3O58 PPdp9B6gb5Mj1aHlTOwgYd7feLRBi467iD6vPhfKK/abUZfZCHY1041K3TtWkrj1V0TUQ8aWIVhLI +/1YzsyjItpsKuqA6JsKXlZeS7WEi7325sCVTFrE7teQKa5lOodL28eu5Nt6D+miXBGjogCaXg8yc VVRuwIZrSBtfheGOujAaXemlnM9xeF/eEeaLHQrjpzSd4fVzD5UcaEhjqq1fDcHkpcop11b8UYehV hXvd6JaeQ==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1hMYDu-0006ZD-4h; Fri, 03 May 2019 13:27:34 +0000 Date: Fri, 3 May 2019 06:27:33 -0700 From: Matthew Wilcox To: Martin Schwidefsky Cc: Anshuman Khandual , akpm@linux-foundation.org, linux-mm@kvack.org, Ard Biesheuvel , Russell King , Catalin Marinas , Will Deacon , Thomas Gleixner , Ingo Molnar , Michal Hocko , Logan Gunthorpe , "Kirill A. Shutemov" , Dan Williams , jglisse@redhat.com, Mike Rapoport , x86@kernel.org, linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH] mm/pgtable: Drop pgtable_t variable from pte_fn_t functions Message-ID: <20190503132733.GA5201@bombadil.infradead.org> References: <1556803126-26596-1-git-send-email-anshuman.khandual@arm.com> <20190502134623.GA18948@bombadil.infradead.org> <20190502161457.1c9dbd94@mschwideX1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190502161457.1c9dbd94@mschwideX1> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 02, 2019 at 04:14:57PM +0200, Martin Schwidefsky wrote: > On Thu, 2 May 2019 06:46:23 -0700 > Matthew Wilcox wrote: > > > On Thu, May 02, 2019 at 06:48:46PM +0530, Anshuman Khandual wrote: > > > Drop the pgtable_t variable from all implementation for pte_fn_t as none of > > > them use it. apply_to_pte_range() should stop computing it as well. Should > > > help us save some cycles. > > > > You didn't add Martin Schwidefsky for some reason. He introduced > > it originally for s390 for sub-page page tables back in 2008 (commit > > 2f569afd9c). I think he should confirm that he no longer needs it. > > With its 2K pte tables s390 can not deal with a (struct page *) as a reference > to a page table. But if there are no user of the apply_to_page_range() API > left which actually make use of the token argument we can safely drop it. Interestingly, I don't think there ever was a user which used that argument. Looking at your 2f56 patch, you only converted one function (presumably there was only one caller of apply_to_page_range() at the time), and it didn't u se any of the arguments. Xen was the initial user, and the two other functions they added also didn't use that argument. Looking at a quick sample of users added since, none of them appear to have ever used that argument. So removing it seems best. Acked-by: Matthew Wilcox