Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3294067ybp; Sun, 6 Oct 2019 08:49:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBfaydqCkmHHiDNfDUahtJgJObR0Imh9E2K2Dn4utusehQ5ADxLo+3aE3zgxDZVRnDQp+W X-Received: by 2002:aa7:c6c6:: with SMTP id b6mr24658819eds.19.1570376950486; Sun, 06 Oct 2019 08:49:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570376950; cv=none; d=google.com; s=arc-20160816; b=AGv0DAy78HAgXgNc62UxDNhifon8Inu8mLQGbSbFc7p/Y5VAUZOQ8noqkuBaKQoeYm bnR9c1ormkH0s74+8HikwlAKaovJV6DVctEz/2I+ugcn8iakaKHDiW6cS6AyTF46bAog NrQW3JL81t0wnEcufA4eVGaI7i9Noku1lxSNEUBkYTOL2rtC/LX0PEcrJCk8lBoUMe2h G2qUYRJ3C8hkpDKm5cfuR5BXd24E0gprY3/Mz1cB9ay/ACdZIzomTXcSx6rhp43WkSH+ T5hYprw6dri6o3v+izaR/9f+IdflDe1wlBBQI+Ql8xaswcoRoJQSMPdhA1+Q4pdbxRZH G8Fg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=QAs/+BWA4bVLGbdXB7THsaqLie2jYrpmwgS6OGWaAB8=; b=VPBulr3PG9ougSJOgRtgs3g93buXpw5DJ6Cb9cSD8nlyI86lmFvLuDRu5tCALIDTyE BpYNS3lIziqBGwR/8tvzesvtPFwe3AvyDKrKTLY3avp0F+AxK5IVArJT5hxmMn0YaGnH fZ6rH9kVTUp+3dT+rh/rM0tZYi8cOZdBxir3Lvim0M39spCPx61h13HfEJ3JGLgW5fM5 8JGmIoElQVjQ3WwrPFQ4Jec/JHFpeZZVZQlPtJxBe2Rrt2J8gkceauDpNukjhDOLxPt4 uXrG0z2yuVvAUpRlEx536c9pKwXXs6gd6jDaAuRyB1R5UKXXMMhOUqORqiXfBLNW9Oba jLvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="QgKASS/r"; 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 j24si6501349edt.259.2019.10.06.08.48.40; Sun, 06 Oct 2019 08:49:10 -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="QgKASS/r"; 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 S1726672AbfJFPs2 (ORCPT + 99 others); Sun, 6 Oct 2019 11:48:28 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:53478 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725905AbfJFPs2 (ORCPT ); Sun, 6 Oct 2019 11:48:28 -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: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:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=QAs/+BWA4bVLGbdXB7THsaqLie2jYrpmwgS6OGWaAB8=; b=QgKASS/rB8/myTZ9eXz+cBebd cqkvzl6OdnV/P9O1NoS3sOo1pYeCV6MvSouWZwKxHKA/EeBWVNrRpucFCZyktDcBk5Ym7UHoNPEfU gwXrOcXCwTHEC+sOcjZrvTAMkTY09QJY84w/3Sb4Zr+RJxaHqBwCPoFOe6pXzTmv272KQDLszxGyf a8ZAAub5E1qUg7ZUkP/3/Lfi1mPs2cbge9NKA8pGAJOES0iPvR2MQnsOzqecrIbnYAm9lwNfRXDEa zSuipiXTieKOY4JWtwMDPzDfdRVHY0uB01ZcC+MuufDxWHx3tV787pXXKhdU2PuGIlNxg7FZdSTb1 ddpWa2zGQ==; Received: from 089144211233.atnat0020.highway.a1.net ([89.144.211.233] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.2 #3 (Red Hat Linux)) id 1iH8li-0008Qh-Ie; Sun, 06 Oct 2019 15:48:22 +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: lift the xfs writepage code into iomap v6 Date: Sun, 6 Oct 2019 17:45:57 +0200 Message-Id: <20191006154608.24738-1-hch@lst.de> X-Mailer: git-send-email 2.20.1 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 Hi all, this series cleans up the xfs writepage code and then lifts it to fs/iomap.c so that it could be use by other file system. I've been wanting to this for a while so that I could eventually convert gfs2 over to it, but I never got to it. Now Damien has a new zonefs file system for semi-raw access to zoned block devices that would like to use the iomap code instead of reinventing it, so I finally had to do the work. Changes since v5: - move the tracing code to fs/iomap/trace.[ch] - fix a bisection issue with the tracing code - add an assert that xfs_end_io now only gets "complicated" completions - better document the iomap_writeback_ops methods in iomap.h Changes since v4: - rebased on top 5.4-rc1 - drop the addition of list_pop / list_pop_entry - re-split a few patches to better fit Darricks scheme of keeping the iomap additions separate from the XFS switchover Changes since v3: - re-split the pages to add new code to iomap and then switch xfs to it later (Darrick) Changes since v2: - rebased to v5.3-rc1 - folded in a few changes from the gfs2 enablement series Changes since v1: - rebased to the latest xfs for-next tree - keep the preallocated transactions for size updates - rename list_pop to list_pop_entry and related cleanups - better document the nofs context handling - document that the iomap tracepoints are not a stable API