Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756428Ab3C1Oak (ORCPT ); Thu, 28 Mar 2013 10:30:40 -0400 Received: from mga01.intel.com ([192.55.52.88]:48889 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756117Ab3C1Oaj (ORCPT ); Thu, 28 Mar 2013 10:30:39 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.84,925,1355126400"; d="scan'208";a="313191082" From: "Kirill A. Shutemov" To: Dave Cc: "Kirill A. Shutemov" , Andrea Arcangeli , Andrew Morton , Al Viro , Hugh Dickins , Wu Fengguang , Jan Kara , Mel Gorman , linux-mm@kvack.org, Andi Kleen , Matthew Wilcox , "Kirill A. Shutemov" , Hillf Danton , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <514CA05D.6030302@sr71.net> References: <1363283435-7666-1-git-send-email-kirill.shutemov@linux.intel.com> <1363283435-7666-17-git-send-email-kirill.shutemov@linux.intel.com> <514CA05D.6030302@sr71.net> Subject: Re: [PATCHv2, RFC 16/30] thp: handle file pages in split_huge_page() Content-Transfer-Encoding: 7bit Message-Id: <20130328143227.61B0CE0085@blue.fi.intel.com> Date: Thu, 28 Mar 2013 16:32:27 +0200 (EET) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 799 Lines: 26 Dave wrote: > On 03/14/2013 10:50 AM, Kirill A. Shutemov wrote: > > +static int split_anon_huge_page(struct page *page) > > { > > struct anon_vma *anon_vma; > > int ret = 1; > > > > - BUG_ON(is_huge_zero_pfn(page_to_pfn(page))); > > - BUG_ON(!PageAnon(page)); > > Did you really mean to kill these BUG_ON()s? They still look relevant > to me. The zero page BUG_ON() is moved to new split_huge_page(). !PageAnon(page) we now can handle. Note: nobody should call split_anon_huge_page() directly, only split_huge_page(). -- Kirill A. Shutemov -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/