From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail191.messagelabs.com (mail191.messagelabs.com [216.82.242.19]) by kanga.kvack.org (Postfix) with SMTP id 4317F6B00B1 for ; Fri, 10 Sep 2010 10:43:48 -0400 (EDT) Date: Fri, 10 Sep 2010 16:44:13 +0200 From: Andrea Arcangeli Subject: Re: [PATCH 4/4] hugetlb, rmap: add BUG_ON(!PageLocked) in hugetlb_add_anon_rmap() Message-ID: <20100910144413.GX8925@random.random> References: <1284092586-1179-1-git-send-email-n-horiguchi@ah.jp.nec.com> <1284092586-1179-5-git-send-email-n-horiguchi@ah.jp.nec.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1284092586-1179-5-git-send-email-n-horiguchi@ah.jp.nec.com> Sender: owner-linux-mm@kvack.org To: Naoya Horiguchi Cc: LKML , Hugh Dickins , Christoph Lameter , Linus Torvalds , Andrew Morton , Rik van Riel , Peter Zijlstra , Andi Kleen , linux-mm List-ID: On Fri, Sep 10, 2010 at 01:23:06PM +0900, Naoya Horiguchi wrote: > Confirming page lock is held in hugetlb_add_anon_rmap() may be useful > to detect possible future problems. > > Signed-off-by: Naoya Horiguchi > --- > mm/rmap.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) Acked-by: Andrea Arcangeli It should probably be a VM_BUG_ON like do_page_add_anon_rmap, but given the tiny hugetlbfs userbase it's ok. -- 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