diff options
author | Kinsey Ho <kinseyho@google.com> | 2024-02-14 09:05:36 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-02-22 21:24:58 +0300 |
commit | 2d823764fafa6593a87d3192c62e19eec4883d84 (patch) | |
tree | 4fdad5b60450a7854cc131b78ad680b67932f47e /fs/jffs2 | |
parent | 51973cc9e53899e50e47c1e4c2967c3021cb6257 (diff) | |
download | linux-2d823764fafa6593a87d3192c62e19eec4883d84.tar.xz |
mm/mglru: improve reset_mm_stats()
struct lruvec* is already a field of struct lru_gen_mm_walk. Remove the
parameter struct lruvec* into functions that already have access to struct
lru_gen_mm_walk*.
Also, we do not need to handle reset histogram stats when
!should_walk_mmu(). Remove the call to reset_mm_stats() in
iterate_mm_list_nowalk().
Link: https://lkml.kernel.org/r/20240214060538.3524462-4-kinseyho@google.com
Signed-off-by: Kinsey Ho <kinseyho@google.com>
Cc: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Cc: Donet Tom <donettom@linux.vnet.ibm.com>
Cc: Yu Zhao <yuzhao@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/jffs2')
0 files changed, 0 insertions, 0 deletions