[PATCH] mm: convert totalram_pages, totalhigh_pages and managed_pages to atomic.
arunks at codeaurora.org
Mon Oct 22 21:48:26 PDT 2018
On 2018-10-23 09:45, Joe Perches wrote:
> On Mon, 2018-10-22 at 22:53 +0530, Arun KS wrote:
>> Remove managed_page_count_lock spinlock and instead use atomic
> Perhaps better to define and use macros for the accesses
> instead of specific uses of atomic_long_<inc/dec/read>
> Something like:
> #define totalram_pages() (unsigned
> #define totalram_pages_inc() (unsigned
> #define totalram_pages_dec() (unsigned
That sounds like a nice idea.
More information about the kexec