Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp919690lqj; Mon, 3 Jun 2024 05:13:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU9U++VRxmypBsEChMu4Z6cxbWxGMFEpFUcDQ/bDAQIVkv2eBdmjQrhBPZAdO6GM9WJ6nx7fULDCpYosPLMxuKRgoXofkIk8xgLDsK2IQ== X-Google-Smtp-Source: AGHT+IFz7lTl5+03BEyFQ8lhOcFRGEX7vCEJgicCpUlzwCsyNag8g8KksX1+kicX092/+JgqIZK2 X-Received: by 2002:a50:d693:0:b0:57a:2acc:5512 with SMTP id 4fb4d7f45d1cf-57a364eb470mr7083078a12.39.1717416787796; Mon, 03 Jun 2024 05:13:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717416787; cv=pass; d=google.com; s=arc-20160816; b=zHbgauBLkpUzC3xkRWlLuXTBnDhwE6GvvC+Sg+wKcX7hNcmwhwNYYOLnzBqYQ6rsDt VSuu4nf4Qs7M6zyNAP9zYWxZp36TE3O58NAdYkM7PooHcm1K/FyKfVJ3BYc6RhakYk8V Osinc8A+sF0TwzoRhneX2yys49oAHF6K9Dx9FxNWw3LdsqMm0dIqKxXdX6pQmN0tWhwd Ly/6aKnyDjeukNsQyJpU3xynZRb1jCHaSK8x5Yhjdqb0O8HG6cYOgi3YwdTj0IHF1O8i s4AZIctYAJakPInxi3gbELL1it/QuJCMf+Lwx+M2Sugrp9zMwvJLZdUtd7uYX0Zz+P4O fdWA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=gf3et7NMogMa3GxrVzfWDUhA0Gf4M4MZO2uOQLQ8/NY=; fh=TgsdcG+EnP0bZGRdmPJBfZxaEjhDIWRwATd+8h9YUAE=; b=nI9Mp9nzEtXRvyLnHWFd7Cx23QW8N03EpRPrlWPdZDkj/4/Q5awIYp/Tzx0TQJM+Ov yWW2ZcY8NI8qDVsnj7Si6z3VsanU7EfiCVjyMO1RKEQBpX6KtiiB4/1dBsaBITg0kKuH Oq/qib3llWujXBf/IJM4/SbPCDAH4Hmo0A0Sx/utXEu3muvj+66p1RnIE9w14micEhKh 775+84LlDzJAIXTi3DeVYI1f2yBRMnP6O3RXMpbggAcPsHC3+CVpkowcWJuVR1ficor0 YvHZVCWqSCiZWkzIPb8foPPI91URFs1Ozf/jNZs5sPTJiwBRNCwk7DMMypEgYZsYn+4o SUbw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-199088-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199088-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31c62eabsi3804936a12.286.2024.06.03.05.13.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 05:13:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199088-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-199088-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199088-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C0B751F2619F for ; Mon, 3 Jun 2024 12:12:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E445128834; Mon, 3 Jun 2024 12:12:49 +0000 (UTC) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 489668665A for ; Mon, 3 Jun 2024 12:12:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717416768; cv=none; b=OdXBKfOYgdsMgaePct3WzgDs1oYWBcJ9mz3i5G5YDyLlCxwojvP+nhRd6EQ+1hXiwbZXY9ODgdQKXhl07G51D3qNSRKsrj4lseJvBmf3i1s2NC86cO+44TT8ebczvdn+vpcWeaz7Z6+PzENoKKRexD7BqMc3ubr/AleYq01VMG0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717416768; c=relaxed/simple; bh=AvUWYGDHtuHLcncmswdVuG69zTNb7cxVXEL5p2+4Zig=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=rbdXIUCmgqJWTUr6RIVCCtzTyByrK72IiAd3pG43HTwbDLZzAJfP/8TvAOWNty44WrPeqGtl5sbcqSSdnWjMMqzWoqeD5Nyg3V4oXozGzJWVQuofSGJbMOsX48akpXXDF5OLwmF1ZubGyvZmpiu/jDffvogoGFhP7CpkxhXOVqc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.48]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4VtCDF1WGRzmXVV; Mon, 3 Jun 2024 20:08:13 +0800 (CST) Received: from dggpeml500023.china.huawei.com (unknown [7.185.36.114]) by mail.maildlp.com (Postfix) with ESMTPS id 6B911180060; Mon, 3 Jun 2024 20:12:43 +0800 (CST) Received: from hulk-vt.huawei.com (10.67.174.26) by dggpeml500023.china.huawei.com (7.185.36.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Mon, 3 Jun 2024 20:12:43 +0800 From: Xiu Jianfeng To: , CC: , Subject: [PATCH -next 0/3] mm/hugetlb_cgroup: rework on cftypes Date: Mon, 3 Jun 2024 12:05:03 +0000 Message-ID: <20240603120506.1837322-1-xiujianfeng@huawei.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpeml500023.china.huawei.com (7.185.36.114) Hi, This patchset provides an intuitive view of the control files through static templates of cftypes, improve the readability of the code. Xiu Jianfeng (3): mm/hugetlb_cgroup: identify the legacy using cgroup_subsys_on_dfl() mm/hugetlb_cgroup: prepare cftypes based on template mm/hugetlb_cgroup: switch to the new cftypes include/linux/hugetlb.h | 5 - mm/hugetlb_cgroup.c | 303 ++++++++++++++++++++++------------------ 2 files changed, 165 insertions(+), 143 deletions(-) -- 2.34.1