]> www.infradead.org Git - users/willy/xarray.git/commit
include/linux/mmzone.h: clean up watermark accessors
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 1 Aug 2024 23:50:05 +0000 (16:50 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 2 Sep 2024 03:25:59 +0000 (20:25 -0700)
commit620943d7ee69070df8844235d58843af48ac70e2
tree5be773d54e24d89c57d966f4dcf446975ee32683
parent528afe6b9605dee42798c78deadba62e02e89d0f
include/linux/mmzone.h: clean up watermark accessors

- we have a helper wmark_pages().  Teach min_wmark_pages(),
  low_wmark_pages(), high_wmark_pages() and promo_wmark_pages() to use
  it instead of open-coding its implementation.

- there's no reason to implement all these things as macros.  Redo them
  in C.

Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Kaiyang Zhao <kaiyang2@cs.cmu.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mmzone.h