Message ID | 20250117014645.1673127-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 3AE52C02187 for <linux-mm@archiver.kernel.org>; Fri, 17 Jan 2025 01:57:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 86B396B0088; Thu, 16 Jan 2025 20:57:44 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 73B926B008C; Thu, 16 Jan 2025 20:57:44 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 516B46B0095; Thu, 16 Jan 2025 20:57:44 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 1200A6B0088 for <linux-mm@kvack.org>; Thu, 16 Jan 2025 20:57:44 -0500 (EST) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id B4626141502 for <linux-mm@kvack.org>; Fri, 17 Jan 2025 01:57:43 +0000 (UTC) X-FDA: 83015282406.30.5FCDD77 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by imf09.hostedemail.com (Postfix) with ESMTP id 8C76F140007 for <linux-mm@kvack.org>; Fri, 17 Jan 2025 01:57:39 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf09.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=1737079062; a=rsa-sha256; cv=none; b=U1EGDtjxNAh6gbjElwTVq/Aup2hhzCcVzmMnlTKr1VA9+TNrSVKDV621KoGmcB9cInhn15 sXHa9lpmddq+EUKUzD5njMZiHEWIOS6nmGVC9ObLAsaiX0QKSeMfCE2oVfdERv7g0JApnn tN9cbyNn7BBvQZ+hP2Wr9o+6PZpwYKI= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf09.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=1737079062; 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=x/C6pbkYa2cvpe3b3TCLmFyL4L1vu7pkkTzMVPA7mqY=; b=eJ53rivY4xUt65uklTxOKwhJiHAFYqUHdsdBPJcbMsta0vr4+6580oOqBK+4m03EBcJhnq uJcEeQFgtLJojGID9jw8+Pl4Pkf96kZPGdsiqQqYBjd9+yevx6yvRBxCq8+LE8mPRIGMig uClgQNpQD0Ub7YXF+xN+ICgY0eokI4k= Received: from mail.maildlp.com (unknown [172.19.163.235]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4YZ2t00qT4z4f3jMB for <linux-mm@kvack.org>; Fri, 17 Jan 2025 09:57:12 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.75]) by mail.maildlp.com (Postfix) with ESMTP id C99CB1A0937 for <linux-mm@kvack.org>; Fri, 17 Jan 2025 09:57:33 +0800 (CST) Received: from hulk-vt.huawei.com (unknown [10.67.174.121]) by APP2 (Coremail) with SMTP id Syh0CgCnsWT7uIln8NWrBA--.20802S2; Fri, 17 Jan 2025 09:57:33 +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 v3 next 0/5] Some cleanup for memcg Date: Fri, 17 Jan 2025 01:46:40 +0000 Message-Id: <20250117014645.1673127-1-chenridong@huaweicloud.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: Syh0CgCnsWT7uIln8NWrBA--.20802S2 X-Coremail-Antispam: 1UD129KBjvdXoWruF43XrykAw45Wr15ZF4rAFb_yoWfKFc_KF 97AFy7tw42gryUJFy2kr45JFy2kan8A34DG3WjqF43tasxtw1q9FnF9FW8Zr18X3y3Cr4Y vr98Jw4kWw129jkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbI8YFVCjjxCrM7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwV A0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8IcVCY1x02 67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I 0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40E x7xfMcIj6xIIjxv20xvE14v26r106r15McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x 0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lFIxGxcIEc7CjxVA2Y2ka0xkIwI1lc7CjxVAa w2AFwI0_Jw0_GFyl42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxV Aqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q 6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6x kF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AK xVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvj xUOBMKDUUUU X-CM-SenderInfo: hfkh02xlgr0w46kxt4xhlfz01xgou0bp/ X-Rspam-User: X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 8C76F140007 X-Stat-Signature: 4pc4kabgccif5c6cuooot8h1yc93pf3y X-HE-Tag: 1737079059-389598 X-HE-Meta: U2FsdGVkX19OmCt79x874gaLLsFpZLkv3Gy9UaIfflCZKxt0AmkTIpsMOxpFU8TuMoOKIN4+FjOCkKUK9XLggzJj3KHIhFK9L1i+PciNMdvDYHt89oG7c4tB3il1FhuUoepT9X0s5LVqF7xkqmHmuZHdsnU1HThWeA0jLdpLdvzkhfIk+6yW0QVvVxhQxjLspnTqeTW7u0D5dWkCWYov+A+o/ekU4kU+k0URPvoMbmo8dWkUflftxmBwx7gd9B/W4+RVfQpZoM0Vmzfwss7w4bTVtIdt5auSVx9jwbhdukTzPJY5Vi9uOQUf2jPfRs0D23519M6Qz9rreE3kBxPj7l5h6WvUnrb6HSjQReMc5HdF21IJ9YpSEAY1BzMFavOp19lWju+zXCZW6Xsu3hkVXtAGuag8ntoB5VvFk/xOkwHDRExP+Yj/Tl/zVMysvh0zidCp/SMAn4UKUx27HFG44qTD5w+FjcOIecuqj1pMUzXg/QoxC6avBP0oR0BQECnfym+uL9PRWl+JvnBRmt5TuyrpfVV8aYdWUYgr5SduOQStWQgSR7RNcd2sG11gF39bjrNW/hUVTngRNVqMxX8o8+hj+zUj4Z4clglrmGBHVaeLgE2T7O232J8SWmUydZCdU5tGPywGCLxyknPvNDJ8nWmcDgOLC/cbVZh5dcuPZCfmkuyfxcQ0fpQ0dfqwOwrjM+8gSKQ+mcmPDwtaM60078niv9uo8aBNkJmUg4KRfWOSRLEkv64azbqbxBy7+xS0VkqPZ/wO/SkNGcUfczPBuMQNBcrTFEjXLmZmR92WWdzhIj9fZVVxyKhC7x+fLFtAzmm7tmfPE7ot1Y1O1csM+uHoQPU8WHNrsOIGPOb3lSnqs9qAXH8NTPRH8zgMDSsmywGev5lu0q23oeGPzS2DPTigPorVAR3BzUEbiG0gJqmQViAJ7u4wYIPYjx0VuuWDDz6Xcd90emuBL3YQ8Sv 901OucM+ FaRQReDzRB+CcMNFAKboXwZF8rx4+eEvIvFo7QbsIsTknxgKT1IG7eFQr8FA0sHAHd5TNmH6jgvC/z+QZ3mtOneF41d1mbFvAGLbt2O8uXqaKF63NFeVpb3ZZ67aAQXvaNfxX 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 --- v2->v3: - move the wrapper function definitions to header files. - add a patch to move the 'local' functions to the memcontrol-v1.c. 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 (5): 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 memcg: move the 'local' functions to memcontrol-v1.c include/linux/memcontrol.h | 25 +++++-- mm/memcontrol-v1.c | 17 +++++ mm/memcontrol-v1.h | 11 ++-- mm/memcontrol.c | 130 ++++++++++++------------------------- 4 files changed, 86 insertions(+), 97 deletions(-)