Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1283328ybg; Fri, 18 Oct 2019 15:11:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzA7UrrrScIRM7mJkBQcV+hUl84TgBFEByvxNR4pg7Hqr9+nU874WLF5CM7pThdc9o6XHk1 X-Received: by 2002:a17:906:4548:: with SMTP id s8mr11073187ejq.198.1571436692620; Fri, 18 Oct 2019 15:11:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571436692; cv=none; d=google.com; s=arc-20160816; b=O8Rf9KQXAN8aKBC0NT3ThTCbnIAotjyqs74LhQMEGI1F4zKO+aqCEBCOICu+wQt7bA oOPwF2oSvPlxRig4mO3RpZo9qkce+y8prLE4yFo2GQEWbCnXBTqnMvHtIzeJFkyetRvU 6tPOhVn5rvy/0mLCjgtMP+BUvEr679C4y2LN/svAg0YfTFiUNDwtfNjQ5Q34pObNr+M9 9aoRYrhcuimfAH1qruae4u087FsXHv5tu+vG/j1kDwBOyr+RCkWAZqHAxTMRJYbav5Kp coXU/i2lLccdVXGvfiQXC+K8q+QeVuNGL6XYa7rr26Ut5c143/QgvIzL2q0sHiTXdVvO zUpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Lveu2b/3PvukfmV9kCWYR6WLjRarWs0ASDrcIDPvYdY=; b=JU607ZGbkZ3UAo7C270XjE0XA5xU8hwvQZf/nk2DouoqAkm1RNoidFyrRksVV2rgke KG6nIl62KGHhZ44s9hjjgA3oCUld83zMEGBmm2n3L1eGCibSzL+72Zd1YCp/O6sg1hae pJTcWT4t/3rggF+35lIsDzHpMV99PcwhIahbCeIgQv/MwVaHipqT9aQKGlAkycM/xnHa 7YopFMG8q85qvOn2iGTuLuuBskGwdnLIvoVeV1qPRGj1xw0nwTW1fy2pddSMxg5tkUzH eRbJkUK2RPq2iKaH6YV/G3YhAB6CaFL2hGBJ41C8a9QIXhGPsxzzh6BZomFN7Tx1PCX4 ybPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Gky3tV9L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1si4298890ejb.44.2019.10.18.15.11.09; Fri, 18 Oct 2019 15:11:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Gky3tV9L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2395163AbfJQR5N (ORCPT + 99 others); Thu, 17 Oct 2019 13:57:13 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:49616 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394797AbfJQR5M (ORCPT ); Thu, 17 Oct 2019 13:57:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Lveu2b/3PvukfmV9kCWYR6WLjRarWs0ASDrcIDPvYdY=; b=Gky3tV9LY2NLX/LaH7kfv4PIg/ qn+Qvm7X9ybIAcvokaloMb0K57vXT/ZTdoJypKvVxK40D8CXjh4kEqqqsHWCcAEWzwoydslnr5OvM SAI+1v7seXYb9ppUvsRHAwjxs9oOklhxSip4uCdlL7JLMcRZA5Tj46SDXRXi0dlbFu3lSHmygVm47 FmawoT2KEXEjmogOqbTh3PEztq87KEnjGduIV7BSRr+JFBkcrpd4GUG3/kaG7H2ILk6Iiy2f+KItU pJn3EExAve0OSpYHhwM5FiLTDEUeQV7ifL9mMyAfedvP/fSU6edtCkd9uDsDboBBE8rL+DhRwxSKI 3Bs+o96Q==; Received: from [2001:4bb8:18c:d7b:c70:4a89:bc61:3] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1iLA1K-0001XK-DD; Thu, 17 Oct 2019 17:57:06 +0000 From: Christoph Hellwig To: "Darrick J . Wong" Cc: Damien Le Moal , Andreas Gruenbacher , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 14/14] iomap: pass a struct page to iomap_finish_page_writeback Date: Thu, 17 Oct 2019 19:56:24 +0200 Message-Id: <20191017175624.30305-15-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191017175624.30305-1-hch@lst.de> References: <20191017175624.30305-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org No need to pass the full bio_vec. Signed-off-by: Christoph Hellwig --- fs/iomap/buffered-io.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c index bb96499c352f..755b75424a97 100644 --- a/fs/iomap/buffered-io.c +++ b/fs/iomap/buffered-io.c @@ -1110,13 +1110,13 @@ vm_fault_t iomap_page_mkwrite(struct vm_fault *vmf, const struct iomap_ops *ops) EXPORT_SYMBOL_GPL(iomap_page_mkwrite); static void -iomap_finish_page_writeback(struct inode *inode, struct bio_vec *bvec, +iomap_finish_page_writeback(struct inode *inode, struct page *page, int error) { - struct iomap_page *iop = to_iomap_page(bvec->bv_page); + struct iomap_page *iop = to_iomap_page(page); if (error) { - SetPageError(bvec->bv_page); + SetPageError(page); mapping_set_error(inode->i_mapping, -EIO); } @@ -1124,7 +1124,7 @@ iomap_finish_page_writeback(struct inode *inode, struct bio_vec *bvec, WARN_ON_ONCE(iop && atomic_read(&iop->write_count) <= 0); if (!iop || atomic_dec_and_test(&iop->write_count)) - end_page_writeback(bvec->bv_page); + end_page_writeback(page); } /* @@ -1156,7 +1156,7 @@ iomap_finish_ioend(struct iomap_ioend *ioend, int error) /* walk each page on bio, ending page IO on them */ bio_for_each_segment_all(bv, bio, iter_all) - iomap_finish_page_writeback(inode, bv, error); + iomap_finish_page_writeback(inode, bv->bv_page, error); bio_put(bio); } -- 2.20.1