From patchwork Wed May 4 20:07:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 12838473 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D41FCC433F5 for ; Wed, 4 May 2022 20:08:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3C0896B0072; Wed, 4 May 2022 16:08:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 36FD56B0073; Wed, 4 May 2022 16:08:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 238006B0074; Wed, 4 May 2022 16:08:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 140DD6B0072 for ; Wed, 4 May 2022 16:08:10 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id DAEB42180D for ; Wed, 4 May 2022 20:08:09 +0000 (UTC) X-FDA: 79429147098.18.769C6FF Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf23.hostedemail.com (Postfix) with ESMTP id 805A7140089 for ; Wed, 4 May 2022 20:07:59 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 498246155E; Wed, 4 May 2022 20:08:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44497C385A4; Wed, 4 May 2022 20:08:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651694887; bh=FszPMrkUR8iR4oaqeA8GMiDU4Uhf7c3OI7I4qlR7I1o=; h=From:To:Cc:Subject:Date:From; b=UGtRSvRkBhB3r157OJ1djQrrAEH2E0aQKPlJP6FahBcQ9f2HT+DXCRoTgbxKIXZKk +FI5Qx/MDWCvq98QFEs9xUI/ZGD3IyBmdzaRiLZnIfv1SR6vTa6BRnaXmGH1D71a76 OIeaHR1idLsIHr5bvDWyQGynHbNkCX35Ce2/RGvIGTfzBOXPU7ZpdPS8NwZQa6MfrJ CHs+JwP3/QtmyTOZXhr3gRTH/fSCrb1ndbDerSkQWe06xx5TE40JvwIoE947AXswnQ knIpEUJ1pmDt8D7I7NUWbFeqBnAOXbJ2rQIIIBL9nhGTJAjuVcS92HEqnjcEO6jt6S Ygj0tn4miefJg== From: SeongJae Park To: akpm@linux-foundation.org, willy@infradead.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, SeongJae Park Subject: [PATCH for mm-unstable 0/3] Fix build errors due to folio_test_large() misuse Date: Wed, 4 May 2022 20:07:55 +0000 Message-Id: <20220504200758.314478-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 805A7140089 Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=UGtRSvRk; spf=pass (imf23.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org X-Rspam-User: X-Stat-Signature: agthpemk1dzgst8izguj3jaxp5qrukx5 X-HE-Tag: 1651694879-201761 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Several commits on 'mm-unstable' replaces 'PageTransHuge()' with 'folio_test_large()' instead of 'folio_test_transhuge()'. As a result, several build errors occur when 'CONFIG_TRANSPARENT_HUGEPAGE' is unset. This patchset fixes the issues by replacing the check to use 'folio_test_transhuge()'. SeongJae Park (3): mm/vmscan: Use folio_test_transhuge() for THP check mm/shmem: Use folio_test_transhuge() for THP check mm/shmem: Use folio_test_transhuge() for THP check mm/shmem.c | 8 ++++---- mm/vmscan.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-)