Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3627061rdb; Wed, 13 Sep 2023 19:16:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGlH9DCiklHFD3P7K1QEkjqvWumQILMlTXYoqdWJnD0SH3JmzSKWWeti4PrLqiGkjjKxWyJ X-Received: by 2002:a05:6a00:cd3:b0:68f:f650:3035 with SMTP id b19-20020a056a000cd300b0068ff6503035mr5027864pfv.12.1694657784529; Wed, 13 Sep 2023 19:16:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694657784; cv=none; d=google.com; s=arc-20160816; b=Isaw7gJSjntW+nu+bei51hH7YAr01NByM3m6vyqczhcwkv4dX6DSueXCrxgjSexAg7 0HNFZERFQBP6arG8J7wMAo0U0tOXojE0PPiGKw8+tAkfiYKCe9vd3aX6j12jJSzbkpSy hx6i/C6Ljd1zSxSmx9TqA7dQHXcPjuSy2OkYrkpoge7/l3Jik7xKKp1F0tUl6b8K/kEN PmH8tInffjHwoUbLwtKcSP9HkKdMVZzjHx4IX9jja68ljE61yj1UNF1lhvpWwPddj1Yg Ry5+W1YE3SJD3Uen0HOpeTqAChLl8uSzkdBm8V2Vfg+ZwYQWb42w7xp0ABaBfgAyzsVf U/PA== 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=S915mKK5+DIHTjSPmbc01fyab6FvzQ8To3PxTMKLA8Y=; fh=Rhg6ZBXQA4fZersjDe2tU1HtZn2/8IOlJnDyGvWM6wk=; b=d7q4owjSPW88NZXnhi0me1Cdjw0HOrHd89/QVxf1w8TbrxfWv8vGGhTWbn7UL2/8ZI D5SYpi8i2hTHTnHv5bxKoRCXbj3CkapOvM5bQDV8hvXLrmLPqgPA9+xnxyhuO//nolMJ 7zg6IP/dy8eZpAGt75Ppy75954v2mHNnkPem/MnL1LIGvvH6VUtgDbcqXwGaRwL3G0xW 7jnJzUeMo/EW4TNdPnALQNv6fWO7kXK/8Fv3d2GLctq238JIWjtF38S670x7nhylimrX JyDfLT/AQTAaAD0niRjshc/cloOr2K8BkM/U4gG4Krm5RbVyy1uPCY6QD041owST/dRA CjjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20230601.gappssmtp.com header.s=20230601 header.b=nNEi+6uo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id bt19-20020a056a00439300b0068be710ee8bsi545797pfb.188.2023.09.13.19.16.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 19:16:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20230601.gappssmtp.com header.s=20230601 header.b=nNEi+6uo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 65FE382878E2; Wed, 13 Sep 2023 14:33:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229543AbjIMVdu (ORCPT + 99 others); Wed, 13 Sep 2023 17:33:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229918AbjIMVdt (ORCPT ); Wed, 13 Sep 2023 17:33:49 -0400 Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A8B21739 for ; Wed, 13 Sep 2023 14:33:45 -0700 (PDT) Received: by mail-qt1-x82b.google.com with SMTP id d75a77b69052e-4124e1909edso1313301cf.1 for ; Wed, 13 Sep 2023 14:33:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20230601.gappssmtp.com; s=20230601; t=1694640824; x=1695245624; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=S915mKK5+DIHTjSPmbc01fyab6FvzQ8To3PxTMKLA8Y=; b=nNEi+6uoJJf7OhHJUwN5KAPquj7RSqdV2vhiktOT03QDmjIqaF2Rb+GJLlsismu67U nIFDPARnQSg7VpcfzbkAZukhzvVI//9ObTvszQdup9DvzJLZFlpd8yqW9aPPjnfrR0MV zJiniceuKYgxnFJFTQs6JxvULYgbsj/lmx8KSOoJCoG2P6MnLazOWc8LyHjVqS35IP0i nkoarEZLfKhFpjyHH+P0/CJdc1pSHCHaqsELC8qJqYD3RuFs16Ko+TH1fodvSA7D6Li7 luwj4P1NY0W7M1CdT2LFmzQQMfp2wbJD6+ni22oJnP89JsE7sBIMdum/+eY4P0za/9it cIDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694640824; x=1695245624; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=S915mKK5+DIHTjSPmbc01fyab6FvzQ8To3PxTMKLA8Y=; b=Dd/tvs2YPS2f2io2I57/+/Ccbtnn9cEC174/5x7l8BsNgm2tA/7d++mbAen1ba/hd3 eb8iep3OrGqw9JiW7/3cERvSb6XgnuP0KOxid5ZTNGZ+MO7b9SsuzbMNpJNcSDqmS6LG oszgqAvcVM04SwvZsIFtG75zCcMOAl6GAbHu2fGMbR+YDBdAz5c9rHjxbJiVXnBlBaff l90R0KujTjF4LuhqKmDdpmmGVrrxW2cdjXgRclC5CQJOOKQLaR7OIguNG60JqSSeoyZY BNJsVT6GAwHPapLsZfCDuggvedxxuXTZaCe3v2AmJKc90AGZcPhOK19vSaetL5enxtSB iXfg== X-Gm-Message-State: AOJu0Yw6XD0LhaLrtGSa9KqqMWbSy6FzgHIjbayKNZsW3OsmUFxhc75u 7p4XlliV8caiMmgmhO2IQzyldw== X-Received: by 2002:ac8:7d8d:0:b0:40f:de02:8315 with SMTP id c13-20020ac87d8d000000b0040fde028315mr3437193qtd.7.1694640824612; Wed, 13 Sep 2023 14:33:44 -0700 (PDT) Received: from localhost ([2620:10d:c091:400::5:35bb]) by smtp.gmail.com with ESMTPSA id o21-20020ac872d5000000b004120400921csm47884qtp.94.2023.09.13.14.33.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 14:33:44 -0700 (PDT) Date: Wed, 13 Sep 2023 17:33:43 -0400 From: Johannes Weiner To: Vern Hao Cc: mhocko@kernel.org, roman.gushchin@linux.dev, shakeelb@google.com, akpm@linux-foundation.org, cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Xin Hao Subject: Re: [PATCH v3] mm: memcg: add THP swap out info for anonymous reclaim Message-ID: <20230913213343.GB48476@cmpxchg.org> References: <20230913164938.16918-1-vernhao@tencent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230913164938.16918-1-vernhao@tencent.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 13 Sep 2023 14:33:50 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email On Thu, Sep 14, 2023 at 12:49:37AM +0800, Vern Hao wrote: > @@ -296,6 +295,7 @@ static void swap_writepage_fs(struct page *page, struct writeback_control *wbc) > struct file *swap_file = sis->swap_file; > loff_t pos = page_file_offset(page); > > + count_swpout_vm_event(page_folio(sio->bvec[p].bv_page)); Argh, this should be count_swpout_vm_event(page_folio(page));