* + mm-damon-improve-damon_new_region-strategy-fix.patch added to mm-unstable branch
@ 2022-09-13 22:09 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-09-13 22:09 UTC (permalink / raw)
To: mm-commits, sj, set_pte_at, akpm
The patch titled
Subject: mm/damon: creating kmem cache for damon regions by KMEM_CACHE()
has been added to the -mm mm-unstable branch. Its filename is
mm-damon-improve-damon_new_region-strategy-fix.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-damon-improve-damon_new_region-strategy-fix.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Dawei Li <set_pte_at@outlook.com>
Subject: mm/damon: creating kmem cache for damon regions by KMEM_CACHE()
Date: Wed, 14 Sep 2022 00:21:58 +0800
Damon regions are dynamic objects which can be created and destroyed
frequently, a dedicated slab cache is created by KMEM_CACHE(), as
suggested by akpm.
Link: https://lkml.kernel.org/r/Message-ID:
Signed-off-by: Dawei Li <set_pte_at@outlook.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/damon/core.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- a/mm/damon/core.c~mm-damon-improve-damon_new_region-strategy-fix
+++ a/mm/damon/core.c
@@ -1289,8 +1289,7 @@ bool damon_find_biggest_system_ram(unsig
static int __init damon_init(void)
{
- damon_region_cache = kmem_cache_create("damon_region_cache", sizeof(struct damon_region),
- 0, 0, NULL);
+ damon_region_cache = KMEM_CACHE(damon_region, 0);
if (unlikely(!damon_region_cache)) {
pr_err("creating damon_region_cache fails\n");
return -ENOMEM;
_
Patches currently in -mm which might be from set_pte_at@outlook.com are
mm-damon-improve-damon_new_region-strategy.patch
mm-damon-improve-damon_new_region-strategy-fix.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-13 22:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-13 22:09 + mm-damon-improve-damon_new_region-strategy-fix.patch added to mm-unstable branch Andrew Morton
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.