]> www.infradead.org Git - users/jedix/linux-maple.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>
Sat, 17 Aug 2024 00:52:49 +0000 (17:52 -0700)
commit149342a2d3776e15cd758ba330e3bbfee060ae6a
tree0d5b77ce65c79c6fb1492b263d50feb65112a87a
parent37f9e956b1cd95cf5418851baa4870b7706b2d99
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