kernel: backport list_count_nodes()
[openwrt/openwrt.git] / target / linux / generic / backport-5.15 / 020-v6.3-25-mm-multi-gen-LRU-shuffle-should_run_aging.patch
index bb5402a3f2a2560f454f28df9e0ea41c19ed3809..391ee6e67cea48ce8a8f3ce12a901e32a65d5e55 100644 (file)
@@ -19,11 +19,9 @@ Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  mm/vmscan.c | 124 ++++++++++++++++++++++++++--------------------------
  1 file changed, 62 insertions(+), 62 deletions(-)
 
-diff --git a/mm/vmscan.c b/mm/vmscan.c
-index 7159436872ba..cb026e2714d7 100644
 --- a/mm/vmscan.c
 +++ b/mm/vmscan.c
-@@ -4183,68 +4183,6 @@ static bool try_to_inc_max_seq(struct lruvec *lruvec, unsigned long max_seq,
+@@ -4183,68 +4183,6 @@ done:
        return true;
  }
  
@@ -92,7 +90,7 @@ index 7159436872ba..cb026e2714d7 100644
  static bool lruvec_is_sizable(struct lruvec *lruvec, struct scan_control *sc)
  {
        int gen, type, zone;
-@@ -4828,6 +4766,68 @@ static int evict_pages(struct lruvec *lruvec, struct scan_control *sc, int swapp
+@@ -4828,6 +4766,68 @@ retry:
        return scanned;
  }
  
@@ -161,6 +159,3 @@ index 7159436872ba..cb026e2714d7 100644
  /*
   * For future optimizations:
   * 1. Defer try_to_inc_max_seq() to workqueues to reduce latency for memcg
--- 
-2.40.0
-