From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,shakeel.butt@linux.dev,roman.gushchin@linux.dev,muchun.song@linux.dev,mhocko@kernel.org,hannes@cmpxchg.org,nichen@iscas.ac.cn,akpm@linux-foundation.org
Subject: [merged mm-stable] mm-memcontrol-remove-unnecessary-null-check-before-free_percpu.patch removed from -mm tree
Date: Sun, 11 May 2025 17:52:29 -0700 [thread overview]
Message-ID: <20250512005229.923D3C4CEE4@smtp.kernel.org> (raw)
The quilt patch titled
Subject: mm: memcontrol: remove unnecessary NULL check before free_percpu()
has been removed from the -mm tree. Its filename was
mm-memcontrol-remove-unnecessary-null-check-before-free_percpu.patch
This patch was dropped because it was merged into the mm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Chen Ni <nichen@iscas.ac.cn>
Subject: mm: memcontrol: remove unnecessary NULL check before free_percpu()
Date: Thu, 17 Apr 2025 16:43:30 +0800
free_percpu() checks for NULL pointers internally. Remove unneeded NULL
check here.
Link: https://lkml.kernel.org/r/20250417084330.937380-1-nichen@iscas.ac.cn
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/memcontrol-v1.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- a/mm/memcontrol-v1.c~mm-memcontrol-remove-unnecessary-null-check-before-free_percpu
+++ a/mm/memcontrol-v1.c
@@ -2198,8 +2198,7 @@ bool memcg1_alloc_events(struct mem_cgro
void memcg1_free_events(struct mem_cgroup *memcg)
{
- if (memcg->events_percpu)
- free_percpu(memcg->events_percpu);
+ free_percpu(memcg->events_percpu);
}
static int __init memcg1_init(void)
_
Patches currently in -mm which might be from nichen@iscas.ac.cn are
ocfs2-remove-unnecessary-null-check-before-unregister_sysctl_table.patch
reply other threads:[~2025-05-12 0:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20250512005229.923D3C4CEE4@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=hannes@cmpxchg.org \
--cc=mhocko@kernel.org \
--cc=mm-commits@vger.kernel.org \
--cc=muchun.song@linux.dev \
--cc=nichen@iscas.ac.cn \
--cc=roman.gushchin@linux.dev \
--cc=shakeel.butt@linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.