Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2451244pxb; Tue, 13 Apr 2021 02:07:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyr3uszXH68LUnMjxbHPqPAJsll5lxHHw3rkRQcOCzqIZfLGVNoXGA8VTpf4Lvq8sodWFqN X-Received: by 2002:a62:1a12:0:b029:248:9023:6aca with SMTP id a18-20020a621a120000b029024890236acamr16689129pfa.5.1618304833015; Tue, 13 Apr 2021 02:07:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618304833; cv=none; d=google.com; s=arc-20160816; b=YicTCdIltJFzY5q7C+y0QKTcJGJ5CCkobGk0zUc7FV1PSLpSs/RDaBczhsT88IHQRa qw/rBWv69xZ73FIbvgiSEV15Ez409w/ZwddyuNX0RluAI8ZdbL5a3l9SIuJe1aXBhwET DLFyTc+Jxd+HioVs1DTR93sNdSP4m3hIrbuppxuGhfR9uUR35kgnX/iP4oVqnXz0n7vk kWLOMPLwHCoYQRWQqkY8MjcPL7ambSXONm8LFWdb7prDH2OkCeCc6/XKef8gJ4IUOLnv wdhLDrqviXK2xmimcMvmg9DhF8qYPmp3fCnPvECyPhXZeQfft5avl8el0R9zQ0vxGW7x HcEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=ty30EBMFobCGhabQdsuq+v2Kg8uUmEONp40/WyUA1q8=; b=jQtG/InNtwtglMvxEMtqJ5gTT0LDQV4E4NYdK/0fhrVkZ/xKRNN5Cq0pHWvJ8SpRs4 pWEsBkUiAGWkxMqTt6UBo230ssleXflxv82+5BjdJ1crn/Yth+3txxJHtWzSDQRysZa9 5lA1AnjxQjbNJW6ytUw4yYZwruxgxe7yOvyDfCGea5p5efioLz3x+3u6wHC6H71b2Dok 01JB595Iu0Bchz9Zw5Z7e9LqZz99XTaqzlCCcfoasJKXu7ilSJ0Z2PEK+MEu8uBwdhR7 noHBcHYvurT0qLaIvj+9gfrvtZe/9nrRWmCQzGgUWfGU/rSLikU7jzgMovHYRg47noWH Z50A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=i8n6+BP4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 18si2531322pjl.82.2021.04.13.02.07.00; Tue, 13 Apr 2021 02:07:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=i8n6+BP4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245215AbhDMG5P (ORCPT + 99 others); Tue, 13 Apr 2021 02:57:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237032AbhDMG5F (ORCPT ); Tue, 13 Apr 2021 02:57:05 -0400 Received: from mail-qv1-xf4a.google.com (mail-qv1-xf4a.google.com [IPv6:2607:f8b0:4864:20::f4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26D6FC061574 for ; Mon, 12 Apr 2021 23:56:46 -0700 (PDT) Received: by mail-qv1-xf4a.google.com with SMTP id gu11so7133331qvb.0 for ; Mon, 12 Apr 2021 23:56:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=ty30EBMFobCGhabQdsuq+v2Kg8uUmEONp40/WyUA1q8=; b=i8n6+BP4XniO7GqYB3njPBeS1g0cajvT/0XeibRC9E79Y2kxVkXGp/HuAtF4IVW6+L /n2Z+ZNUjzYoRG1K8TO2KT7wPH4dB0dBfh+QxjE4pa3hFSlYATFkHsATy+5tXCYxPNI5 icwBWKo7lmwEnXOUHSMAZbfasHoawvCVog/UnTwIW6ATbaU4DRzi4r/NM6Dk8D5iMFw0 uINBgxANuIFFKRfVUOyfzXT7qWKDHKlb5wvR3T/4y2+SRO3Xq0OMidUV+vii8Ijbi9C8 OKDCcdJr7BmAzQtIPAXlE+vxaL8G9raL19q09IcdqKKULLNIy57jVK2xtDVpTIbZE6jh DVMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=ty30EBMFobCGhabQdsuq+v2Kg8uUmEONp40/WyUA1q8=; b=YVzfIBXrv665u9gqpA0aaR8rYQ3ksKwQ6y1pnY3UhRF3H0B9Ey8UftLQ5sEjQSYXf5 4YJG1pSXti7Zr0NjAcVojZxJ3vul55+LG8QsAqvrkxu9kZe9BCPGcZ7CtjYmvAXZMaJS LTzQMVutjT5FccfRztpgbLs4XZyflvf+EfncOMZ0jVl38t1cj4+1gqSFR9l9ghy+Xj2h TuyP9qzN8JVm4XYhKfTX+rAB+yQ+CKmVvhh3Oj8O2I0hVOGKHfv1GT2BxP8lsdodzCri TV4h5qxgSpmrJT5zS82i0VC+Kgi1iQ5lNkeUwKrowIXgTTdj2LkXGChb1hia2Sb2fq/c /0RA== X-Gm-Message-State: AOAM532KBvjkAJqjUGm4z3T6vDFjQzVEl4MdDPqiOTi/Sx/00HV2Sk4T CDYdSIReMsyd3sZTjfEkJQizn1CUbQo= X-Received: from yuzhao.bld.corp.google.com ([2620:15c:183:200:d02d:cccc:9ebe:9fe9]) (user=yuzhao job=sendgmr) by 2002:a05:6214:161:: with SMTP id y1mr13969669qvs.31.1618297005251; Mon, 12 Apr 2021 23:56:45 -0700 (PDT) Date: Tue, 13 Apr 2021 00:56:20 -0600 In-Reply-To: <20210413065633.2782273-1-yuzhao@google.com> Message-Id: <20210413065633.2782273-4-yuzhao@google.com> Mime-Version: 1.0 References: <20210413065633.2782273-1-yuzhao@google.com> X-Mailer: git-send-email 2.31.1.295.g9ea45b61b8-goog Subject: [PATCH v2 03/16] include/linux/huge_mm.h: define is_huge_zero_pmd() if !CONFIG_TRANSPARENT_HUGEPAGE From: Yu Zhao To: linux-mm@kvack.org Cc: Alex Shi , Andi Kleen , Andrew Morton , Benjamin Manes , Dave Chinner , Dave Hansen , Hillf Danton , Jens Axboe , Johannes Weiner , Jonathan Corbet , Joonsoo Kim , Matthew Wilcox , Mel Gorman , Miaohe Lin , Michael Larabel , Michal Hocko , Michel Lespinasse , Rik van Riel , Roman Gushchin , Rong Chen , SeongJae Park , Tim Chen , Vlastimil Babka , Yang Shi , Ying Huang , Zi Yan , linux-kernel@vger.kernel.org, lkp@lists.01.org, page-reclaim@google.com, Yu Zhao Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently is_huge_zero_pmd() only exists when CONFIG_TRANSPARENT_HUGEPAGE=y. This patch adds the function for !CONFIG_TRANSPARENT_HUGEPAGE. Signed-off-by: Yu Zhao --- include/linux/huge_mm.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/huge_mm.h b/include/linux/huge_mm.h index ba973efcd369..0ba7b3f9029c 100644 --- a/include/linux/huge_mm.h +++ b/include/linux/huge_mm.h @@ -443,6 +443,11 @@ static inline bool is_huge_zero_page(struct page *page) return false; } +static inline bool is_huge_zero_pmd(pmd_t pmd) +{ + return false; +} + static inline bool is_huge_zero_pud(pud_t pud) { return false; -- 2.31.1.295.g9ea45b61b8-goog