diff options
author | T.J. Alumbaugh <talumbau@google.com> | 2023-01-18 01:18:21 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-02-03 07:33:26 +0100 |
commit | 7b8144e63d84716f16a1b929e0c7e03ae5c4d5c1 (patch) | |
tree | 2fae6ecc7f9c29d6654fbffe929d53147c355010 /mm/vmscan.c | |
parent | mm: move KMEMLEAK's Kconfig items from lib to mm (diff) | |
download | linux-7b8144e63d84716f16a1b929e0c7e03ae5c4d5c1.tar.xz linux-7b8144e63d84716f16a1b929e0c7e03ae5c4d5c1.zip |
mm: multi-gen LRU: section for working set protection
Patch series "mm: multi-gen LRU: improve".
This patch series improves a few MGLRU functions, collects related
functions, and adds additional documentation.
This patch (of 7):
Add a section for working set protection in the code and the design doc.
The admin doc already contains its usage.
Link: https://lkml.kernel.org/r/20230118001827.1040870-1-talumbau@google.com
Link: https://lkml.kernel.org/r/20230118001827.1040870-2-talumbau@google.com
Signed-off-by: T.J. Alumbaugh <talumbau@google.com>
Cc: Yu Zhao <yuzhao@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r-- | mm/vmscan.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 394ff4962cbc..a741765896b6 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -4475,6 +4475,10 @@ done: return true; } +/****************************************************************************** + * working set protection + ******************************************************************************/ + static bool lruvec_is_sizable(struct lruvec *lruvec, struct scan_control *sc) { int gen, type, zone; |