Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752726Ab3COCet (ORCPT ); Thu, 14 Mar 2013 22:34:49 -0400 Received: from mail-ob0-f170.google.com ([209.85.214.170]:38621 "EHLO mail-ob0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751643Ab3COCes (ORCPT ); Thu, 14 Mar 2013 22:34:48 -0400 MIME-Version: 1.0 In-Reply-To: <1363283435-7666-14-git-send-email-kirill.shutemov@linux.intel.com> References: <1363283435-7666-1-git-send-email-kirill.shutemov@linux.intel.com> <1363283435-7666-14-git-send-email-kirill.shutemov@linux.intel.com> Date: Fri, 15 Mar 2013 10:34:47 +0800 Message-ID: Subject: Re: [PATCHv2, RFC 13/30] thp, mm: implement grab_cache_huge_page_write_begin() From: Hillf Danton To: "Kirill A. Shutemov" Cc: 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" , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 761 Lines: 21 On Fri, Mar 15, 2013 at 1:50 AM, Kirill A. Shutemov wrote: > +#ifdef CONFIG_TRANSPARENT_HUGEPAGE > +struct page *grab_cache_huge_page_write_begin(struct address_space *mapping, > + pgoff_t index, unsigned flags); > +#else > +static inline struct page *grab_cache_huge_page_write_begin( > + struct address_space *mapping, pgoff_t index, unsigned flags) > +{ build bug? > + return NULL; > +} > +#endif > btw, how about grab_thp_write_begin? -- 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/