Message ID | 20230614021312.34085-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 4D41DEB64DA for <linux-mm@archiver.kernel.org>; Wed, 14 Jun 2023 02:14:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 869FB6B0075; Tue, 13 Jun 2023 22:14:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7CC048E0002; Tue, 13 Jun 2023 22:14:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5F7EB6B007B; Tue, 13 Jun 2023 22:14:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 4784D6B0075 for <linux-mm@kvack.org>; Tue, 13 Jun 2023 22:14:27 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 189B24067E for <linux-mm@kvack.org>; Wed, 14 Jun 2023 02:14:27 +0000 (UTC) X-FDA: 80899734174.16.D7BA858 Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) by imf12.hostedemail.com (Postfix) with ESMTP id 441E640004 for <linux-mm@kvack.org>; Wed, 14 Jun 2023 02:14:25 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=OG0iNJ5G; spf=pass (imf12.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.128.174 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1686708865; 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=gIoFapX6nAbUleBYK2wE51yt/hsIHhUn+0PFfQGQ1N8=; b=KNF4ycUaZ/XOmUGR9u3AZ0BRKVdabd8RoFgtq6A4sRk02Gfr5J5Su23nq+3WAQKIMFeIna Uqc+b7IbqcTTASxUo1ItgLBld54TGd0NIv/dzAbBV8wmnW29diw+AGeQQ4RN3JF8kR9ijr DnufsPgitaU9KGbYt7jcE7e2M/qkVWg= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1686708865; a=rsa-sha256; cv=none; b=DYQs45M2/PiEFqwmvP/pLbj90+8hEzsPQ30Hm0l+4+upmrjk08H2yZiXZkBo0wud3TMOMR mvpQRAEekLEJEYJiq+aUn/diEDHl7yTZuiT6tcbAHqEmdyembiJy/2fCFwlVe3vk1VHfjO AKJoaltX0yyTZG6yuA6nmbLA2shlZkI= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=OG0iNJ5G; spf=pass (imf12.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.128.174 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-56fff21c2ebso2289517b3.3 for <linux-mm@kvack.org>; Tue, 13 Jun 2023 19:14:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686708864; x=1689300864; 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=gIoFapX6nAbUleBYK2wE51yt/hsIHhUn+0PFfQGQ1N8=; b=OG0iNJ5GmEjZhXWO61u1AwU/idx/nazyQ7HP0I52znlouGZuNuyCp8x/YKDMNgE4TF FU/F4boFM8HzpQ/NYUPs6dBRfUqsDByWHFzr2KXzyKgbmBw6GKmPXJ7Cu/uWiikyv6gm GYjp2nEXcgLHMOQD6H3b3vuZiYRTJXs3N9sJB9GJ/BgnptFuN9WEMkcygTfvJyoXntc3 vHZBUztIkK9vRCdJJtya4e9pPE36OVtzPLhh748IQlh88xPZqc6gQBvcbEiDkhruCSoJ xue2DFFhxZdEW1Zhwmy3hRvDCHpd775F7lLi55NrX3Vk4O0E1d6pwWwZyjkeLm4B8i5u /3vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686708864; x=1689300864; 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=gIoFapX6nAbUleBYK2wE51yt/hsIHhUn+0PFfQGQ1N8=; b=AA8pV5gpC1wCpsIkhROwiO+rdCHuq9e28v9yM1HDtygSfS5vJYlNTjs9wYbLVQoPcG wTmSAwQ+u+l9ldRLIo708hEIYfJIot9i9HtUSixv2jVYTKKlruhAxmx1crVASZBHnmiI 8Nts1HV3qTor9EZejNayvojHMdehcCcRQi91TkSUQQSaGwHGK8Q/CZbwMuaWEygGd3d3 +1jFUKm1gp6EKH5G9huYQQmiKoduypAhug4F3cIciJv2wqnrSOneGVaj1wKSRdRy1HXU lFcOzRFB/ZBI40ZGy68ymPh5aj6HeHFKGuyRjM9U+BKEpCWV49cHtzJbVAoKo4xmo/52 pGRQ== X-Gm-Message-State: AC+VfDw9arCPqd3gxMlXOjjmcNN6OIl4UsvXMHnKyTXrnL/PhAEwY4lF MtrOjVImLlr+swX9uTGEt48= X-Google-Smtp-Source: ACHHUZ4YSMJp3iF8wUHpYsSVNC2ramcdJy4Qkj6dvEyjhe8CY4rDVrJOLr8FWGbCxucf/XIz1bWsiQ== X-Received: by 2002:a81:484c:0:b0:56d:770:c315 with SMTP id v73-20020a81484c000000b0056d0770c315mr512357ywa.49.1686708864338; Tue, 13 Jun 2023 19:14:24 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::e]) by smtp.googlemail.com with ESMTPSA id p3-20020a817403000000b0056d30f1b508sm1463931ywc.107.2023.06.13.19.14.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jun 2023 19:14:23 -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>, Matthew Wilcox <willy@infradead.org> Subject: [PATCH v2 1/5] mmzone: Introduce folio_is_zone_movable() Date: Tue, 13 Jun 2023 19:13:08 -0700 Message-Id: <20230614021312.34085-2-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230614021312.34085-1-vishal.moola@gmail.com> References: <20230614021312.34085-1-vishal.moola@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 441E640004 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: 4qyng3mja1dd9rqoxdbuc7rx749d6ona X-HE-Tag: 1686708865-504596 X-HE-Meta: U2FsdGVkX1/2hroVLOF32w5j0AFzSAFoipdo4x9nARbwKgyW5+KQIu/flv1MTYZGy9F/SDC2XTOP3ws3kqC8ocPvtSClahJQawC3Z1SCRSL415chdGUTtnWUwmt+k68+p+0OzNa9uNITpWCltHEHafQVFA4aP6Mf6QFDm3wXk7LsB4TdrOMgkByYq9xh6sn2YRfZuAiyKIgw88WULVwMwXIfthp7oh9QoaLgddrjVl0qBFxtp5rQRTY732pesFc3tKRPKbQMnQER2aaPZfEAAlwNZ8FeA7W+a/YJqRNFXw6SravgTaZ6+q4il+0Z7atDalFVtLzvowMHRIL0Dxz+rjeOz1orJXmM5VsI9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+GbG8+ZfB2qs7ADLK7SJMu1Zffht64aiUXQtN2t/kt4g7JWf/OY8UnTCXNAUXdiVUz/oj1BGAL+1roYu39HM/yyllbCWBDUgMu740rTC/wYPT26K5t8b1jRlX/VTliq8Jka/DI9O9b7gbT2Jyn1M7Xmu1mO7exUsxbJfuI15wv 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: <linux-mm.kvack.org> |
Series |
Replace is_longterm_pinnable_page()
|
expand
|
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 /*