Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1100250rwb; Wed, 7 Dec 2022 08:37:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf47hIFwnFlW7msQMX1QmnFYmJ9QBLtIzUCW9f3M+abbXcO3H1DIJpjna9AQrWWnmcCHMDd5 X-Received: by 2002:aa7:8dd3:0:b0:573:4ae5:e475 with SMTP id j19-20020aa78dd3000000b005734ae5e475mr74628846pfr.64.1670431030494; Wed, 07 Dec 2022 08:37:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670431030; cv=none; d=google.com; s=arc-20160816; b=xObU/VnxfrR2eo4lXtD2N6zBO4xn2adsQJl+JmdA/PL3iAO5k6KTGILM+y0bXZb7NT dXFYVMkxdyEAWD1R5GaszhoaVlGAE8jKhn9m2/DiOCGv/D3YPBw8rSYxBJdiuv6/e6O5 RJp25Vqha5oXmWcN6EIlCsMNzWOS/eN63jdru4UsfX9mgYRwDSiD2+ZuF7KoXoErfeDZ /Ad4b1FtVlBM0rppkD5PMOCdCgpERgYjFwSZV9Oz+AG2k3kbVKEZLqN6IfMcIBZlwu0q bEcfOqtauz27tzxnmfFhMBAp+RBg4cDz09n0pMGYT4LkoqHI0ZwEAmuii6VTyFzDuQ9F y6qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CTE6dIt+WJ+vgyPZslBvBPKrvguQdijjejJhRQWzhfU=; b=zVopvhMysGlOi6wlZCClmYCA+x20J2jtxqarw9eCTjFFXGuuFi5xJTPO/bUL7JO/Bj 4Z5i9eNfWrr2bG46/zEqIYwWYtsKT1AIKEAGiBDUJGRWabioxH0drkGsO03xa/M6kNeY CyZ1UOF1gOzceYv8UPm7osNyJvgJ9+MY9o3+8fSLH1QslLM+lvQVF5sqzmjkYYhHA8+M iDjZBAl30dT60MT3HZ896AE3s/Ci62WjKPJPOf/JT/O6CNJFHJFmSELoi9mhS+pJiL6+ b3LXjzgukF/epgtlQu2cDpmZ/F8XttnsRJagc7qMGjMxS4o3WhHvPjkiajS5JfS7tVj6 f2tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=EUFd0ueI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sj14-20020a17090b2d8e00b00218f2d6af26si1944914pjb.75.2022.12.07.08.37.00; Wed, 07 Dec 2022 08:37:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=EUFd0ueI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230035AbiLGQSh (ORCPT + 76 others); Wed, 7 Dec 2022 11:18:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230030AbiLGQSg (ORCPT ); Wed, 7 Dec 2022 11:18:36 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D91BE9587 for ; Wed, 7 Dec 2022 08:18:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=CTE6dIt+WJ+vgyPZslBvBPKrvguQdijjejJhRQWzhfU=; b=EUFd0ueIKCe4OzBKsVkD5N/fXz zwYytj69x7Hr59S7QSGQsQSA+T1HqUFvBOKCsad7up1f0y/tAYobcGbBquBO//IxTqDd8/83rbM5f oMJQil/xQa+zCfr+zoJGoo+TEtmcN0JfTEyDDo7ioFjPFKU6jvOQNHZcLzimZSyxjNGNHpvOrpmcB DS1gDSXEQdPNoyynfUmEsD9UJJQWkBkGEqJMa5EUwvkqr8sY12DkAtcVBU3Gsn8x3dvkpG00kSqYX euP/95Xn8boTEWKaeoJpazyT3dSNNcrqPwl195NolKfPR9FFTu8yoFzcGEwMvq8vq9cbrmaps1VBy 0j8HXGYA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1p2x7v-005z8C-WC; Wed, 07 Dec 2022 16:18:32 +0000 Date: Wed, 7 Dec 2022 16:18:31 +0000 From: Matthew Wilcox To: "Vishal Moola (Oracle)" Cc: linux-mm@kvack.org, damon@lists.linux.dev, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, sj@kernel.org Subject: Re: [PATCH 3/3] swap: Convert deactivate_page() to deactivate_folio() Message-ID: References: <20221207002158.418789-1-vishal.moola@gmail.com> <20221207002158.418789-4-vishal.moola@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221207002158.418789-4-vishal.moola@gmail.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 06, 2022 at 04:21:58PM -0800, Vishal Moola (Oracle) wrote: > /* > - * deactivate_page - deactivate a page > - * @page: page to deactivate > + * deactivate_folio - deactivate a folio > + * @folio: folio to deactivate > * > - * deactivate_page() moves @page to the inactive list if @page was on the active > - * list and was not an unevictable page. This is done to accelerate the reclaim > - * of @page. > + * deactivate_folio() moves @folio to the inactive list if @folio was on the > + * active list and was not an unevictable page. This is done to accelerate ... and was not unevictable. This ... > + * the reclaim of @folio. > */ > -void deactivate_page(struct page *page) > +void deactivate_folio(struct folio *folio) > { > - struct folio *folio = page_folio(page); > - > if (folio_test_lru(folio) && !folio_test_unevictable(folio) && > (folio_test_active(folio) || lru_gen_enabled())) { > struct folio_batch *fbatch; > -- > 2.38.1 > >