summaryrefslogtreecommitdiff
path: root/mm/vmscan.c
diff options
context:
space:
mode:
authorT.J. Alumbaugh <talumbau@google.com>2023-05-22 11:20:55 +0000
committerAndrew Morton <akpm@linux-foundation.org>2023-06-09 16:25:39 -0700
commit0285762c6f161c3a93ffc75ba278aad21719460a (patch)
tree1c2babb611d7022f651c807db2fdfced09e4ade4 /mm/vmscan.c
parent19ab365762c6cc39dfdee9e13ab0d12fe4b5540d (diff)
downloadlwn-0285762c6f161c3a93ffc75ba278aad21719460a.tar.gz
lwn-0285762c6f161c3a93ffc75ba278aad21719460a.zip
mm: multi-gen LRU: use macro for bitmap
Use DECLARE_BITMAP macro when possible. Link: https://lkml.kernel.org/r/20230522112058.2965866-1-talumbau@google.com Signed-off-by: T.J. Alumbaugh <talumbau@google.com> Reviewed-by: David Hildenbrand <david@redhat.com> Reviewed-by: Yuanchu Xie <yuanchu@google.com> Cc: Yu Zhao <yuzhao@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r--mm/vmscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index df7e52b522ec..cafb933d609f 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -4144,7 +4144,7 @@ static void walk_pmd_range(pud_t *pud, unsigned long start, unsigned long end,
unsigned long next;
unsigned long addr;
struct vm_area_struct *vma;
- unsigned long bitmap[BITS_TO_LONGS(MIN_LRU_BATCH)];
+ DECLARE_BITMAP(bitmap, MIN_LRU_BATCH);
unsigned long first = -1;
struct lru_gen_mm_walk *walk = args->private;