From: Yosry Ahmed <yosryahmed@google.com>
To: Usama Arif <usamaarif642@gmail.com>
Cc: akpm@linux-foundation.org, hannes@cmpxchg.org, nphamcs@gmail.com,
chengming.zhou@linux.dev, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, kernel-team@meta.com
Subject: Re: [PATCH v2 1/1] selftests: cgroup: remove redundant addition of memory controller
Date: Thu, 2 May 2024 19:06:50 -0700 [thread overview]
Message-ID: <CAJD7tkbgknhot8Kz9jpF=0z1OHiLH5s3PfmbHd=TetrK7PtC6w@mail.gmail.com> (raw)
In-Reply-To: <20240502200529.4193651-2-usamaarif642@gmail.com>
On Thu, May 2, 2024 at 1:05 PM Usama Arif <usamaarif642@gmail.com> wrote:
>
> Memory controller is already added in main which invokes
> the test, hence this does not need to be done in test_no_kmem_bypass.
nit: The memory controller is "enabled", not added. Same for the subject line.
>
> Signed-off-by: Usama Arif <usamaarif642@gmail.com>
Acked-by: Yosry Ahmed <yosryahmed@google.com>
> ---
> tools/testing/selftests/cgroup/test_zswap.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/tools/testing/selftests/cgroup/test_zswap.c b/tools/testing/selftests/cgroup/test_zswap.c
> index cd864ab825d0..19ac29c533e0 100644
> --- a/tools/testing/selftests/cgroup/test_zswap.c
> +++ b/tools/testing/selftests/cgroup/test_zswap.c
> @@ -485,8 +485,6 @@ static int test_no_kmem_bypass(const char *root)
> trigger_allocation_size = sys_info.totalram / 20;
>
> /* Set up test memcg */
> - if (cg_write(root, "cgroup.subtree_control", "+memory"))
> - goto out;
> test_group = cg_name(root, "kmem_bypass_test");
> if (!test_group)
> goto out;
> --
> 2.43.0
>
next prev parent reply other threads:[~2024-05-03 2:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-02 20:04 [PATCH v2 0/1] " Usama Arif
2024-05-02 20:04 ` [PATCH v2 1/1] selftests: " Usama Arif
2024-05-03 2:06 ` Yosry Ahmed [this message]
2024-05-03 2:09 ` [PATCH v2 0/1] " Yosry Ahmed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJD7tkbgknhot8Kz9jpF=0z1OHiLH5s3PfmbHd=TetrK7PtC6w@mail.gmail.com' \
--to=yosryahmed@google.com \
--cc=akpm@linux-foundation.org \
--cc=chengming.zhou@linux.dev \
--cc=hannes@cmpxchg.org \
--cc=kernel-team@meta.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=nphamcs@gmail.com \
--cc=usamaarif642@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox