From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx117.postini.com [74.125.245.117]) by kanga.kvack.org (Postfix) with SMTP id 580AB6B006E for ; Fri, 28 Sep 2012 09:51:27 -0400 (EDT) Date: Fri, 28 Sep 2012 15:51:14 +0200 From: Andrea Arcangeli Subject: Re: [patch] mm, thp: fix mlock statistics Message-ID: <20120928135114.GB19474@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: David Rientjes Cc: Hugh Dickins , Andrew Morton , Linus Torvalds , Naoya Horiguchi , KAMEZAWA Hiroyuki , Johannes Weiner , Michel Lespinasse , linux-kernel@vger.kernel.org, linux-mm@kvack.org, stable@vger.kernel.org On Wed, Sep 26, 2012 at 07:29:58PM -0700, David Rientjes wrote: > NR_MLOCK is only accounted in single page units: there's no logic to > handle transparent hugepages. This patch checks the appropriate number > of pages to adjust the statistics by so that the correct amount of memory > is reflected. *snip* > Reported-by: Hugh Dickens > Signed-off-by: David Rientjes > --- > mm/internal.h | 3 ++- > mm/mlock.c | 6 ++++-- > mm/page_alloc.c | 2 +- > 3 files changed, 7 insertions(+), 4 deletions(-) Reviewed-by: Andrea Arcangeli Thanks! Andrea -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org