lkml.org 
[lkml]   [2009]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC mm][PATCH 3/5] counting swap ents per mm
    On Thu, 10 Dec 2009, KAMEZAWA Hiroyuki wrote:

    > Index: mmotm-2.6.32-Dec8/mm/rmap.c
    > ===================================================================
    > --- mmotm-2.6.32-Dec8.orig/mm/rmap.c
    > +++ mmotm-2.6.32-Dec8/mm/rmap.c
    > @@ -814,7 +814,7 @@ int try_to_unmap_one(struct page *page,
    > update_hiwater_rss(mm);
    >
    > if (PageHWPoison(page) && !(flags & TTU_IGNORE_HWPOISON)) {
    > - if (PageAnon(page))
    > + if (PageAnon(page)) /* Not increments swapents counter */
    > dec_mm_counter(mm, MM_ANONPAGES);

    Remove comment. Its not helping.

    Reviewed-by: Christoph Lameter <cl@linux-foundation.org>




    \
     
     \ /
      Last update: 2009-12-10 18:59    [W:3.170 / U:0.104 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site