projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0057db4
)
mm: list_lru: remove unused macro list_lru_init_key()
author
Haifeng Xu
<haifeng.xu@shopee.com>
Thu, 28 Dec 2023 06:27:15 +0000
(06:27 +0000)
committer
Andrew Morton
<akpm@linux-foundation.org>
Thu, 22 Feb 2024 00:00:02 +0000
(16:00 -0800)
list_lru_init_key() isn't used by anyone, remove it to clean up.
Link:
https://lkml.kernel.org/r/20231228062715.338672-2-haifeng.xu@shopee.com
Signed-off-by: Haifeng Xu <haifeng.xu@shopee.com>
Acked-by: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Shakeel Butt <shakeelb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/list_lru.h
patch
|
blob
|
history
diff --git
a/include/linux/list_lru.h
b/include/linux/list_lru.h
index 7675a48a0701085ba4491070e614c9cc9ef23cdf..c679e6b293c4c49b67ca33a4fc9568c7bb67c3e2 100644
(file)
--- a/
include/linux/list_lru.h
+++ b/
include/linux/list_lru.h
@@
-62,8
+62,6
@@
int __list_lru_init(struct list_lru *lru, bool memcg_aware,
#define list_lru_init(lru) \
__list_lru_init((lru), false, NULL, NULL)
-#define list_lru_init_key(lru, key) \
- __list_lru_init((lru), false, (key), NULL)
#define list_lru_init_memcg(lru, shrinker) \
__list_lru_init((lru), true, NULL, shrinker)