[lkml]   [2018]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v3 1/4] mm: reference totalram_pages and managed_pages once per function
On 11/8/18 9:23 AM, Arun KS wrote:
> This patch is in preparation to a later patch which converts totalram_pages
> and zone->managed_pages to atomic variables. Please note that re-reading
> the value might lead to a different value and as such it could lead to
> unexpected behavior. There are no known bugs as a result of the current code
> but it is better to prevent from them in principle.

..., which will happen after the atomic conversion in the next patch.

> Signed-off-by: Arun KS <>
> Reviewed-by: Konstantin Khlebnikov <>
> Acked-by: Michal Hocko <>

Acked-by: Vlastimil Babka <>

 \ /
  Last update: 2018-11-08 12:45    [W:0.107 / U:1.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site