mm: move zone watermark accesses behind an accessor
This is a preparation patch only, no functional change. Link: http://lkml.kernel.org/r/20181123114528.28802-3-mgorman@techsingularity.net Signed-off-by: Mel Gorman <mgorman@techsingularity.net> Acked-by: Vlastimil Babka <vbabka@suse.cz> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: David Rientjes <rientjes@google.com> Cc: Michal Hocko <mhocko@kernel.org> Cc: Zi Yan <zi.yan@cs.rutgers.edu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
6bb154504f
commit
a921444382
@@ -269,9 +269,10 @@ enum zone_watermarks {
|
||||
NR_WMARK
|
||||
};
|
||||
|
||||
#define min_wmark_pages(z) (z->watermark[WMARK_MIN])
|
||||
#define low_wmark_pages(z) (z->watermark[WMARK_LOW])
|
||||
#define high_wmark_pages(z) (z->watermark[WMARK_HIGH])
|
||||
#define min_wmark_pages(z) (z->_watermark[WMARK_MIN])
|
||||
#define low_wmark_pages(z) (z->_watermark[WMARK_LOW])
|
||||
#define high_wmark_pages(z) (z->_watermark[WMARK_HIGH])
|
||||
#define wmark_pages(z, i) (z->_watermark[i])
|
||||
|
||||
struct per_cpu_pages {
|
||||
int count; /* number of pages in the list */
|
||||
@@ -362,7 +363,7 @@ struct zone {
|
||||
/* Read-mostly fields */
|
||||
|
||||
/* zone watermarks, access with *_wmark_pages(zone) macros */
|
||||
unsigned long watermark[NR_WMARK];
|
||||
unsigned long _watermark[NR_WMARK];
|
||||
|
||||
unsigned long nr_reserved_highatomic;
|
||||
|
||||
|
Reference in New Issue
Block a user