Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp533186pxb; Fri, 13 Aug 2021 00:04:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLlfqdVbEm7nvl3lZyaMuqHnlm2TTppM7/TTlLFe1mGPlIVmYBPD1I48n802zUoS0iNhu1 X-Received: by 2002:a5d:8484:: with SMTP id t4mr923802iom.126.1628838268037; Fri, 13 Aug 2021 00:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628838268; cv=none; d=google.com; s=arc-20160816; b=kQykReQAENpmDegkPQkZxnrkID/5Usac30rJom6FohMnJATG4EQ+zsRjbDjAYyOK1d yzfVxtkjfqcKXFkwhV7tCIxpRLUZ/fmVTdsUqAL5k+6Eud3tkXr7xehq3M1rrIz54WA4 lfoRFykojwXzLG4h5OCBZGo8KZUSg2tAJfC/d/VaXLne4RiYTAfAijtbpEMOKn87GoqV Z3Hxp2Q+UHqAAmCb9fHadBYw6uNOCSfi9Z0gR3rdcMVeK0UgpxAOEgRpzdZcpjYmai1U mBMVXZwOs7zbmJTXG+McEjqJ6YVjL7Z29Fkq0qG1KQMaEFBivjtIJJM3tqCKkqAs8Kv4 h5qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=rFGbWRFLL15rXE0zTVJKIA9b75l6BN8IEdzjWNgTOq8=; b=JExnl4F4Tj4KQWrq0/t2q/U4oRSedPkQovSRdyeg0KXoEVlHQJHQTwjvBwTL6td5KN L9nHWDvK9mQjmyJGiSxKejrDw4h+7U1+934wYLQ0puMjy+l83z7Zo6VlBkaT63AIRW07 rC6oXmfTWB/6bfbVwjW58YVmI+7XZLOdh/1059/cCDPZoBdpH5zrcwk5D1bZdC0Q+cHv NgpDZBEGSrh5UdIYPWkmdcJhFU3XCYqH/uoB7pU0o9WQhTLNbM8Rff0YlDJdf8403BhO Nn9N97KCnOheJ2NxPnq2IKSI9394YKrySnX1JrPqzUw1SJbVQbVWcyHHGAFq1KvmeQKw g4Cw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x1si575969ilp.101.2021.08.13.00.04.16; Fri, 13 Aug 2021 00:04:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239060AbhHMHEE (ORCPT + 99 others); Fri, 13 Aug 2021 03:04:04 -0400 Received: from verein.lst.de ([213.95.11.211]:46549 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238964AbhHMHEE (ORCPT ); Fri, 13 Aug 2021 03:04:04 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 314E46736F; Fri, 13 Aug 2021 09:03:35 +0200 (CEST) Date: Fri, 13 Aug 2021 09:03:34 +0200 From: Christoph Hellwig To: David Howells Cc: willy@infradead.org, Seth Jennings , Bob Liu , Minchan Kim , Dan Magenheimer , trond.myklebust@primarydata.com, darrick.wong@oracle.com, hch@lst.de, viro@zeniv.linux.org.uk, jlayton@kernel.org, sfrench@samba.org, torvalds@linux-foundation.org, linux-nfs@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v2 2/5] mm: Remove the callback func argument from __swap_writepage() Message-ID: <20210813070334.GB26339@lst.de> References: <162879971699.3306668.8977537647318498651.stgit@warthog.procyon.org.uk> <162879973548.3306668.4893577928865857447.stgit@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <162879973548.3306668.4893577928865857447.stgit@warthog.procyon.org.uk> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Aug 12, 2021 at 09:22:15PM +0100, David Howells wrote: > Remove the callback func argument from __swap_writepage() as it's > end_swap_bio_write() in both places that call it. Yeah. I actually had a similar patch in a WIP tree for a while but never got to end it out. > /* linux/mm/page_io.c */ > extern int swap_readpage(struct page *page, bool do_poll); > extern int swap_writepage(struct page *page, struct writeback_control *wbc); > -extern void end_swap_bio_write(struct bio *bio); > -extern int __swap_writepage(struct page *page, struct writeback_control *wbc, > - bio_end_io_t end_write_func); > +extern int __swap_writepage(struct page *page, struct writeback_control *wbc); Please also drop the extern while you're at it. With that: Reviewed-by: Christoph Hellwig