Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp124042iof; Sun, 5 Jun 2022 23:05:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNG9GNsd2eAQbfjVptQy+mZFormn8sZ+yapT/QaTptMuHltDKo2b+AEgpnM4gBR5/tXcVA X-Received: by 2002:a63:d57:0:b0:3fd:ac2b:75aa with SMTP id 23-20020a630d57000000b003fdac2b75aamr4409864pgn.533.1654495506438; Sun, 05 Jun 2022 23:05:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654495506; cv=none; d=google.com; s=arc-20160816; b=CpdLL0ggTMjaBXtuYIaqsZicWYrfEqkTfzSckyQPHASig6uILyp23B2bawqukmvoip yjlr/O4N5pAvhqaq7Jas4p7AXYbbLWYIRe6N3uIQH7U2AntWV4H15djcRPUum5v+9voH 7LbrN2a6QLOAsSs4SK5vIQHsdRN2hxffUznEw1gCTYpEzPooDGHumLtRuN7RCctYFf36 TXhrXio0Q4+NOd6pM+sJCDXB+4V1S1bEwNtxZjpPX0hdbPlypLZtEE5x6XGzEt34E2Hw POgFHbHCD/Os/IcSsNEwhFBCLTZzQE6iIeZyx/v7o2wUIlusD14Fq7nRMTC+85rL8umq 4aTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZMC0JMDJpU3Ea9On6JN2DLeBQ12wi64TMeGJm440bio=; b=OpQA/DKzpbWZMMqKgf0PHgn/KsLsQixhZQHWFlQeVD4QZ8pNZ58MMO7nD7y7aHRDQY lQ0EuvbtPVfOCAFgCinLoULbc/UsHxcSIDYB35m3CHQoZltD6r1bnSsjbP4Ea8Yy5IIq b5KAX7sgJ4He2qCMCApyzvBdyswPcbwhvv/xXFYp3xmyXtgIDx42qpuAIrFKwGyNOkBh mgdB7uudOU5UL4oStf5jli5CEzLbnCWh9gNnjGk4Y7d9YQd93rgGDenjsrqBZ9SAYMn1 f/vA/NzilE/EuDzPTxiL0AcXvtcN4IfH7rJhJLfuBWNYUqMQ2wC0zghpzElExGWrpELg djYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=LAGghuKh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c10-20020a6566ca000000b003fc7f8ccf26si21107840pgw.89.2022.06.05.23.05.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 23:05:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=LAGghuKh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 91A12CBD64; Sun, 5 Jun 2022 21:54:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239214AbiFBVAP (ORCPT + 99 others); Thu, 2 Jun 2022 17:00:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239122AbiFBVAN (ORCPT ); Thu, 2 Jun 2022 17:00:13 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8412F34BB6 for ; Thu, 2 Jun 2022 14:00:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ZMC0JMDJpU3Ea9On6JN2DLeBQ12wi64TMeGJm440bio=; b=LAGghuKhpFoBNIGZFIztX+f9Ct foa5z/E10Sydt2cFotdonoOIEyichjxplkMFoJR4Zh0cVptSTtlnkVnzwpLUvKqyl80ZgMDuNkk8T AHjt6nFNx+MGQi6tfrecRdCs9rjQvqh86Wynas+Dzig2h6MGksLjv8pe6nkDHz42r6tXjI65AMSLw /4O0CMEfCWrhKWGX9MuGpwkjhJiTeus/MBwBIMKobPjnvF0chObg9W/kgsW8OGrFr16e4WzO/o6m/ tEwJ0LpQIhHr27Uwss4XxPY0famMei6ZHdDivwiBOlTy3RbVRy4PM3lJftVICipyoPgax2Kn6ce+D Vjxrn2kg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwrvG-007QUZ-FK; Thu, 02 Jun 2022 21:00:02 +0000 Date: Thu, 2 Jun 2022 22:00:02 +0100 From: Matthew Wilcox To: Yang Shi Cc: vbabka@suse.cz, kirill.shutemov@linux.intel.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [v2 PATCH 5/7] mm: thp: kill transparent_hugepage_active() Message-ID: References: <20220602182159.248387-1-shy828301@gmail.com> <20220602182159.248387-6-shy828301@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220602182159.248387-6-shy828301@gmail.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 02, 2022 at 11:21:57AM -0700, Yang Shi wrote: > diff --git a/include/linux/huge_mm.h b/include/linux/huge_mm.h > index 79d5919beb83..f315c70d5256 100644 > --- a/include/linux/huge_mm.h > +++ b/include/linux/huge_mm.h > @@ -209,7 +209,9 @@ static inline bool file_thp_enabled(struct vm_area_struct *vma) > !inode_is_open_for_write(inode) && S_ISREG(inode->i_mode); > } > > -bool transparent_hugepage_active(struct vm_area_struct *vma); > +extern bool hugepage_vma_check(struct vm_area_struct *vma, Please remove the 'extern's. They add no value to function declarations.