Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4441225pxv; Tue, 20 Jul 2021 04:00:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqRkD3blEzZW33ABZ3whVc8coCO2cQlITs7CrY74EH6do3MuGVdCnamDkTNU6Li+rxRtFD X-Received: by 2002:aa7:d34a:: with SMTP id m10mr40026007edr.12.1626778809606; Tue, 20 Jul 2021 04:00:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626778809; cv=none; d=google.com; s=arc-20160816; b=cd6hdXc61vOn7p7BEXOuLQEQ+gTnij/kF39CwnuUX7+/QjgwIjawYnROaBBX1QOkBC gzWETmgJAK0P6JSjSknQN5bl24fQ1Y9Bt8Wjj+4/abVlS63sWgVpTV6isDW4XtnjRA42 0KH00F/kXSU7NYVDYczq0JvexCtjqT2vIcw8fzDDPmF0XlFOTKm5i+ht6rkRMQVOlMRA XBqjQlyULS8h3vOxzWG3/OKQUuSEAv9CpHQMMwJ29sBifuHdwyZjxhidEuwaDX+RfDiE QzPuYCU24KZrl4msacgf2nW+bvXZ97BXBXk3KfX/N68P3O9L/srWuF59sDz4UZp4dq3r oBDA== 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=shHNogcCDoeKdCZyVjPNBLmkRtNzl7PyKLCUtzlqwGg=; b=eKAL5552E9F0jCgrJSZJ7yxtDvYD37ierxCrS/4Pis8Ll7gs4K+xLMueAYsO29K8ju fMrOtdb4Z3c25sC2UUqU7LjBrDqQ81+szVBvwvSudwiOAUuWECHgCTIrZWUmM/xHsSeq gCgjUxUiaRNAx9nKhsQFDIJR/aLqqCRAMvhRpP7Etnub1YBpZytXtd8oeH0b1Sa0rcbp gaj3tTdinDmWM4JghJQyE9/rJXmQPMrd4zFEYV3mh9WWhYwOgXKoF55ptAzOXgFTXqyD wGymKQ/1zzwbfCQPjwHPJbTrSXY4XLXEqtcrtF2l+1P3+UhCph1434fb8h6J3eqzm5Kr xUgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IbdgA6+H; 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 kq20si22326818ejb.180.2021.07.20.03.59.46; Tue, 20 Jul 2021 04:00:09 -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=IbdgA6+H; 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 S235398AbhGTKRg (ORCPT + 99 others); Tue, 20 Jul 2021 06:17:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:35792 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237447AbhGTKGD (ORCPT ); Tue, 20 Jul 2021 06:06:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C43E461209; Tue, 20 Jul 2021 10:46:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626778001; bh=NuneWne0eQvjMARQjeOYZk+gZrvufDCaE2mhrY1ue3Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IbdgA6+HDrWQrdQzD/rHtgkdVnOxD5g5BKgW6IZMPket9lGlWK5TX18bTlEDVON0d JeyofqlLAiaYOjDdhzioXo8Ssp1I+4Iq/a6bPXv+tqECKtIrvjp9PA+wS7YLC5lQcV mhgEn/FzuQiPg3BC/YSN/7GK/P/bt4boUl1Fd8P5Exyj+Ei8uJm6a9fQGZ42AddIgs kCmNrfas3YHo6XS5BznMXYo3XUITmTc8G8T5SG+Is2ZL15tpA/uDcv+XCdy3hR02h7 /7/LcOLY4OkKvOLdt6uzKu1LEb9Yxv0NaV4YK/IC1IVrAmi6kdJv9ok/Ce0R0XfEZP EwQZE+FNkG7PQ== Date: Tue, 20 Jul 2021 13:46:34 +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 Subject: Re: [PATCH v14 025/138] mm/writeback: Add folio_wait_writeback() Message-ID: References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-26-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210715033704.692967-26-willy@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 15, 2021 at 04:35:11AM +0100, Matthew Wilcox (Oracle) wrote: > wait_on_page_writeback_killable() only has one caller, so convert it to > call folio_wait_writeback_killable(). For the wait_on_page_writeback() > callers, add a compatibility wrapper around folio_wait_writeback(). > > Turning PageWriteback() into folio_test_writeback() eliminates a call > to compound_head() which saves 8 bytes and 15 bytes in the two > functions. Unfortunately, that is more than offset by adding the > wait_on_page_writeback compatibility wrapper for a net increase in text > of 7 bytes. > > 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 > --- > fs/afs/write.c | 9 ++++---- > include/linux/pagemap.h | 3 ++- > mm/folio-compat.c | 6 ++++++ > mm/page-writeback.c | 48 ++++++++++++++++++++++++++++------------- > 4 files changed, 46 insertions(+), 20 deletions(-) Acked-by: Mike Rapoport