Message ID | 20240217022546.1496101-5-willy@infradead.org (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 D29BCC48260 for <linux-mm@archiver.kernel.org>; Sat, 17 Feb 2024 02:26:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 77B0A6B00AD; Fri, 16 Feb 2024 21:26:05 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 728666B00AE; Fri, 16 Feb 2024 21:26:05 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5A23D6B00AF; Fri, 16 Feb 2024 21:26:05 -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 466C86B00AD for <linux-mm@kvack.org>; Fri, 16 Feb 2024 21:26:05 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 221E61C005D for <linux-mm@kvack.org>; Sat, 17 Feb 2024 02:26:05 +0000 (UTC) X-FDA: 81799705890.04.DA07B4C Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf28.hostedemail.com (Postfix) with ESMTP id 878F9C0012 for <linux-mm@kvack.org>; Sat, 17 Feb 2024 02:26:02 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=EWWh+9Q2; spf=none (imf28.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1708136762; 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=G5MiSMIQieXIDtrNd7LuHEe7+/2xFOKZC61A4SySwyY=; b=D+mXh8E1tfqI5QLaFYX4jeeFfOz4vz49VhJJglsW6SFaoM2gyNTSmHpRscqScHjgAUekYf YLJdTv+X+F3WU0/xUlvs/dvzxKi9LdAuQR9Hrlc5KOmMtdMgLQtq1THi86p5teZuKV2cxA kiI3k1PKy5cRaqMooOJN5k56075VH2M= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708136762; a=rsa-sha256; cv=none; b=ubeV0c+bUKJC+sPc/djAcrpc7rB53IXXdD6wC7Q6/P2N5L9LcAekv6XOgSzcpa7j584pEF Pq1ONKbxB8SFJc9Q48kwI39elcmczNunVtH2PZ+fmzpirFv/h4Iud4MznMuP8BpmIUsxM1 H5pT8W50g814wl4blA2nNxHY12HgdJw= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=EWWh+9Q2; spf=none (imf28.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=G5MiSMIQieXIDtrNd7LuHEe7+/2xFOKZC61A4SySwyY=; b=EWWh+9Q2NaP/tdzptWLwwS3e+l TbK5tXDMT84kMnJixuSxvd+VWASxbalExrQDegNcliaCEioL/LP8KQ53Anp9WTzOfqsJKSeG6WLas nbEJ761WPMTImxKnKdS4V/wlOUgaZk7Gat+9V+MAayObdtap97MQoeW6fQEqq34FTa0Pr2CbRJGWC /AjLLiPxFWbGTA/6cR7EYUilDB9xfQmH0xYzxyJoSifGYoTZokVPZF9SKJezlRPwybYbwlOncKI6r k1h0XZXkzroWGB9jIcmVvs/vIsw2HnvP9ahZ+G7KIqmBSY44Rkj8PD3Cmn5HhW/NU4hUkhY7+qK5/ xVliHhpg==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbAOi-00000006HDD-2KW6; Sat, 17 Feb 2024 02:25:48 +0000 From: "Matthew Wilcox (Oracle)" <willy@infradead.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>, linux-mm@kvack.org, Ryan Roberts <ryan.roberts@arm.com> Subject: [PATCH v2 04/18] mm: Use folios_put() in __folio_batch_release() Date: Sat, 17 Feb 2024 02:25:30 +0000 Message-ID: <20240217022546.1496101-5-willy@infradead.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240217022546.1496101-1-willy@infradead.org> References: <20240217022546.1496101-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 878F9C0012 X-Rspam-User: X-Stat-Signature: b4hnzds4e55533zsm98a7a38fyqmg5je X-Rspamd-Server: rspam03 X-HE-Tag: 1708136762-439620 X-HE-Meta: U2FsdGVkX1/t+W9htuMRy0nLHl1u15v2QxqmodutSFWUW3yqFxI96FlFmdnpiO5ck6xNtMTrkwfPzTzwln9sw5orPTwKNqvmxmNZsLdz8kYzVZpgpBFiJSU+pNdsxzRi5E/DYjzvMFWRBh/Byt5bUSntIGtE/QBej+ezqBhGoG++Pxund/hWfZtM26KflDhDe4gFt9dlIzrMHuOp4XRPvML0Mxffpv3Z3Ft4v7h3qnRAGev5mJc9YBwtuihxdZ5QJZQ2kwX0A1NfkiMM86ljmfv+o7o4kemaxd+yul8LKkeTTzZs3AatM58Gexm1j++WREvnkdn+gVHd0ldsuXOr0sGHXlgKeUhXY+hLXYPVYn64Aucrz2wcs4Px73cTKY1mg3RZI54s1hZ4XqCQ6Xw7JX+yerNwuwl7wBScdDVVKRNa2XForXNERcvqpdaOLxtnMmapGk+P8jqBFPQPZr3YZq0hSUac3wpBSgdLrZllT54cnX0vdATfjqutRAk8UqN37gWWAI5Y3eX108N3V1AQbVGad7zq9eeTJGYl4A8VOKo68jvDLjJxEimcjg+mfGKVrlooiPXYU3MiE+VAHC8vmN6IN6wjK7HxSdoKe8YXssFaJupxNlLcY4IK8aZCYXt9r9wTz3Ee8Ji3bJZCqheZzW02KgHtCT9L7akHEuIy7FYjxW6veSVI8s2LYbbQYscjvCNZ5aLusU/R9hmYHCzP3ibo2gcp9395SUVH9mtFgZKf8ajfZ9y3wgdsH88y5kqB+Rmcu160sqzAxcq+gu/ZrBusnvo57soDhSWQL2hXA+SR7qSP8l2sWA79t3PMabpfhb0AeGT8Rzvu8vZCJgrbgOGdtwPah1v12XsSXvVEElCb9U9YPNRrSdGUkcOMZOKTgK6pabax1tjGtpQoDzPb7EBsJcrtDo+DWpnWsap0szYaYx/+YtdWaE1QOibRezMOlx4XXxaBE9WxMSUrQaW m0l4oOf2 nvvaC74TmKTDx1Yfq40d/AFJGh9W8W0P4Bi3FHS2T/dVAJUX48wlFg7oMlV76Mgnp0nKKb2JH7obCpU+CFG2oXTYa9EbtwzwTsBgEeZRyfm0c3A36yjGwJGlIapRVBRjxIsvUN2BJdPGz0jFzt2uwYGCrqwNtz1fwwIwurGkeFb7hyl8mGGoIB6x4rjJpCH0C+krJjZtf8dnuT0SWNfCWxQ/S3Sgm3+8K5gazQh73QCG4+Bvae77u6yqLV5Isap4+7X7oC004IqWBER1Rcm5tIogXsu0Lg9/Gx52j 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Rearrange batched folio freeing
|
expand
|
diff --git a/mm/swap.c b/mm/swap.c index 7bdc63b56859..c5ea0c6669e7 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -1073,8 +1073,7 @@ void __folio_batch_release(struct folio_batch *fbatch) lru_add_drain(); fbatch->percpu_pvec_drained = true; } - release_pages(fbatch->folios, folio_batch_count(fbatch)); - folio_batch_reinit(fbatch); + folios_put(fbatch); } EXPORT_SYMBOL(__folio_batch_release);