linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
  • * Re: [PATCH] mm: convert totalram_pages, totalhigh_pages and managed_pages to atomic.
           [not found] ` <c57bcc584b3700c483b0311881ec3ae8786f88b1.camel@perches.com>
           [not found]   ` <c57bcc584b3700c483b0311881ec3ae8786f88b1.camel-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org>
    @ 2018-10-23  5:11   ` Konstantin Khlebnikov
      2018-10-23 20:04     ` Kees Cook
      1 sibling, 1 reply; 17+ messages in thread
    From: Konstantin Khlebnikov @ 2018-10-23  5:11 UTC (permalink / raw)
      To: Joe Perches, Arun KS, linux-kernel, linux-mm, Minchan Kim,
    	Michal Hocko, Arun Sudhilal, Greg Kroah-Hartman, Andrew Morton
    
    On 23.10.2018 7:15, 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
     >> variables.
     >
     > 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 long)atomic_long_read(&_totalram_pages)
    
    or proper static inline
    this code isn't so low level for breaking include dependencies with macro
    
     > #define totalram_pages_inc()	(unsigned long)atomic_long_inc(&_totalram_pages)
     > #define totalram_pages_dec()	(unsigned long)atomic_long_dec(&_totalram_pages)
    
    these are void
    
    
    conversion zone->managed_pages should be split into separate patch
    
    
    [dropped bloated cc - my server rejects this mess]
    
    ^ permalink raw reply	[flat|nested] 17+ messages in thread
  • [parent not found: <1540229092-25207-1-git-send-email-arunks-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>]

  • end of thread, other threads:[~2018-11-22  1:33 UTC | newest]
    
    Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
    -- links below jump to the message on this page --
         [not found] <1540229092-25207-1-git-send-email-arunks@codeaurora.org>
         [not found] ` <c57bcc584b3700c483b0311881ec3ae8786f88b1.camel@perches.com>
         [not found]   ` <c57bcc584b3700c483b0311881ec3ae8786f88b1.camel-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org>
    2018-10-23  4:48     ` [PATCH] mm: convert totalram_pages, totalhigh_pages and managed_pages to atomic Arun KS
    2018-10-23  5:11   ` Konstantin Khlebnikov
    2018-10-23 20:04     ` Kees Cook
    2018-10-24  5:17       ` Arun KS
    2018-10-24  6:15         ` Michal Hocko
    2018-10-24  6:26           ` Joe Perches
    2018-10-24  8:23             ` Michal Hocko
    2018-10-24  8:39               ` Joe Perches
    2018-10-25  9:21                 ` Michal Hocko
         [not found] ` <1540229092-25207-1-git-send-email-arunks-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
    2018-10-22 18:11   ` Michal Hocko
         [not found]     ` <20181022181122.GK18839-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
    2018-10-23  4:46       ` Arun Sudhilal
    2018-10-23  5:33         ` Michal Hocko
    2018-10-23  6:13           ` Julia Lawall
    2018-10-23  7:11             ` Arun Sudhilal
    2018-10-25  5:31             ` Arun KS
    2018-10-23  5:37   ` Huang, Ying
    2018-11-22  1:33   ` Guo Ren
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox