From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753888AbbHRSXE (ORCPT ); Tue, 18 Aug 2015 14:23:04 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:34544 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752701AbbHRSXB (ORCPT ); Tue, 18 Aug 2015 14:23:01 -0400 Date: Tue, 18 Aug 2015 21:22:59 +0300 From: "Kirill A. Shutemov" To: Michal Hocko Cc: "Kirill A. Shutemov" , Andrew Morton , Hugh Dickins , Andrea Arcangeli , Dave Hansen , Vlastimil Babka , Johannes Weiner , David Rientjes , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCHv2 3/4] mm: pack compound_dtor and compound_order into one word in struct page Message-ID: <20150818182259.GB21383@node.dhcp.inet.fi> References: <1439824145-25397-1-git-send-email-kirill.shutemov@linux.intel.com> <1439824145-25397-4-git-send-email-kirill.shutemov@linux.intel.com> <20150818160530.GM5033@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150818160530.GM5033@dhcp22.suse.cz> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 18, 2015 at 06:05:31PM +0200, Michal Hocko wrote: > On Mon 17-08-15 18:09:04, Kirill A. Shutemov wrote: > [...] > > +/* Keep the enum in sync with compound_page_dtors array in mm/page_alloc.c */ > > +enum { > > + NULL_COMPOUND_DTOR, > > + COMPOUND_PAGE_DTOR, > > + HUGETLB_PAGE_DTOR, > > + NR_COMPOUND_DTORS, > > +}; > [...] > > +static void free_compound_page(struct page *page); > > +compound_page_dtor * const compound_page_dtors[] = { > > + NULL, > > + free_compound_page, > > + free_huge_page, > > +}; > > + > > Both need ifdef CONFIG_HUGETLB_PAGE as my compile test batter just found > out. I'll fix that. -- Kirill A. Shutemov