Message ID | 20250114122519.1404275-1-chenridong@huaweicloud.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C83DC02183 for <linux-mm@archiver.kernel.org>; Tue, 14 Jan 2025 12:36:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0969F6B0083; Tue, 14 Jan 2025 07:36:12 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 046726B0085; Tue, 14 Jan 2025 07:36:11 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E77096B0088; Tue, 14 Jan 2025 07:36:11 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id CA9B96B0083 for <linux-mm@kvack.org>; Tue, 14 Jan 2025 07:36:11 -0500 (EST) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 3B0E914094B for <linux-mm@kvack.org>; Tue, 14 Jan 2025 12:36:09 +0000 (UTC) X-FDA: 83006004858.22.5DF6FE8 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by imf18.hostedemail.com (Postfix) with ESMTP id 1A8CA1C000E for <linux-mm@kvack.org>; Tue, 14 Jan 2025 12:36:03 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf18.hostedemail.com: domain of chenridong@huaweicloud.com designates 45.249.212.51 as permitted sender) smtp.mailfrom=chenridong@huaweicloud.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1736858167; a=rsa-sha256; cv=none; b=F+Tgx4UhA339F4m+6wkXkm53RjiCFQNo3wh+P19FmCFXCzB2cvJXwPrFZBmN7sgtxDg4hX BEyRGCEunlMpIcN6tdGlEI0ISe/1AdShLBjMIcQfc5QumkbxQLUmWdG8MLFc2KT8nuSU1R oM8/T9LlTHURlwG8B3uaH8TqPPeqCQE= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf18.hostedemail.com: domain of chenridong@huaweicloud.com designates 45.249.212.51 as permitted sender) smtp.mailfrom=chenridong@huaweicloud.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1736858167; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=EaqGNpr8ho3EC+ubwhQN1YHtdeWvZ1bYf7UZlPWehq0=; b=lGWMFELWDzhzBbpepoEJs9biu3ZEQKU2ZU18WHBXmLaxr8cZij2rU4MffUxBTkN0vhCzDq K+IFE0ogt0mYzm7lgIVr0g0vRDhXvSCQYLl2gWnJ1k8D/7VOoXvdrNjVf1khWXEw3E8rkT U5UeofxPktTHCXp/NkpiByE/bYOoF84= Received: from mail.maildlp.com (unknown [172.19.163.216]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4YXTB80LLcz4f3jks for <linux-mm@kvack.org>; Tue, 14 Jan 2025 20:35:44 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.252]) by mail.maildlp.com (Postfix) with ESMTP id 3AB8A1A13D9 for <linux-mm@kvack.org>; Tue, 14 Jan 2025 20:35:59 +0800 (CST) Received: from hulk-vt.huawei.com (unknown [10.67.174.121]) by APP3 (Coremail) with SMTP id _Ch0CgB3F8IhWoZnN4KvAw--.1325S2; Tue, 14 Jan 2025 20:35:59 +0800 (CST) From: Chen Ridong <chenridong@huaweicloud.com> To: akpm@linux-foundation.org, mhocko@kernel.org, hannes@cmpxchg.org, yosryahmed@google.com, roman.gushchin@linux.dev, shakeel.butt@linux.dev, muchun.song@linux.dev, davidf@vimeo.com, vbabka@suse.cz, mkoutny@suse.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, chenridong@huawei.com, wangweiyang2@huawei.com Subject: [PATCH -v2 next 0/4] Some cleanup for memcg Date: Tue, 14 Jan 2025 12:25:15 +0000 Message-Id: <20250114122519.1404275-1-chenridong@huaweicloud.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _Ch0CgB3F8IhWoZnN4KvAw--.1325S2 X-Coremail-Antispam: 1UD129KBjvdXoWruF43XrWfJr43Xr15trWrKrg_yoWxZrg_Ga s7XFy7Kw12vF1aya4vkr4UCFyxKw45JryDGF1jqF43tasxJw1kZF12qF45Zr1xZ3yIkF4Y vrn8Jan7Ww12qjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbI8YFVCjjxCrM7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwV A0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW7JVWDJwA2z4x0Y4vE2Ix0cI8IcVCY1x02 67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I 0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40E x7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x 0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lFIxGxcIEc7CjxVA2Y2ka0xkIwI1lc7CjxVAa w2AFwI0_Jw0_GFyl42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxV Aqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q 6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6x kF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AK xVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvj xUF1v3UUUUU X-CM-SenderInfo: hfkh02xlgr0w46kxt4xhlfz01xgou0bp/ X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 1A8CA1C000E X-Stat-Signature: ixy9r3tbaooadr83incm597sh3jt6cud X-Rspam-User: X-HE-Tag: 1736858163-406323 X-HE-Meta: U2FsdGVkX18rjlrd4mFSTL7NSwmnPMlBSvUlcI6FHS+RqHjcIORiaeKbXDlPaB61YUux1fWmyTjQAVef+jBIUF/XoVTmlZ+loUXDXbHJKz5uIG40/1PE32RImTiOU+ad4mfO6MtB3pLmBzmCdB+/eBzb4gDYmRPh+I8IiAJ4RQUIdHiGUvAiN8qKbNMofGiaRTglfL5ELNguR6is1+kA9uCgVTbqXUJMLhLzSyqhVR2PkOexoX67YxhvYl7EAmzmertHRp+EdBkCZQ8CLT+QZ57WcTwbVyiGPEgVD4/bN1ktNGbtY1OSr20e9C2VoQcgW20E73g+Nlypp9QMZNzO4EQOZRa7DEAwqkTO3+yjtP3XE5Fm/Wlg69eGuG5b6KxWgykmfISMlwz0f9ckMKBwlIUtmUkDpYzybiItkHjpmfFOfaYo4c1BAhYQTcVj128wUUGPIJ0T7F+GMGJ993vGnI5WjOQkgumvEaoDYpsxTJRd0oMHv/EgKSgL43W2i7NqicdeFrgDBnNJPXE4jqIl7jaN5PpwVszhZT899zfpN5P+FxdFf5sejrF9C/CxLC+5a9tXkBVdRIat/CsqkWXsqhMqUAEt9vVPmz1MsZ/gPC/lf0PyCDXJl0i0Hp6PPdIuiJ4blX1zXYb89CSm761HAUgz+BIpm3LVHezzzZxJjrbRYyjiIBu+ksCbkE929PUgnpbUiixn0s/tQzgjebsLOCKI8gjPkUa0+NKWgoSNeMZTTYl/Lvmjim0nI3CsjnzEjCODnpbqROYEa0pUXHjUYlbXUPXsEq4VUzMduoJPLqSYJfMJxpMmzIrIbG7ytDbDYEM5SdV+YdNcblRFP6vrkcHzcjYN4w3Gsi4Cv9EtgfRjfCU6kiaraTh7CB2u5ZI9hwehoCiEy1NyOp7DsY1DH3nCCi5Hx3DbdlEjCH2OmlY8z79zCb3uuUwrAR6ilCK0A4ipCcxC8iKnTrJCvQZ pPLOIf48 ucch4ktSRcEieJERTowaLf6I25rQY+dyetChyPdBwQlaB1+9YtEYwnlqZ8Wiux0YqdlhyMmJA34Yh966Gfgo2hMYqN6112TmEOsACWD+Ru7lHkDc4sNYRb203Z/wv+A+QfTyo X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Some cleanup for memcg
|
expand
|
From: Chen Ridong <chenridong@huawei.com> Some cleanup for memcg. --- v1->v2: - drop the patch 'simplify the mem_cgroup_update_lru_size function'. - for patch 3, rename '__refill_obj_stock' to replace_stock_objcg, and keep the 'objcg equal' check in the calling functions. Chen Ridong (4): memcg: use OFP_PEAK_UNSET instead of -1 memcg: call the free function when allocation of pn fails memcg: factor out the replace_stock_objcg function memcg: factor out stat(event)/stat_local(event_local) reading functions mm/memcontrol.c | 127 ++++++++++++++++++++++-------------------------- 1 file changed, 59 insertions(+), 68 deletions(-)