Message ID | 20240227174254.710559-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 BAC3BC5478C for <linux-mm@archiver.kernel.org>; Tue, 27 Feb 2024 17:43:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D96A86B00FA; Tue, 27 Feb 2024 12:43:06 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A3CBD6B0103; Tue, 27 Feb 2024 12:43:06 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5843A6B00F9; Tue, 27 Feb 2024 12:43:06 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 088126B0101 for <linux-mm@kvack.org>; Tue, 27 Feb 2024 12:43:06 -0500 (EST) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 5D128140A03 for <linux-mm@kvack.org>; Tue, 27 Feb 2024 17:43:05 +0000 (UTC) X-FDA: 81838304730.20.02FCF25 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf11.hostedemail.com (Postfix) with ESMTP id DF4AF40009 for <linux-mm@kvack.org>; Tue, 27 Feb 2024 17:43:03 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=g1L8o4YG; dmarc=none; spf=none (imf11.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1709055784; 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=pz2bbWtwmdw9j8cypGnGl7rt/rSb7O0Hc5eYv7pd3Vk=; b=ljaWuvcHuOasgA27SMYTBxodu1VgoTGeWlEnTY3GekLddJk8v3FXURCxxUStkH092a2Sgy GG1DfH1vH4wVzKs0oDBUyS4pHgy1sg160meDmN0QUgS2ehFsusOR1l7WoceRtkG8jUQGuk 5d0ptsc8vgMmNAe+fQiV3cS8yIpPSQw= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=g1L8o4YG; dmarc=none; spf=none (imf11.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1709055784; a=rsa-sha256; cv=none; b=EkdB462hh3TEKA6ktZCJj4trHx9cgv26Kniu7QIQplFxadhQHtA3BX0r/F3Pm1bAhxfouy NzZtwdIP9zmneojzeW3jcGtKw0b0bkTfYOeoafN67MoE/8Xzwcl3T6y6Cs6NQqYOiUgqyv sYy2czbwjDLEd/TZ+NjFDbU2J7r4Sy8= 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=pz2bbWtwmdw9j8cypGnGl7rt/rSb7O0Hc5eYv7pd3Vk=; b=g1L8o4YGNT2lx561EE3X8d5fi8 wOEsv7PUCqVAYekH2yF7/MDJ8f7eS5GHQxHedfGY+wdFIlmG2ikkF1S0HlWnQ9dFe9gEPMnHrV7xb Zbwh42nUQEQOiTw2ans3hOJGkXSelrS9CKOav+YQJ/vmbAk4I0XWJEoimr4RjNKd8CGMbYAxQ/CVn fPtgHPX+UC/4eaq+2tRTTIPGB1lBr/CCyTJpP3ROcHcSYAoCKD6s7PZ7a8cCbs28mwS9oFTlBpt09 q6Y70tkln2i9BrLhNkodydJoEzr9wM8NAzx//4kbR1+5M2zt//Ol39c90Eb7rmbVg1BU29yy/C12y T/mkDHSQ==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rf1Tm-00000002yr2-1MjL; Tue, 27 Feb 2024 17:42:58 +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 v3 04/18] mm: Use folios_put() in __folio_batch_release() Date: Tue, 27 Feb 2024 17:42:38 +0000 Message-ID: <20240227174254.710559-5-willy@infradead.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240227174254.710559-1-willy@infradead.org> References: <20240227174254.710559-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: DF4AF40009 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: 9r9bc5c3fsdmfwwxr4daiek4g7ceojcf X-HE-Tag: 1709055783-429194 X-HE-Meta: U2FsdGVkX1/DJHLsn3CSOgl8g1RI7a7D3rUg12iv9VYk+VADXksU0hVGrDnxo7RdoMWXWjQdlMztBkqFaM2yr17/0rx7Zh603vsATGpFRGCIpLNYTNlue+spLGOPoIORwzBLZiuXIGCffQmCR7XaNT+ByEXroq4SqBYE6IsNKW0G1XqHIwjmCAqK86l8VNeH2OFOoWT2d5i3j7ooxITWJu+J+XtOrKvk8masGMcYKLiFfJOzoDcjBm1xbSCm5nRlexoMo8qczg0Kynb/8t7ipVJN+s8snDwRZrrBGaFTVsh+QyWGw21U1ZQl2LdYiGJdIUpNlJRtLC9n4GR9wYx72NGkqorpxSSLt2Q3M0ipux2U56DZHRwH8x1KebEtnppdB0fBqTmUC6ic6iZHSwnNFaXPYZbUsU4dcJnS8v1+y2d2x09yB1R0WnXzo1u0fqWU+v71tpJJ4jJEUe7gxa76zKpSP7txNmibdwJI1wYcaiaS9525BhCX0JMFdFlIls+iYVBn2L98kWbQ56eP6iFK0HLKiqDB3z1wDUDHwLqStG7e834yqESSEZrdRRuf24jvCyihZwJerzu5JPdn61pg3658k8Qzb2780MkREHdq51xPNUZnUdKrYI7F7U/5XYJbi0kjzxn3pFZZF7gQTZCILHkvNEAxqhAFCB5NCUewywjP5uhZvluHLStFQl/yBLAnRWimc08upTaMGmlpEPPf6nUWoMaCc7KaCvBsscAwk13Qo3xWQCbZjkRox3TUOnl4ugpibCZghUW59dFEudVMAdLAGITD10GQDGKf3JFD7/laORfDpAmTFUyN/VdIP87TTioLCzIlCY1+CxJGYAmJp7rMUIIrq9KrLzWSn/v/KPgcPxPKujkYyfIfomwLs8iySW96cDnVocNfH00Fhb4tHPZsEEgAm5BF 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 3d51f8c72017..1cfb7b897ebd 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -1083,8 +1083,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);