Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4439148pxv; Tue, 20 Jul 2021 03:56:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7P0f0sRNjmhDKim0k0+qVc2Y0iTAP/yAfIg+Yy2BQcddNBX/XWWPZyXU27P0lF9XsF+7T X-Received: by 2002:a05:6e02:2162:: with SMTP id s2mr20316696ilv.99.1626778581555; Tue, 20 Jul 2021 03:56:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626778581; cv=none; d=google.com; s=arc-20160816; b=M0naHVFpjveOw8CZTpIwIJEyOW1t11fCMEr5pyOWG/8pi9MJFFufztqCRpcioooCob UOz0GCwsmTb3m8UultaF/KMAuhnxFsVZy0YvL/79tmdyDTTHM6s7189/dvEeHfd0vT0p +4H6868cewe9a3iKg/tVeclxPfXjX/Vs8GaRQJn+2Z3EC8fUATty55YxViafGmKR7GGF AeJQmEL9wfcz68izMaDtDegoP5c01wrgaVYi7CxxpEyuKqyOIID5NfBMCrQkxN0jV1TE xsYLseRnmqHz4x9TD8RgbuzP6S9Z6ETIO1JUkxolqcXTr72Znuq3lmVffEVn53RDtsI0 NuPw== 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=zfSwGZCfiivxI5kgn54hg9oBa5IEUdM6bXJVDHzkr84=; b=SBh21iOfBsS1WQ3dIj4mjhMk5AcWvS4s+UrPr88OKvC7X3Fsfs3DaTFEKBXUzTSY3a 84uuNawmFArL4Rjin8aF5lie8HVClH0MzDVP98LXdzgZDhIK3SueAjmlXQRdKUtL6upv +O1N5G7jEKG9q9wje0QsXCLVxe0tiuuKwPJ9vLWuxUS9qzfhzMZkShzNAcUpK/gFMsgd eXC84FKXOGhnckWLfJjx6tGAypxXLYzthJLHaueDWZ35NIM1E773zpMNP3c9IrwyZ4tX jFhr0/1FmerYSLmjt+vam/yXYXNo/H7lCFHEp58Hz2o059ExR4SkvF7VoZtqiqwfmZas po/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UxGN88ts; 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 f4si22694361ilu.143.2021.07.20.03.56.10; Tue, 20 Jul 2021 03:56:21 -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=UxGN88ts; 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 S237412AbhGTKNF (ORCPT + 99 others); Tue, 20 Jul 2021 06:13:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:35178 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235874AbhGTKEh (ORCPT ); Tue, 20 Jul 2021 06:04:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 898946120C; Tue, 20 Jul 2021 10:45:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626777916; bh=WQWoajTP6/cp5PISTAolW0ntDNq1tPHYptl5Y2TWjSc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UxGN88tsuN08tzzqyQo2na45Fa8BsYObr5J9ROPhX6NmUIR/HRayXKVe3xHUCUTbm uEUPBk1yhhFnuN74BlM+nkl1U/Ctv0aJAPJ5z1Cahs5Q5Ar7AuXUpFKSMlt43MtqP3 vlG0S5KsdjCuCfG4oPJJmJk6ENeK8D8bjz36AINUZNUtXTwBuuDWjp2IOA2bQ/VItG cVhv2UhGpXTUP0m8Fg0DS8xY1lnz/zAzVFjGIphcAaNYVxptyu6zcBJ949aweGXucO 4nErJUD6ixNhHo9wR6DkhtvH7uxPz3u5hy3a+++rpFAhochfS3PkMLvX/G77bna0Fp NDELd6HayXtIA== Date: Tue, 20 Jul 2021 13:45:07 +0300 From: Mike Rapoport To: "Matthew Wilcox (Oracle)" Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig , Jeff Layton , "Kirill A . Shutemov" , Vlastimil Babka , William Kucharski , David Howells Subject: Re: [PATCH v14 020/138] mm/filemap: Add __folio_lock_async() Message-ID: References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-21-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210715033704.692967-21-willy@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 15, 2021 at 04:35:06AM +0100, Matthew Wilcox (Oracle) wrote: > There aren't any actual callers of lock_page_async(), so remove it. > Convert filemap_update_page() to call __folio_lock_async(). > > __folio_lock_async() is 21 bytes smaller than __lock_page_async(), > but the real savings come from using a folio in filemap_update_page(), > shrinking it from 515 bytes to 404 bytes, saving 110 bytes. The text > shrinks by 132 bytes in total. > > Signed-off-by: Matthew Wilcox (Oracle) > Reviewed-by: Christoph Hellwig > Acked-by: Jeff Layton > Acked-by: Kirill A. Shutemov > Acked-by: Vlastimil Babka > Reviewed-by: William Kucharski > Reviewed-by: David Howells > --- > fs/io_uring.c | 2 +- > include/linux/pagemap.h | 17 ----------------- > mm/filemap.c | 31 ++++++++++++++++--------------- > 3 files changed, 17 insertions(+), 33 deletions(-) Acked-by: Mike Rapoport