Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4469476pxt; Wed, 11 Aug 2021 06:51:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwv5Bp5nyjvYMYpfCQbtg1jKXLd7Q9QokrVoKIzZmhQs6PhEyf5msMJtJ49OL+jzv7guisU X-Received: by 2002:aa7:c7d0:: with SMTP id o16mr11424195eds.75.1628689909122; Wed, 11 Aug 2021 06:51:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628689909; cv=none; d=google.com; s=arc-20160816; b=Abv2ul4XHfi9u0Q2FaVWVhsVpbI9eStLZy05baf1Fd1n30V0ix66OrUzpOEVz7udip mB7wCfyCPtK592b9gXwCnq8vwb2uZ/b3tgwAcM6CBYGiWhx8CE1NoKfsEIKiApToDAca Qqh2cgzHUmCQ3/CkNQlmhPX2MkEazPqWPsGZqeHKY0pfhkuK/SlNqPw9DlBKwGA6BYrk E8ofdUUWwYqCpC+cbzmM1J1BBFCRpaeQv8nJ9kiXKcSqJCSTqpWvCPZDWiRNQeGjwrBe PRqp1y0AqmHtM+xwS2nvCI5+ar3d07mKLSK1wPAXvsRVyMKLQF8YvoiBjz59eiTjm4rZ 21WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature; bh=o1RwMkH/G5AGGvy1Dh9XSu4PN1WkDLHpM6h1JDnu2JY=; b=HyjVoQfcuTCbDg8jrkeSUVojQ1hCXn9VVsFKb3S8O3rfAceSN7MNDp9mvUeBfsbKV8 nuzkVFwlXi5u6Ch53vaIyOY5W4ED8FDfWd1FG9FH6NDa5ZCl9Q01ChyfhUlPzLBFvL36 gUGavNaD+7vPAWUdgCZz/dz/nLmsEbbSSKdFGQXEV/F5PTaF6F1n8iC9wNpWC/TWho/i xrTGkZXpRK/+7wUtFTnHYrGmwLgqDivpBpnPKOhRb0HaRW/Xheu+GuBP232Sz0U2+TjB ssoRqJvYpddgc12C8dK/XlY4p1kMblp+Dplme62P2cCnRNd+BHvTHSZGzs6CzMSDroAR CyMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=uloM6ZRy; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 e14si23929525ejm.65.2021.08.11.06.51.25; Wed, 11 Aug 2021 06:51:49 -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; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=uloM6ZRy; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 S232149AbhHKNuV (ORCPT + 99 others); Wed, 11 Aug 2021 09:50:21 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:60382 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231176AbhHKNuU (ORCPT ); Wed, 11 Aug 2021 09:50:20 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 22F631FED5; Wed, 11 Aug 2021 13:49:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1628689796; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o1RwMkH/G5AGGvy1Dh9XSu4PN1WkDLHpM6h1JDnu2JY=; b=uloM6ZRycUFRyFceks2pPLD/WgBWOkTU+T+gYe0I6bPq0/0FxZCzvZTrJBt74miB87Mf4i Qg9Y8qer8SVdJXuw42HbVICgygwW3MOcxIahdTAfzuxAaQSn92EW1LOBx8ofqDAczFat9E X3xFJe214Iv27pUI7jVexeJuSmiD7aM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1628689796; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o1RwMkH/G5AGGvy1Dh9XSu4PN1WkDLHpM6h1JDnu2JY=; b=s0+6c/cnKA7HOyKSM79bQzXkIzrYgerN95dCC8jgnx/Di82uvMwwCnbTy9APK+lOmZeKaj hNqIl2mDAqVXqRBA== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id 04ACC13969; Wed, 11 Aug 2021 13:49:55 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id SnhuO4PVE2HgQAAAGKfGzw (envelope-from ); Wed, 11 Aug 2021 13:49:55 +0000 Subject: Re: [PATCH v14 050/138] mm/workingset: Convert workingset_activation to take a folio To: "Matthew Wilcox (Oracle)" , linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-51-willy@infradead.org> From: Vlastimil Babka Message-ID: <8c733e7d-15cc-64a9-c049-869437e55b41@suse.cz> Date: Wed, 11 Aug 2021 15:49:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210715033704.692967-51-willy@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/15/21 5:35 AM, Matthew Wilcox (Oracle) wrote: > This function already assumed it was being passed a head page. No real > change here, except that thp_nr_pages() compiles away on kernels with > THP compiled out while folio_nr_pages() is always present. Also convert > page_memcg_rcu() to folio_memcg_rcu(). > > Signed-off-by: Matthew Wilcox (Oracle) > Reviewed-by: Christoph Hellwig Acked-by: Vlastimil Babka