Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2907189ybd; Mon, 24 Jun 2019 15:09:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdHAGp3qjHcT/bELXCyctSMJ/y/FVmPW4c43G7nRHWJSa2cvU7cHehOTf3r9hhxvOuomY0 X-Received: by 2002:a63:6b46:: with SMTP id g67mr27467323pgc.45.1561414140341; Mon, 24 Jun 2019 15:09:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561414140; cv=none; d=google.com; s=arc-20160816; b=XbCLzJI9E77XaBcyYlqcjeyHrZGyfakarrkaEVef6DAvQkEv2WlUaXzsT6AcYP9bLo dcVbPfFhZB0a8LwtviW9G8aPeki7lwxj8s5fiTLWqOz650bt6JMefVWptR9+USQepWpN L69NbGGFpEFReTqZwAxXwREl3fx3cof4YDoS6LEsoGNRCpihUf7Cr6Mk8ECde8p3vrzz sEbe84jORabLTUFmSWy3kt1f0O5G3lPqSV+gH1qyfR7UPhzrsJq4hfzlLvNqiYv7HpF8 aS00bK1Dbtz5hRCkqIOgKVB868CLN5/SUDAT95TjdSeerCOAsLd94k4h6OQi24W9ScuQ MQmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=o2TgnyjeWoDT8cizs+0926CcrBI/Czk7Q1OwFweZT40=; b=SXNAjuuukxN+3OThldhKi20gfiIoOhqIjJkmsNsA11571KKn72Wl+WkQkG9inKaoPq Pu0sZIXQ2WcSWDiVvvr0U8c5wqo6/gEYQEKTnsKUwDJw2jNqiFWGPcyi1fjKAkLV/dDW cd14iTOzTJiFJHvHjXCsfDOsXfP7cq/FHWCWWp82p3TdoLQKLO3QSMbEH1t6xqppZKN5 XJCz5su+H92qZhkIOosL2+hx9AAL1uBAH1I7xpIkenjorVkljzWZzhsl13kx+l8V0dZK cLxduZ5eju0C+GA8cGFK7wu1T55+Jy1oUpHWRBfu3gVLGaVSRzxDKWsNt5XUAHDyhwwG zwdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=YW+HL5IB; 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 h4si4276706pgf.171.2019.06.24.15.08.45; Mon, 24 Jun 2019 15:09:00 -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=pass header.i=@linux-foundation.org header.s=google header.b=YW+HL5IB; 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 S1732494AbfFXVwW (ORCPT + 99 others); Mon, 24 Jun 2019 17:52:22 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:35420 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726301AbfFXVwV (ORCPT ); Mon, 24 Jun 2019 17:52:21 -0400 Received: by mail-lf1-f67.google.com with SMTP id a25so11151085lfg.2 for ; Mon, 24 Jun 2019 14:52:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=o2TgnyjeWoDT8cizs+0926CcrBI/Czk7Q1OwFweZT40=; b=YW+HL5IBGifOF6jZu1p6PtaguBQyhJkmQ9YMn7Jji10endO+CCULhFAsaLYdbA85HU bFUAnpfdTAsZ1Gvy96tlCor3QNdK05lm3AEeLiJmDqpEr3l1mXaGi+f50BoXwSjtl9UA vNVPNKHu+JCKTKrlQwc17yT7GYO7Y66TTo8Mw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=o2TgnyjeWoDT8cizs+0926CcrBI/Czk7Q1OwFweZT40=; b=ZgcyjbAZYsyYYteFFlMAA3eJAFpGwr/EvWQNPVfeONonpKS/0FitnZrhDqBIgQgB68 L6tjLQq3vICGiE/PH715Tf7TPsBPP+FWAX8ZWZQl1UfWEYI3o2JQ+xWeaypBQvsRCmBe wXbUPj+visyi1kinEqHKZNUKZsFo+w5zb2NtvoMkZudHdWgra5Puz6zRHxXEzmoNR1ir /UY6Yh3PzqA9CzA9HsYKONYUTRfWYzmTPntU2jYKyW+3z0m5FW2dblfThUTtIyPoRkOs V5/CLdkec/McY17UrCWfsc3rQchvrx55NXCmFdr+3MKEekfJ44Eg/tgbsu5CfbpMORCn xvrQ== X-Gm-Message-State: APjAAAWW67OGvcQQRCdfXuzdKapmeIM8Aj4uSz7zSwHMfeEccn8uLAQn tDl2v5O8FUg+ph/feof/cyoJM+zQIMg= X-Received: by 2002:a19:f00a:: with SMTP id p10mr40901604lfc.68.1561413138496; Mon, 24 Jun 2019 14:52:18 -0700 (PDT) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com. [209.85.167.44]) by smtp.gmail.com with ESMTPSA id x22sm1715316lfq.20.2019.06.24.14.52.17 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jun 2019 14:52:17 -0700 (PDT) Received: by mail-lf1-f44.google.com with SMTP id p24so11124980lfo.6 for ; Mon, 24 Jun 2019 14:52:17 -0700 (PDT) X-Received: by 2002:ac2:44c5:: with SMTP id d5mr28053521lfm.134.1561413136997; Mon, 24 Jun 2019 14:52:16 -0700 (PDT) MIME-Version: 1.0 References: <20190524153148.18481-1-hannes@cmpxchg.org> <20190524160417.GB1075@bombadil.infradead.org> <20190524173900.GA11702@cmpxchg.org> <20190530161548.GA8415@cmpxchg.org> <20190530171356.GA19630@bombadil.infradead.org> <20190624151923.GA10572@cmpxchg.org> In-Reply-To: <20190624151923.GA10572@cmpxchg.org> From: Linus Torvalds Date: Tue, 25 Jun 2019 05:52:00 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] mm: fix page cache convergence regression To: Johannes Weiner Cc: Matthew Wilcox , Andrew Morton , Linux-MM , Cgroups , Linux List Kernel Mailing , kernel-team@fb.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 24, 2019 at 11:19 PM Johannes Weiner wrote: > > Hey, it's three weeks later and we're about to miss 5.2. > > This sucks, Matthew. Yes. And I do think that having a real gfp field there would be better than the very odd xa_flags that is *marked* as being gfp_t, but isn't really a gfp_t at all. So how about we apply Johannes' patch, and then work on making that xa_flags field be a proper type of its own. Because it really isn't a gfp_t, and never has been, even if there might be some very limited and hacky overlap right now. Alternatrively, the subset of bits that _can_ be used as a gfp should actually be used as such, in xas_alloc/xas_nomem. So that you can do xa_init_flags(&mapping->i_pages, XA_FLAGS_LOCK_IRQ | __GFP_ACCOUNT); in __address_space_init_once() and it would do what it is supposed to do. Willy? Linus