mm/vmscan: define macros for refaults in struct lruvec
authorYang Yang <yang.yang29@zte.com.cn>
Mon, 8 Aug 2022 00:56:45 +0000 (00:56 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 Sep 2022 03:25:49 +0000 (20:25 -0700)
commite9c2dbc8bf71a5039604a1dc45b10f24a2098f3b
tree67ff96241881ed6ab53e88c2fbf40b9f7157dfb8
parent4a7e922587d2ea19278a6355dcb52043e47adbac
mm/vmscan: define macros for refaults in struct lruvec

The magic number 0 and 1 are used in several places in vmscan.c.
Define macros for them to improve code readability.

Link: https://lkml.kernel.org/r/20220808005644.1721066-1-yang.yang29@zte.com.cn
Signed-off-by: Yang Yang <yang.yang29@zte.com.cn>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mmzone.h
mm/vmscan.c