Message ID | 20230613201827.9441-2-vishal.moola@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 B317CEB64D7 for <linux-mm@archiver.kernel.org>; Tue, 13 Jun 2023 20:18:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DD3306B0078; Tue, 13 Jun 2023 16:18:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D34796B007B; Tue, 13 Jun 2023 16:18:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C49718E0002; Tue, 13 Jun 2023 16:18:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id B869D6B0078 for <linux-mm@kvack.org>; Tue, 13 Jun 2023 16:18:35 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 8979CAFBFC for <linux-mm@kvack.org>; Tue, 13 Jun 2023 20:18:35 +0000 (UTC) X-FDA: 80898837390.30.211063C Received: from mail-yw1-f179.google.com (mail-yw1-f179.google.com [209.85.128.179]) by imf01.hostedemail.com (Postfix) with ESMTP id A9E6840019 for <linux-mm@kvack.org>; Tue, 13 Jun 2023 20:18:33 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=NnMuaE5f; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf01.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.128.179 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1686687513; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=j2ucc+f0rqtwOxEosVf02SFuSdHsKj1rPS4dOdWYv3M=; b=VdjQ3bF0gWD5bdavxYlaZng89UNufZZf3f+awz0rDBVJSB4nSSFppDJSOAnWDqkKEYL40+ HnqfROlPcqL2ZiQ/upVzFGF61HpKLUCZf9/WkP/47fGWQGM78yr0DsZwB+Ez/OMtqueHqu +/twswr2PrfglcChoJHmlKfQ3uMSeys= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=NnMuaE5f; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf01.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.128.179 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1686687513; a=rsa-sha256; cv=none; b=USTAR1F7AueYRSoYOeh59wONGcTB+MV4vjXj8I/aU4LXk7ZMuvxSFeD8dl5cE+SmmGo6WF VA/pMhp0o6VuT8MIgH7+lP6YdlXhSJyd1RUwq3/OatYnrCF6RrPsH5HQyEntBm8qi7aVkn NEx+dgT5D04tgULowwCQuB32+t1gsuA= Received: by mail-yw1-f179.google.com with SMTP id 00721157ae682-56d0d574964so35687507b3.0 for <linux-mm@kvack.org>; Tue, 13 Jun 2023 13:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686687513; x=1689279513; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=j2ucc+f0rqtwOxEosVf02SFuSdHsKj1rPS4dOdWYv3M=; b=NnMuaE5fk1vnz0fpTjn9UjrZgJHsXMRl+F9w4UFv+tzg5DBYIlhgiytt2snvQ9zSe7 gVKwKEZKKxzSBrmp0fKKFerObVTJVP6JNF5MBYHkHNmOlwnYVV8DyqjmhkTNlKzmNpbs pDD7gCQVreZak+djhqexShCA06em1AFUDv5Y9/+1SgxJYtl5YPM6NiWsRxJG+6xI9Etq KEH+EPITLv3sh/bc+uNUz3LHDQcDdC1dboyu86Fxj8dHSj0tvP9++JRCGcc29XEzPgX9 WPQeLh1tPySTTLmcvLYz3Q242bF+SGdNkd9csYATCx8q/D9Q9DmnHHKYh/besnCgghXg FHnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686687513; x=1689279513; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=j2ucc+f0rqtwOxEosVf02SFuSdHsKj1rPS4dOdWYv3M=; b=RuYYSiNHbBba9SA4apMJwgh0iffrwIpgaK2n6pas360OZ+j1mf+6KzcV8IO6sepAuP 1lLovVFZ3yA6+eexqohIS/zKQf92vL5I1Dbrljkde+mkXE2fTz4laF4DNSyLcXxqfWWb lEaG3RMTe4hIm7Ip/6iAEDQhrNJTzXYSnLOM3C+LDS902t0Z/OOmPKMM0SOy8kfHtd5N bUW1OcgEYmGy0Ujt11RQX0z5fDgLHZt0e44fqYqJjmwKgp1luwCgVtBDRb6LP/ndc0OF mLTwci7fvOZXPCW08DVoH3myafzRK4LMGRANLm2TvzJKHlB9rhGV+oElFGMZZXbN34j4 80hw== X-Gm-Message-State: AC+VfDz1kbzH+W+VLByYzRVdjCBWdfe/H/Rw0qVCM4PBrwQjvvsnF3LF uatHmOQpfvQvA5w9WVTY3GI= X-Google-Smtp-Source: ACHHUZ7BtSiOTdO259Gu+Xg44N7I234cO4JeJar8mQalYc93mB5jKsBmGo1fJk1nVX5c4Ua6Ry7GwQ== X-Received: by 2002:a81:b406:0:b0:56d:495d:d3f6 with SMTP id h6-20020a81b406000000b0056d495dd3f6mr2888725ywi.29.1686687512728; Tue, 13 Jun 2023 13:18:32 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::e]) by smtp.googlemail.com with ESMTPSA id b72-20020a0dd94b000000b0056cea0480c6sm2509985ywe.2.2023.06.13.13.18.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jun 2023 13:18:32 -0700 (PDT) From: "Vishal Moola (Oracle)" <vishal.moola@gmail.com> To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Vishal Moola (Oracle)" <vishal.moola@gmail.com> Subject: [PATCH 1/5] mmzone: Introduce folio_is_zone_movable() Date: Tue, 13 Jun 2023 13:18:23 -0700 Message-Id: <20230613201827.9441-2-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230613201827.9441-1-vishal.moola@gmail.com> References: <20230613201827.9441-1-vishal.moola@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Stat-Signature: btwoko75n8trisonw8h9kcgbrm9im1o7 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: A9E6840019 X-HE-Tag: 1686687513-760735 X-HE-Meta: U2FsdGVkX1/juQJtRGgfU4jSchAbfGxaSJWggN2NG9elv6MNtpvE9VFk+hGsG4SJaz6kTaAcz5wqhyZ9S5l5QmjHfb++2iJv+lxgnqkb17IdkFjZw+/dAo4uGaojCd5SQ8mTB3lQ83rEO+SpJ/H2xVDAGH3j1dvSfYurJyXmJtgfv+hb/pKkcI5AxoyQJQEBpYipaGA//Cd0n/NqxyM2XP8ra8N3ENGrgvWCBXBkyUExQW+VI/zpvARU9Pd6P/CXtnsqhAQ+lSDwW0sJSuefLeuflyhhEgaRZG8iROVmDPMiTURqYLojjAYgaVAtRFEASfH4ee/gQobXqekEX9UzsDyKfCulEQu4E8DW9ECZuO8z9XKD0XXxJApmYJpKrw3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C0uHDs4OcC8+3j3FehnjFNUhUZGKjvJD/EkE3LboJrdk/PP/qmjt3rn+jwm5yOGADK8Zs X-Bogosity: Ham, tests=bogofilter, spamicity=0.000003, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
Replace is_longterm_pinnable_page()
|
expand
|
On Tue, Jun 13, 2023 at 01:18:23PM -0700, Vishal Moola (Oracle) wrote: > Introduce folio_is_zone_movable() to act as a folio equivalent for > is_zone_movable_page(). This is to assist in later folio conversions. Honestly, I thought we already had this one. Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index a4889c9d4055..744bf32e48a8 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -1116,6 +1116,11 @@ static inline bool is_zone_movable_page(const struct page *page) { return page_zonenum(page) == ZONE_MOVABLE; } + +static inline bool folio_is_zone_movable(const struct folio *folio) +{ + return folio_zonenum(folio) == ZONE_MOVABLE; +} #endif /*
Introduce folio_is_zone_movable() to act as a folio equivalent for is_zone_movable_page(). This is to assist in later folio conversions. Signed-off-by: Vishal Moola (Oracle) <vishal.moola@gmail.com> --- include/linux/mmzone.h | 5 +++++ 1 file changed, 5 insertions(+)