Re: [PATCH v2 1/2] mm: create promo_wmark_pages and clean up open-coded sites

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 01, 2024 at 05:03:02PM -0700, Andrew Morton wrote:
> On Thu,  1 Aug 2024 23:25:47 +0000 kaiyang2@xxxxxxxxxx wrote:
> 
> > Define promo_wmark_pages and convert current call sites of wmark_pages
> > with fixed WMARK_PROMO to using it instead.
> 
> Fair enough.  I did a thing.
> 
> From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> Subject: include/linux/mmzone.h: clean up watermark accessors
> Date: Thu Aug  1 04:50:05 PM PDT 2024
> 
> - 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.
> 
> Cc: Johannes Weiner <hannes@xxxxxxxxxxx>
> Cc: Kaiyang Zhao <kaiyang2@xxxxxxxxxx>
> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>

Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux