Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp32982rwl; Thu, 6 Apr 2023 12:44:16 -0700 (PDT) X-Google-Smtp-Source: AKy350b1ptVW9YqeuszPl0ML2PCunK4AMiF1cx4A758MiOf3RZk/e61E3VhC3QwGEjm5PGA4Mm83 X-Received: by 2002:a05:6402:5156:b0:4fb:78a0:eac2 with SMTP id n22-20020a056402515600b004fb78a0eac2mr628423edd.31.1680810256364; Thu, 06 Apr 2023 12:44:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680810255; cv=none; d=google.com; s=arc-20160816; b=hI8XKehk2n9usHETYJq7MQ4eJCUkzisTkntDWBm/ixcMsjwJ8kFMx6KF9IX+LN9rqd jtKRdRJrnSFRmvW1YVA7xKo1zJqF3aTzfEXSH4CLEs411Hkw0FWdQDlDPLHijQUTp6YZ lEBH8eIKX+u9KWDMA9GGiQIHjc92lzc1KSvxJwe680T+Jo4jgM9ReMAUIUC74DFBEJ5W DIoAFc+3Bd0VPoJ/YXP7gNYZTnbn4QSDB+blo9g6qiJvbBLVU5b8P9xna6PA7PrXXoIZ WyTUydxyVR1zwIIQQI2mRkBXSNjml8PuNuoYVF6H+HEw9F1x+KdHeColwCGFx7RCoCPS 9ssg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tmB9ef+i/tR2RuBXG/MztGedwZCTfoIM0/9hlfY16FE=; b=o+AZlG+bSlM83R7z6c8dXP4u02ZykijwUl6JDHKHJajjaZkl+wNOOdX8ln0CYnABZS HN/AQKCnhIwL5COeNpr6T5/yVgPnwO9B46/SYX05hpVRmjK/qEkLbcXrOp296Bsufae3 wY7IPDSsbdAgDBefl336TRuhKBxCz1NZJazR1+11Tdpq847cS61Tx4Sbl8O/e8sHHnie f9g/ByYi/Eoz+PGgrkpjayn0wwXoZUIX6mlnxSfFyssVB3zhsuU14jOzZZnSNnjiNmle AvCjwdIzf9mQfdmxpOKinoWp0pThsAB6XczP1upanGI2ZsbUTWR9aux8v8hBDWFwzolg Thcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=WS2ep4Ri; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o24-20020a170906359800b008d7300083b7si1846276ejb.844.2023.04.06.12.43.50; Thu, 06 Apr 2023 12:44:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=WS2ep4Ri; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238028AbjDFTmz (ORCPT + 99 others); Thu, 6 Apr 2023 15:42:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237708AbjDFTmi (ORCPT ); Thu, 6 Apr 2023 15:42:38 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90984A253; Thu, 6 Apr 2023 12:42:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=tmB9ef+i/tR2RuBXG/MztGedwZCTfoIM0/9hlfY16FE=; b=WS2ep4RielBa//Iw2N2zKAwJpB qCW3YjQTQSwAfLWsSVsoutV7+iFjBH0DhQtPhkG887UABmFOFnrdWoBFNHbNrBDGCbea+U+ZLElHR jpnGTSqsWJWh0+w3U9mnzIHezeB6zdA0kAhtzl4zo5p3DWPnrqay+5ChonJviuxlPMDAQG8hMWorV 2CC5n6nWzUM6tnRcyPe/cG3Kv4Sm0Ab2RHPfymfryGeBemgO975S3yOvUByubbHw2gtLGkrDa7AmR Wsm44B7yKULXBY79o00EeBYucQQJa/sJzME5G+YJ/eYZV9hsFkGFwuEa6k6mHoenQ1IYFk4Rdb8AG xKOLOPiw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pkVUg-0006hi-MQ; Thu, 06 Apr 2023 19:42:02 +0000 Date: Thu, 6 Apr 2023 20:42:02 +0100 From: Matthew Wilcox To: Tim Chen Cc: Yosry Ahmed , Andrew Morton , Alexander Viro , "Darrick J. Wong" , Christoph Lameter , David Rientjes , Joonsoo Kim , Vlastimil Babka , Roman Gushchin , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Miaohe Lin , David Hildenbrand , Johannes Weiner , Peter Xu , NeilBrown , Shakeel Butt , Michal Hocko , Yu Zhao , Dave Chinner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v5 2/2] mm: vmscan: refactor reclaim_state helpers Message-ID: References: <20230405185427.1246289-1-yosryahmed@google.com> <20230405185427.1246289-3-yosryahmed@google.com> <7ce03e4323b95c1e8fd3faed32c9b285162fe5a8.camel@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7ce03e4323b95c1e8fd3faed32c9b285162fe5a8.camel@linux.intel.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 06, 2023 at 10:31:53AM -0700, Tim Chen wrote: > On Wed, 2023-04-05 at 18:54 +0000, Yosry Ahmed wrote: > > + * For all of these cases, we have no way of finding out whether these > > + * pages were related to the memcg under reclaim. For example, a freed > > + * slab page could have had only a single object charged to the memcg > > Minor nits: > s/could have had/could have No ... "could have had" is correct. I'm a native English speaker, so I have no idea what the rule here is, but I can ask my linguist wife later if you want to know ;-) Maybe it's something like this: https://www.englishgrammar.org/have-had-and-had-had/