Message ID | 9018cecacb39e34c883540f997f9be8281153613.1673526881.git.lstoakes@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 3810EC54EBD for <linux-mm@archiver.kernel.org>; Thu, 12 Jan 2023 12:39:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9D6C48E0003; Thu, 12 Jan 2023 07:39:54 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9876D8E0001; Thu, 12 Jan 2023 07:39:54 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 801E28E0003; Thu, 12 Jan 2023 07:39:54 -0500 (EST) 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 722B38E0001 for <linux-mm@kvack.org>; Thu, 12 Jan 2023 07:39:54 -0500 (EST) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 4BD02120241 for <linux-mm@kvack.org>; Thu, 12 Jan 2023 12:39:54 +0000 (UTC) X-FDA: 80346103908.26.05C63F0 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by imf04.hostedemail.com (Postfix) with ESMTP id 94E4B4000A for <linux-mm@kvack.org>; Thu, 12 Jan 2023 12:39:52 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=femgMvhv; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf04.hostedemail.com: domain of lstoakes@gmail.com designates 209.85.128.45 as permitted sender) smtp.mailfrom=lstoakes@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1673527192; 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=Nvh72pnq+35pgvvJPMgZ8nog2n55QNfKwj25JYsdjLk=; b=YGa2lQwlafi7Wjama9JnIaYP5Eb0aiS/QEcqCAvmQ8CVtO8e0WEUZJKkxJDlevvyEta9GB eX3YEQgGMeOTwm/ah0Al5hFm2qHkmtPZI0BAsMGyRhVXOZ4kAdgH66y7TuEsGTXYOioBeJ pfwCE9cdkbhw5C/XHXbqSo22BYigxw0= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=femgMvhv; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf04.hostedemail.com: domain of lstoakes@gmail.com designates 209.85.128.45 as permitted sender) smtp.mailfrom=lstoakes@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673527192; a=rsa-sha256; cv=none; b=2YmhmIdN45aqghZo3t8SsFrBCKHtuD0H8zYqUDAJxaoiIP7mZrmosjEIefdP4+j/umCq6X ATwMiQM3IA6Kcbj3D/pNX8I8iIIJufeZgi5Dj5aGybBTh9nNXcaBZPFz9xmjyjhYxdbqTU m5vDWiQIzKh+W9DacIsNPeVGB/qB0PA= Received: by mail-wm1-f45.google.com with SMTP id g10so13099602wmo.1 for <linux-mm@kvack.org>; Thu, 12 Jan 2023 04:39:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=Nvh72pnq+35pgvvJPMgZ8nog2n55QNfKwj25JYsdjLk=; b=femgMvhvRMHoBUQrdPDL69x3b05v3v15o093QGsG9jpjlB/Y5S0Sbx7BNVz8opBVue UMKh3NQPtcCvjVsWeKoobMleZZDAAvnXaXc/xbzXjsgiBc+98105RM4/FmmvgKnQmP6P gjYsVUBDvBxet9J50eSjKCFWGrAE/CMkiripO4FUXf8PmN+rp6AKLKaLaObV6XI9pQ2Y LXLPmEAQsMCVfHDL5LiYmtFQF/iFYp9M/J75j6s9qtF61YjFCqrG696W1vTyUCV+XqX1 X2qVSpi4MPYCrStXilHNMDWJ6UEZy5s4SjqHObQWaHhwB5fCwBMuN4963ydfh2mBXDLJ 4ySg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Nvh72pnq+35pgvvJPMgZ8nog2n55QNfKwj25JYsdjLk=; b=UXj3vsnRhM2toQa9f2Cqac3Cly6sTSFAjK1DHhJ2d4/aQIVLIPiKhf/grj1R3nVWCp 4oho3YjPlqlqQ61Gi9poogKZgBLIgeB/rqCfItmDHMwvRyRXXR1xARZhSgHpLelwUbFV E3yMqwIH7WC9jWIyGn46lMme7ixqSzKAi7bUre9pnt64/c55HIdxYNzdgLYm0d1tm+vb v1O1YdlP8Alm65IfF1T98tY0yZnUv7qUtqxeW1YKt/l6pCwE4xYL5HJsHNAE81kdfqMy 9eXe4xDjWqi6slAuEnvtdRWfX6VyHd/FmKrq7WuPB/wi4Y2SYUZUnEh3IvQ37tV+vGEt 0VmA== X-Gm-Message-State: AFqh2kpO6thsV0b2tH1O5/mJYHoTqchOLKimh0VfjMNcFSVgkO+Glqoz astA9SZmonVkqL26Rqu9hbFJ8B1U5QY= X-Google-Smtp-Source: AMrXdXuGOz2E/RV2D78ewdf/hmN+LCFTJ4pM5Bqwd3jJgiH1XouRa68EHum8smPs9741PGl+3Oyf1A== X-Received: by 2002:a05:600c:5008:b0:3cf:6f4d:c25d with SMTP id n8-20020a05600c500800b003cf6f4dc25dmr54909137wmr.21.1673527190866; Thu, 12 Jan 2023 04:39:50 -0800 (PST) Received: from lucifer.home (host86-164-169-89.range86-164.btcentralplus.com. [86.164.169.89]) by smtp.googlemail.com with ESMTPSA id q1-20020a1ce901000000b003b3307fb98fsm20890797wmc.24.2023.01.12.04.39.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Jan 2023 04:39:50 -0800 (PST) From: Lorenzo Stoakes <lstoakes@gmail.com> To: linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org Cc: Matthew Wilcox <willy@infradead.org>, Hugh Dickins <hughd@google.com>, Vlastimil Babka <vbabka@suse.cz>, Liam Howlett <liam.howlett@oracle.com>, William Kucharski <william.kucharski@oracle.com>, Christian Brauner <brauner@kernel.org>, Jonathan Corbet <corbet@lwn.net>, Mike Rapoport <rppt@kernel.org>, Joel Fernandes <joel@joelfernandes.org>, Geert Uytterhoeven <geert@linux-m68k.org>, Lorenzo Stoakes <lstoakes@gmail.com> Subject: [PATCH v4 1/5] mm: pagevec: add folio_batch_reinit() Date: Thu, 12 Jan 2023 12:39:28 +0000 Message-Id: <9018cecacb39e34c883540f997f9be8281153613.1673526881.git.lstoakes@gmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <cover.1673526881.git.lstoakes@gmail.com> References: <cover.1673526881.git.lstoakes@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 94E4B4000A X-Rspamd-Server: rspam09 X-Rspam-User: X-Stat-Signature: 3f61c34hquryzpdcatpyxad8kpa1thtm X-HE-Tag: 1673527192-634139 X-HE-Meta: U2FsdGVkX1/v6f3CUC/cZHpoLTu0AIVGventuQJhPijdWxQXi9zbeSbTmJSbZMlWrWug4wtSI5TmcXAm/aePCnZ/se0L1UmjmACcmGEq1HoM3l4pgghGidly8flKCiEVAa5rfTJiDJJhiRPFFOS0m/Xf7w5D5/AmcJzy5nFyOHBvaSCiWQbr+cdPZQ3Q1To8sG/nyUrPslilmS3PADrTUgqAeH5XW6qCFhMDxqd+REboYXtxll9Ht8Knc5QETNR2BYmohiugi8zRYXhQK/n17jz6Hvtj4FEBS58S/VFCIzdwgkcuZ2gAUCwUFr8rxClwCW7z2RJeUYndpz7SqpeSaxSl6SrmEGt6EfbKtVH/VMX536AULci5vD2LmEErCLsp3nWJ+seGjE46S/axK7+xEouVkf8SJtqY8UTwt98pSKO7oxDJUrAf0PrhneFWtlBBYmfXQ48nx7DLPjM1wB9JFIdPI8sfLinEjTHBEZw1Wna8YApU4Hovd7LUXvnz09KvxTRprhk9eUk3vyJ21m2c1f0Oca1nSYc888hQBXllUPtMJOcI8rntv9FYKt0LUkXPGG/KE3gjwFnlcZQlQmXbtYy8icJbDqnjOBxvcGHIC/gpL8FYzpUVkYyc8czTWkRQtphD5qpwXevnMpaaW8GpDCUDEPrNAosBSmzKSmsZz1IGcRAlqahOHYTPR6Pcad2OYndWiidm4nfsNuFVDLsiI/3DJTsqAW62ubWVRzi2ZsBOXOKvb/WTNd3w48HBzOddyD6k9cKKlFJlYt1UeHD6Y13HeRBIWR9MpFwEFhJgKA3lQbUsMxnAiCdPc5DJY4qWFVOtlWwm9yNir9WN6X4HhL7ZhM+iLZmBh90QaWOjt70CvaEX7BtwVA1JlP1jT8d5Jrjuwtd/8EOqkwiOm/946TTv3Mh+fnM5vM5Zdsj7BdkVZjHNB/7sd/6arHKumijJ0w3XEl1WmeskTmtxYkt 07qA2Nr3 trYRSHj9K0byxDrEBCsHkb+0tLvho7ed+LS9rfLkGASG4kSM87MuNDermUl98a2srBQjBYzUu1spxvXwyd0+4eJ6bh4sqqTDNzKvMb2k8p1IEygL29jQZDRjyVCOWqdaSvbN6lu9b2H1G1JGmxLp2DwdUe/wwLe6A9uGGenOeY4viDqKj5YwRGmTEyw== 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 |
update mlock to use folios
|
expand
|
diff --git a/include/linux/pagevec.h b/include/linux/pagevec.h index 215eb6c3bdc9..2a6f61a0c10a 100644 --- a/include/linux/pagevec.h +++ b/include/linux/pagevec.h @@ -103,6 +103,11 @@ static inline void folio_batch_init(struct folio_batch *fbatch) fbatch->percpu_pvec_drained = false; } +static inline void folio_batch_reinit(struct folio_batch *fbatch) +{ + fbatch->nr = 0; +} + static inline unsigned int folio_batch_count(struct folio_batch *fbatch) { return fbatch->nr;