]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm/damon/core: remove per-scheme region priority histogram buffer
authorSeongJae Park <sj@kernel.org>
Mon, 26 Aug 2024 04:23:22 +0000 (21:23 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 9 Sep 2024 23:39:00 +0000 (16:39 -0700)
Nobody is reading from or writing to the per-scheme region priorities
histogram buffer.  It is only wasting memory.  Remove it.

Link: https://lkml.kernel.org/r/20240826042323.87025-4-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/damon.h

index 60cb8eada3d69db4f60eb8a4d912365a5491abbe..a67f2c4940e94dbaf1f26a96119891cac59894bb 100644 (file)
@@ -233,7 +233,6 @@ struct damos_quota {
        unsigned long charge_addr_from;
 
        /* For prioritization */
-       unsigned long histogram[DAMOS_MAX_SCORE + 1];
        unsigned int min_score;
 
        /* For feedback loop */