Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4440135pxv; Tue, 20 Jul 2021 03:58:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXJez7JTVvVKHn1PUv/e9Fp9DlVRr+f+gm8TolBdT+inhgHE3WPEVPvTeLUfdrX0v950m2 X-Received: by 2002:a5d:850d:: with SMTP id q13mr21643453ion.3.1626778683667; Tue, 20 Jul 2021 03:58:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626778683; cv=none; d=google.com; s=arc-20160816; b=DAKDCS9mT5VLPm1W180KQVWglGd5/KuV0DkIurrOw/r8MM3y2EAwwQpgzZ/QT3t0OZ 1oaPJ7xgvkU/dpHeJ1v2IO9zTSu3c9gMdyPPX1uEin/aPiqFbbANLYm5vhcEawksnUAV uWtB++jq+4xM/6q/TRkNZqM2nq7XkvXPKPBM+dfci3NNhJUSH1borbgzp2l0Tu/rnS2C fPjzeo/OE9t1XrgQYP3rqENXCwlEhh2Re/Zip9PCBvFl3geAFwu8/IP9zCurlhSaYhzp zTsuljvZDvKPKhX7bIaXg/LatyqEs3edhMfPrnJAWeaA2SJAeEmaHmHa57YTsdAk1vdT 0RDg== 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=ttmBRrFEW+oi2EL584PGKYijewwlNF8JdY7TG6W89co=; b=cXzAdzZOi1yWnzLN3SxZZnCYJSVp4kEFmhGW5eRynTnHcwmHx3FToSX48Olilh/3C4 lHGtDrkmY74cq4vD2Xw/MQ5+QXp5qIML1zWXD7ZpwGaHWXIG56HZKcPQKLWGv8mMI6Uf KTWSzooREEQaW0rHnRb9NYa6/0tvGBQx79zRXspUHJZktjHK2cajhVTktlCEsCN1sXTV IlczDCcpAluARzWbTF7e9KdlLy4J2Y8/YqwxXcuY6SXFGA1TZOTyE392etKdF9CZ5PuB 1VqvGEL5n+o3+C0nHvktw66g6YE1KJ2YuOAVN4BO2ETX01qu3GsgZTAkRp4qVBFB9Nzb lFWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h21+U6b9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p16si13794379jan.14.2021.07.20.03.57.53; Tue, 20 Jul 2021 03:58:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h21+U6b9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238125AbhGTKO6 (ORCPT + 99 others); Tue, 20 Jul 2021 06:14:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:35468 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237581AbhGTKF0 (ORCPT ); Tue, 20 Jul 2021 06:05:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 98F9E61186; Tue, 20 Jul 2021 10:46:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626777964; bh=/O0vv21Cgn0unUo+i8YkezR6Gk++1U7Fdq0xfVx3pkU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=h21+U6b9EbzyiLOtuCFLg8M02NiBEj15fSC7Tt2xkk4vtd3ty3Xi+Fc8bgMg9RXUm 5nE82yW69y8nFnKbjCBpSdkI1hgdh62C37t3U6CbJirYsNL+O/8vTkvpjOOSB0kcK+ EfO0/R8qZraMCF0ItGGgPbjIvhr3DlrOkdBWeMq48czuGG4fY93hOF7citD1av19ab 05tP9cBOn+q3hKSrLBeKo1rk05lQml3eTtzL9pjehbMJ1PL7Ee1QDE3gjwwj0kSAJ8 EQb+c9tM1JxeTdDyZrKsOolArdhqPxMErGQrjVT21JNlkycGZmRcy2nm2L3KbeUoHP j/y6hrrx78j2A== Date: Tue, 20 Jul 2021 13:45:57 +0300 From: Mike Rapoport To: "Matthew Wilcox (Oracle)" Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Vlastimil Babka , William Kucharski , Christoph Hellwig , "Kirill A . Shutemov" Subject: Re: [PATCH v14 023/138] mm/swap: Add folio_rotate_reclaimable() Message-ID: References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-24-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210715033704.692967-24-willy@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 15, 2021 at 04:35:09AM +0100, Matthew Wilcox (Oracle) wrote: > Convert rotate_reclaimable_page() to folio_rotate_reclaimable(). This > eliminates all five of the calls to compound_head() in this function, > saving 75 bytes at the cost of adding 15 bytes to its one caller, > end_page_writeback(). We also save 36 bytes from pagevec_move_tail_fn() > due to using folios there. Net 96 bytes savings. > > Also move its declaration to mm/internal.h as it's only used by filemap.c. > > Signed-off-by: Matthew Wilcox (Oracle) > Acked-by: Vlastimil Babka > Reviewed-by: William Kucharski > Reviewed-by: Christoph Hellwig > Acked-by: Kirill A. Shutemov > --- > include/linux/swap.h | 1 - > mm/filemap.c | 3 ++- > mm/internal.h | 1 + > mm/page_io.c | 4 ++-- > mm/swap.c | 30 ++++++++++++++++-------------- > 5 files changed, 21 insertions(+), 18 deletions(-) Acked-by: Mike Rapoport