Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1939575ybg; Fri, 5 Jun 2020 01:15:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTIxtISXKC3wpNbXN1kjJ4UJghsgizqpmqChPq/ZrwRMqJQEKcQTB0jONhBT4hfz+Ysbof X-Received: by 2002:a50:8307:: with SMTP id 7mr8216729edh.283.1591344900620; Fri, 05 Jun 2020 01:15:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591344900; cv=none; d=google.com; s=arc-20160816; b=xxWjCsBeP6CkP9Qa6Svqm1QT9E7FFjQoROm/IPD8m7dw99D6Euq3p2QATFVaZwBitE +CeJob2p8QkK29BO96SVDlBjvanM2qmWPglsmwx4zyi5mToHvMHdQqr+oGUBJIhCbExB CJ62AZMbVKGg+GCVWFn2QpYJFx3v2JBNAAldCKkc/BmwKYx6knJ4zvYANQaoeWOfzG26 qHuAO/GkyYS9d0QTnDMgqJFdxbHcdPp4f82nLYHrsp5C2D8HZQ2M5EEaVhtL3Q4aOsIA 5vMWgEYnbY8QEqyljXzPI2/V+ukt1geGwXDHNs2DFWXAb4Fl++p2PupM3krVIm/n1bMN APPw== 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; bh=oyTPCiJzbQeHrPX7tFw17U5TBEp8dahoZy/MHfpBD98=; b=v7jPyA85R2hwB0PO3OHYvQXTfVgTMgzln/Z8Pd19OJeKYxEScHUQlmP8ZUm3QEyWhK HNA+CAX2QzUklaFJP5EzTxck1mTjKDBXMJQRk4FpGs+MGbTknnNgtpfo73VHJ9tSIZsB n9m2Se2fuVhgrbZWxDAFnflrhfB8sPvsUSGIuHzwvyp3WCYpMzZ9invKsccA5TuD+S01 hoFt/tzNu1gvH2UbwmKLRUKf7vL29LC0kfQC3KUcjGOFGfleTCvDqAG32+S7xF6goFpX 5318fO1hmOXaBKbL4NoSzw8R/eFlN4sRo22ZphU6SErXp3PmHd0PW0seJG0Y8ZCZpMZv D7Ew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d13si3022670ejw.753.2020.06.05.01.14.38; Fri, 05 Jun 2020 01:15:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726135AbgFEIMx (ORCPT + 99 others); Fri, 5 Jun 2020 04:12:53 -0400 Received: from mx2.suse.de ([195.135.220.15]:51470 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726072AbgFEIMx (ORCPT ); Fri, 5 Jun 2020 04:12:53 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 3CE49AD35; Fri, 5 Jun 2020 08:12:55 +0000 (UTC) Date: Fri, 5 Jun 2020 10:12:50 +0200 From: Joerg Roedel To: Linus Torvalds Cc: Guenter Roeck , Andrew Morton , Andy Lutomirski , Peter Zijlstra , Linux Kernel Mailing List Subject: Re: [PATCH] mm/vmalloc: track which page-table levels were modified Message-ID: <20200605081250.GR6857@suse.de> References: <20200603232311.GA205619@roeck-us.net> <20200604083512.GN6857@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 04, 2020 at 10:16:07AM -0700, Linus Torvalds wrote: > On Thu, Jun 4, 2020 at 1:35 AM Joerg Roedel wrote: > > > > I posted the fix for this already: > > > > https://lore.kernel.org/lkml/20200604074446.23944-1-joro@8bytes.org/ > > Ugh. > > I was going to apply this directly, but as I looked at the patch I > just found it fairly illegible. > > Is there some reason why the 5level-fixup.h versions use that > very-hard-to-follow macro, rather than the inline functions that the > main mm.h file uses? > > I'm _assuming_ it's because it gets included in some place where not > everything is defined yet, so making it a macro means that it works > (later on) when everything has come together.. Exactly, I had all of the p?d_alloc_track() functions as inlines first, but that broke compilation on some obscure architectures, so I followed the rule to make them macros when the p?d_alloc() was also a macro and defined them close together. Joerg