diff options
author | Yu Zhao <yuzhao@google.com> | 2020-10-16 05:09:55 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-10-16 20:11:19 +0200 |
commit | ed0173733dd468883198c3136284394320b8fad6 (patch) | |
tree | 884c0780ce24a2f6ecb679c259ab688b5445f8a2 /mm | |
parent | mm/highmem.c: clean up endif comments (diff) | |
download | linux-ed0173733dd468883198c3136284394320b8fad6.tar.xz linux-ed0173733dd468883198c3136284394320b8fad6.zip |
mm: use self-explanatory macros rather than "2"
Signed-off-by: Yu Zhao <yuzhao@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Alex Shi <alex.shi@linux.alibaba.com>
Link: http://lkml.kernel.org/r/20200831175042.3527153-2-yuzhao@google.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/vmscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index fc4dee9b91f8..1b8f0e059767 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2239,7 +2239,7 @@ static void get_scan_count(struct lruvec *lruvec, struct scan_control *sc, struct mem_cgroup *memcg = lruvec_memcg(lruvec); unsigned long anon_cost, file_cost, total_cost; int swappiness = mem_cgroup_swappiness(memcg); - u64 fraction[2]; + u64 fraction[ANON_AND_FILE]; u64 denominator = 0; /* gcc */ enum scan_balance scan_balance; unsigned long ap, fp; |