Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp641814ybi; Fri, 24 May 2019 09:05:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsCaIbgoH8S4E3gOwtKsy/sPAFXcFGs81S0brP+OpCoVfEz9jK83ms0pTWwjzoRsNZ1LuE X-Received: by 2002:a17:90a:ae10:: with SMTP id t16mr10508077pjq.51.1558713954464; Fri, 24 May 2019 09:05:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558713954; cv=none; d=google.com; s=arc-20160816; b=EPri6c/rs0ELXeTbTkqeVNtO836LtdEaaUJeg978PvzTWbPyXSJ+3JYJAcE0m0jE+2 i3wQF6H4eZzqs9ozjb6LU/WNO3NhJ3pCW0xhHV0lJ2sZDJ+XHvacPcmkMDb/IDT9YWVH PqJPHKTxFZ7L1bSSZiSAHWjbR91nabnbZEBNq0mOcaDnIxDRmGOPMri+2aMBHS65Dpph efU3Xwxk1IKGnxMvBRSe7UAu302rqws1ntSefrtLoG/77GVk9dcjoAK8n+60fMSVfB5Z Bp4M2ZZ3RoShwe+bFboSqdgPfvoD5PZmEsMRHJWPjmDwfNYrLqUJ/j5ZLTFcpYgg3EhB 25qA== 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=udHsjQBKP68t9TZ4H27l2j3R7dmm1NcGJYaKWehd8PE=; b=06bL5Qx7T/qSVa+DwmBEH7eLLGTNq7gvDfTqG03kcVmq4OnSNt2MJJilgMRfKzRdp4 MGRmWJ5iW8vuvod8SAH96t+I5UJMaLe9dRaWcZs20++WmRBX7Ny7jlnlGPJo4H2VBpZb s+QArS3RLjv54l93ALpBVu+F9WiP+AufFGp7UNNtC9i1vrBLEQxiPFulsc40/A4L4KyR pGBam1FYKdEiBZaYbI3A3cs3je5J6IK+ON7XKHng0BTNbiObGU+boT5YurjojQiY0zOP h+uIf5Bxk/zqrmeJNpLwGIQBuNctNFHxFP9jPGlVArX+Z4eefQ6qTgEyX/dIpQuy9HhZ 1qBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="Ji/F2CZo"; 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 j24si4749686pll.388.2019.05.24.09.05.37; Fri, 24 May 2019 09:05:54 -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="Ji/F2CZo"; 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 S2390733AbfEXQEU (ORCPT + 99 others); Fri, 24 May 2019 12:04:20 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:33868 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389962AbfEXQET (ORCPT ); Fri, 24 May 2019 12:04:19 -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=udHsjQBKP68t9TZ4H27l2j3R7dmm1NcGJYaKWehd8PE=; b=Ji/F2CZobt5eaIwXFU270PPtZ lWbro9qD58JzH3u5iSrGABrhavNQGlQG9qOowF/I85/KPNwLZ/LLPJ3k03wbqOSNrdWu7Vcl8p4KU bUFsA2uPdJWh2n12f6c/VJBEQA2R1g88Oc8wLksp4s/GZSbW6SV1861BU2uUfdKtbl1HxRwp8L6yb SFtMKbaNlRT/dD+kfvCgm+8cbrjk3onqOCJChb5H0SKJuXWv8jpQrNEtNSZGLej37oK//Zql4ElqN XfEldQJv31OFhsagwQYQolonLFHt5VjX4CxLIAY99YW1Ib0FJB/8j9g29HrB6scmWY36BOpf2/h1Q 4/QI6Oc/w==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1hUCg6-0000DK-3y; Fri, 24 May 2019 16:04:18 +0000 Date: Fri, 24 May 2019 09:04:17 -0700 From: Matthew Wilcox To: Johannes Weiner Cc: Linus Torvalds , Andrew Morton , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH] mm: fix page cache convergence regression Message-ID: <20190524160417.GB1075@bombadil.infradead.org> References: <20190524153148.18481-1-hannes@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190524153148.18481-1-hannes@cmpxchg.org> 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 Fri, May 24, 2019 at 11:31:48AM -0400, Johannes Weiner wrote: > diff --git a/include/linux/xarray.h b/include/linux/xarray.h > index 0e01e6129145..cbbf76e4c973 100644 > --- a/include/linux/xarray.h > +++ b/include/linux/xarray.h > @@ -292,6 +292,7 @@ struct xarray { > spinlock_t xa_lock; > /* private: The rest of the data structure is not to be used directly. */ > gfp_t xa_flags; > + gfp_t xa_gfp; > void __rcu * xa_head; > }; No. I'm willing to go for a xa_flag which says to use __GFP_ACCOUNT, but you can't add another element to the struct xarray. We haven't even finished the discussion from yesterday. I'm going to go back to that thread and keep discussing there.