From patchwork Fri Sep 2 02:29:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yafang Shao X-Patchwork-Id: 12963561 Return-Path: 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 E1200ECAAD3 for ; Fri, 2 Sep 2022 02:30:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 69A9380098; Thu, 1 Sep 2022 22:30:14 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 64AE78008D; Thu, 1 Sep 2022 22:30:14 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4767A80098; Thu, 1 Sep 2022 22:30:14 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 3A1BB8008D for ; Thu, 1 Sep 2022 22:30:14 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 1662D120EAF for ; Fri, 2 Sep 2022 02:30:14 +0000 (UTC) X-FDA: 79865565948.21.4684BAD Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by imf14.hostedemail.com (Postfix) with ESMTP id BF1C810002B for ; Fri, 2 Sep 2022 02:30:13 +0000 (UTC) Received: by mail-pg1-f171.google.com with SMTP id x80so816210pgx.0 for ; Thu, 01 Sep 2022 19:30:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=7uI5yxQ2IficxCafBouZLQeDm3f9EVu1uBy3AFKC6gc=; b=OFJXxBSBYOssoMkoywl9EoB3k6QrkEaHd8YL02U+QnpsTC0UA4fodDgpSL5b5LWBLX nLgkHuPVwidqPfsnsj8JHUDLGBuIyEEBczjpRgWekusWdvlQ7O5GLfNXILnfWwkwAPMJ hcJ2ifQutv33yG3kxTre9B7m3UTbVLhx74iQdT6qSkb9YwbhX7EK8Gsn17MRAfi/hNG1 6Svh8N4fpVQKpD4jLnAFBmhHGs6Pbi/lGpjyvsVXTIgrjPlqDpEWOT1O2plNLLZMq3/C Pyiw6ih9zAawcl99mJzJSBR019T2VD/ls6nn2v1UxhwxYmwSSUpvlAAX2eLUKf3JXR6f eZMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=7uI5yxQ2IficxCafBouZLQeDm3f9EVu1uBy3AFKC6gc=; b=UukmcP91bBwoQ7A+py4puNhXarMMTH3dFN+3GzFAUG0TAcGispVh88yhzftQfUy+31 XNijcjx6euZerpvHY0vfZgD0u3oI3ShOe9XkZq7tTBFHLsVtcoKlFjzgN5aa0KsyhbCn nOUlVTCerdJg33947oFsMVylbeKgmygrX9oFvz7aC2x4QPmaoQNmrtr/iQRBe2YlLGUc HOVvF0quTUIcMzaZQC8jAmBbeVVKliWKq7H5xW0RzEycCdJJKlaQ7me0C0UPEaVjIzTk ZTZqst0F3N4NZFlkVS5Hqj308AZ9B17V1cBdClvMm7QhD1hy2DxMlfZ9PvBSS/nRV9oK GKkQ== X-Gm-Message-State: ACgBeo3JK6qxh2swItLXsZE1je1YiiuOL5ayazgDHRwUeg1dRHs2fITG 42J54viUQ2z49CGhWcKiwR0= X-Google-Smtp-Source: AA6agR7KvJ3/nC3lYOZJPIL8xkpq5Mcjsx/aQlho5wzkyPrwzNAvnub08SZ4yh6Sj9fhmkLywjW2qg== X-Received: by 2002:a05:6a02:10e:b0:42a:b42b:5692 with SMTP id bg14-20020a056a02010e00b0042ab42b5692mr28380447pgb.67.1662085812826; Thu, 01 Sep 2022 19:30:12 -0700 (PDT) Received: from vultr.guest ([2001:19f0:6001:50ea:5400:4ff:fe1f:fbe2]) by smtp.gmail.com with ESMTPSA id j4-20020a170902da8400b0017297a6b39dsm269719plx.265.2022.09.01.19.30.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Sep 2022 19:30:12 -0700 (PDT) From: Yafang Shao To: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, hannes@cmpxchg.org, mhocko@kernel.org, roman.gushchin@linux.dev, shakeelb@google.com, songmuchun@bytedance.com, akpm@linux-foundation.org, tj@kernel.org, lizefan.x@bytedance.com Cc: cgroups@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-mm@kvack.org, Yafang Shao , Yosry Ahmed Subject: [PATCH bpf-next v3 01/13] cgroup: Update the comment on cgroup_get_from_fd Date: Fri, 2 Sep 2022 02:29:51 +0000 Message-Id: <20220902023003.47124-2-laoar.shao@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220902023003.47124-1-laoar.shao@gmail.com> References: <20220902023003.47124-1-laoar.shao@gmail.com> MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662085813; 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:in-reply-to:references:references:dkim-signature; bh=7uI5yxQ2IficxCafBouZLQeDm3f9EVu1uBy3AFKC6gc=; b=nETGgn5wxSS/DXJ0J78Kjk8z/8eya4gRbMEiA7+ccY/dUcM3HSF7duPYoiWUEtumoprDjz jpg/1zaYYKZfuFIOzuGeKJAXXOVM34O8WyAfsnPiVD7bOIFhS2yOCsC2PyQ+agysx/Y0gB g2GdOc4EZLMs1tGD0VdXsgUtS/lTttg= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=OFJXxBSB; spf=pass (imf14.hostedemail.com: domain of laoar.shao@gmail.com designates 209.85.215.171 as permitted sender) smtp.mailfrom=laoar.shao@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662085813; a=rsa-sha256; cv=none; b=FjYSTGg2uQ5qI4wrohwMra/viUdYylbsbjntkTjbTxoY5xtY/S+ikYIRug7gFK6uicq1vI dMn37O+LF+9NIe6o2BB+WaqGwlKjXNT2AxZpz4hpbzcKQ6XK/m/m2dC8C4qUYlRCt2TqtJ xE4tyxA3ovRnpIOXbMtLXjWf4DGDlUw= X-Stat-Signature: naf5q179eorrqtr4bo8ea68m3fq8ude9 X-Rspamd-Queue-Id: BF1C810002B Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=OFJXxBSB; spf=pass (imf14.hostedemail.com: domain of laoar.shao@gmail.com designates 209.85.215.171 as permitted sender) smtp.mailfrom=laoar.shao@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspamd-Server: rspam12 X-Rspam-User: X-HE-Tag: 1662085813-509964 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: After commit f3a2aebdd6fb ("cgroup: enable cgroup_get_from_file() on cgroup1") we can open a cgroup1 dir as well. So let's update the comment. Cc: Yosry Ahmed Cc: Hao Luo Cc: Tejun Heo Signed-off-by: Yafang Shao --- kernel/cgroup/cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index 5f4502a..b7d2e55 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -6625,7 +6625,7 @@ struct cgroup *cgroup_get_from_path(const char *path) /** * cgroup_get_from_fd - get a cgroup pointer from a fd - * @fd: fd obtained by open(cgroup2_dir) + * @fd: fd obtained by open(cgroup_dir) * * Find the cgroup from a fd which should be obtained * by opening a cgroup directory. Returns a pointer to the