From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753463AbbHRQFf (ORCPT ); Tue, 18 Aug 2015 12:05:35 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:37026 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752591AbbHRQFd (ORCPT ); Tue, 18 Aug 2015 12:05:33 -0400 Date: Tue, 18 Aug 2015 18:05:31 +0200 From: Michal Hocko To: "Kirill A. Shutemov" Cc: 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: <20150818160530.GM5033@dhcp22.suse.cz> References: <1439824145-25397-1-git-send-email-kirill.shutemov@linux.intel.com> <1439824145-25397-4-git-send-email-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1439824145-25397-4-git-send-email-kirill.shutemov@linux.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Michal Hocko SUSE Labs