Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3131123lqp; Mon, 25 Mar 2024 23:23:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWadUGd3434B7iic6t82VXrt1UXcENGBemFazj9OS6Qq+QxHY1AtwpRVIqCHM4lPvqgV+JwVvAzzq8HfXDYKs3ohcuLFIZuAYN/8B1zzg== X-Google-Smtp-Source: AGHT+IE+fqaLMQCJwUwjc5o1OiAO8mo4S0VmD0/6pdbUtgQG+a6oF5b+XEha/g7YY0KkkUGoBv+H X-Received: by 2002:a05:6214:246a:b0:696:a201:43fa with SMTP id im10-20020a056214246a00b00696a20143famr166370qvb.50.1711434231726; Mon, 25 Mar 2024 23:23:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711434231; cv=pass; d=google.com; s=arc-20160816; b=huSsnC4tMEOOipjkdVq+ym2qbQu/KWrqfz4dMeJZCXjoZ089EWET7R2pKkdsvuPXFv ji++RsSrOpSJs8vepFM2b82t/5jrI74cttCYY2bMzC78LewBlIl7pHshPjWHbEEOGhQh TxgdHQL2CpaCq9DrtuQekFgarcmi1p0iTI4OPp7T5OSrbDMkJT9TMU9iE7ej2+ipEi2p +C7kJGwj1eqi6WsaNf1RdlOfVJQSTlKUVa+3mtJ/Wtkdz8e3SN5b+ab9d03u/4Og2GQ+ g0RdvZQkYt7yok0FXwSzjuLZeznDCCl+AaK7P2bj7IO6VE5uBquqpRK4bL1Vi7RtpggQ iIcg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=hY2WNNA6khj/wLxlBTVDg0e/YVgDEc7zpROxMWd3xhs=; fh=22TgllSB7Ady0GDzAYVSu8hKZJJUXTq4tzLT1dnFWck=; b=VokIFld0GJ8ZC6PQgixnmBbWrQRewWEjUIdnMw0cjzPyoEbt3ThawhD+CyBkLnblpO RSDvZelAYcAinkIicVuXKyqpxQJ1GynmMcnAxAb/2gJVJEycAZVpDqnQLo5gtAXZLotR 4sOb463MIhwjLL5VvDc1njSwbzIj/oY34f9MPc5sr9d4vumklzjuCkLWEIlWtUmPArda m9EMi+KLBLJr9ctou7cYs/TMFzPe/oIe/dFBk40biMKjXA3vHAwaEKGqrzdYvUQAMXfi IXathprOGwgHWErRqK6zLxCmJ5zuYdA7vgpFtBa4rNwdbOV7xrgkVy28eR9MsK3CETPe uMiw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=iOJWERdO; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-118405-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118405-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jl10-20020ad45e8a000000b0068cbf78a4aasi9362275qvb.310.2024.03.25.23.23.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 23:23:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118405-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=iOJWERdO; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-118405-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118405-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 70A2A1C2DA75 for ; Tue, 26 Mar 2024 06:23:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1353C130A65; Tue, 26 Mar 2024 06:23:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="iOJWERdO" Received: from mail-yb1-f181.google.com (mail-yb1-f181.google.com [209.85.219.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9ADED12DDAE for ; Tue, 26 Mar 2024 06:23:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711434220; cv=none; b=JkGNOip4f+Zk4001zsamsthYEzJp/U8QCxuHvLbuQR3XkbcuAKCSqPVc0fZ2DX6TJ7N96M8F5w/hL5XblhWPbYuJrI25u18lwDfZVPKkrTH83RyIs2NXwUwn41xQL6I4aKfFqe8uToWCvMDCwJt6u654q+BqdldqxwWRLpHTV/c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711434220; c=relaxed/simple; bh=1vPnDmB9pDj0OJfEqjDZCv6xNP3XvTJ8rn8qLgfyVhA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=feUBgJtbA/h0aJAVI6sqaeJ1aeatMPVdnayGStDF8nKoAuJqhImIFO0UUWW9vtBPvJnoWDrCmBT8HfbrN9Il24H0F1Yo6Mpn5edZq/ADB45v6+Wz7O37CI373bSXK4TrAmo72Z0aUjsnUBjisoBQVTkjGwruX9VR+0DA1oNcRrw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=iOJWERdO; arc=none smtp.client-ip=209.85.219.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-yb1-f181.google.com with SMTP id 3f1490d57ef6-dcc71031680so4522984276.2 for ; Mon, 25 Mar 2024 23:23:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1711434216; x=1712039016; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=hY2WNNA6khj/wLxlBTVDg0e/YVgDEc7zpROxMWd3xhs=; b=iOJWERdOqSxevG4YebMTI4ggPr0uZw6klcfS+Upol/qe1IIkw26Tb85sS6L2lFZq6R 7u/T+OfxkI/9mr46BJmcRRCSq9aaKDHrKJaoU88D5TNDd4mDEfXTCZsME+nAX4TWiq4h hCTapPU7Z2uhyTQ1m+UAXhLVDvU7OsFrwbmLvjHrBSkjzdhYjachF1tCNRvGEn+lnMM3 vCkRYpsnyjGvXQFNTDsI4PQ0K4wOXY4myt8Ce93SeO6aRbTfpY0rHbZ0tqasHTHjWMM/ uW09WK173s9e61MNV6m+RTpNkEyIV11d6kgmAdmwD+4Co8lPDjDN0zh364Zyh4U9A2JD EaSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711434216; x=1712039016; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hY2WNNA6khj/wLxlBTVDg0e/YVgDEc7zpROxMWd3xhs=; b=Tk2oPew+hn7eKfaY1PCwVerKZgJrO3z4G4kDI66ZL3UdfMOaEjnHcFY3HvPN4GWWIf w6U298z95LJOito977z/0zeSnpe5nYYV2S0+PqCXhkTmICg1+zRx4jPwWgvd4TjwymCI zGUVdm7XQ8pco/FpMWU32CEzvM8twARo5yPYiU9frCTxIKEZPAJIJmCUWtiuE8yhTI7V 0ayDC1X0MPHsrPDBhgGCAs4N9MvIs2DPnm9C9pjbC9xOdKqsTMLDvKE9vxgwmY3llxgx C0H/0nymqfcQUoeJIo+I3+a9gLfCBCHTl+PPmhbhHBl7FIiaEEVIZ7oCGiBp6xXgN5wR JK3Q== X-Forwarded-Encrypted: i=1; AJvYcCV2tQ5nxxcbNoNnB3NR/nla9QMCZgkfEBEtDdbF2rbi9EC8OnX+8ErNLpaU5N2tr6om+/+jj265scd5Nc9RKPM1j1bUmhvkFwgzoBIY X-Gm-Message-State: AOJu0Yzxk9SL6r1VYMMH/mWiP7fU+9iqxGcoEy8mLxkIFilFE2Rmbvz0 uImnv6CR1sMU2uSnuxg5HUiuRrid2ZtckQY6X7Ezf4mSXInMk6FgqgIKM6epOhsGFKeA6HLd+zl Qo2L4D3/0vBPo9LDr4LvmxdNFNHUxQzQzBvCy X-Received: by 2002:a05:6902:4d3:b0:dc6:d457:ac92 with SMTP id v19-20020a05690204d300b00dc6d457ac92mr7166050ybs.31.1711434216382; Mon, 25 Mar 2024 23:23:36 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240321163705.3067592-1-surenb@google.com> <20240321163705.3067592-15-surenb@google.com> In-Reply-To: From: Suren Baghdasaryan Date: Mon, 25 Mar 2024 23:23:25 -0700 Message-ID: Subject: Re: [PATCH v6 14/37] lib: introduce support for page allocation tagging To: Matthew Wilcox Cc: akpm@linux-foundation.org, kent.overstreet@linux.dev, mhocko@suse.com, vbabka@suse.cz, hannes@cmpxchg.org, roman.gushchin@linux.dev, mgorman@suse.de, dave@stgolabs.net, liam.howlett@oracle.com, penguin-kernel@i-love.sakura.ne.jp, corbet@lwn.net, void@manifault.com, peterz@infradead.org, juri.lelli@redhat.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, peterx@redhat.com, david@redhat.com, axboe@kernel.dk, mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, dennis@kernel.org, jhubbard@nvidia.com, tj@kernel.org, muchun.song@linux.dev, rppt@kernel.org, paulmck@kernel.org, pasha.tatashin@soleen.com, yosryahmed@google.com, yuzhao@google.com, dhowells@redhat.com, hughd@google.com, andreyknvl@gmail.com, keescook@chromium.org, ndesaulniers@google.com, vvvvvv@google.com, gregkh@linuxfoundation.org, ebiggers@google.com, ytcoode@gmail.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, bristot@redhat.com, vschneid@redhat.com, cl@linux.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, 42.hyeyoo@gmail.com, glider@google.com, elver@google.com, dvyukov@google.com, songmuchun@bytedance.com, jbaron@akamai.com, aliceryhl@google.com, rientjes@google.com, minchan@google.com, kaleshsingh@google.com, kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, kasan-dev@googlegroups.com, cgroups@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Mar 25, 2024 at 8:12=E2=80=AFPM Matthew Wilcox wrote: > > On Thu, Mar 21, 2024 at 09:36:36AM -0700, Suren Baghdasaryan wrote: > > +++ b/include/linux/pgalloc_tag.h > > @@ -0,0 +1,78 @@ > > +/* SPDX-License-Identifier: GPL-2.0 */ > > +/* > > + * page allocation tagging > > + */ > > +#ifndef _LINUX_PGALLOC_TAG_H > > +#define _LINUX_PGALLOC_TAG_H > > + > > +#include > > + > > +#ifdef CONFIG_MEM_ALLOC_PROFILING > > + > > +#include > > + > > +extern struct page_ext_operations page_alloc_tagging_ops; > > +extern struct page_ext *page_ext_get(struct page *page); > > +extern void page_ext_put(struct page_ext *page_ext); > > Why are you duplicating theses two declarations? > > I just deleted them locally and don't see any build problems. tested wit= h > x86-64 defconfig (full build), allnoconfig full build and allmodconfig > mm/ and fs/ (nobody has time to build allmodconfig drivers/) Ah, good eye! We probably didn't include page_ext.h before and then when we did I missed removing these declarations. I'll post a fixup. Thanks!