Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1282565ybg; Fri, 18 Oct 2019 15:10:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDb700VFU46/u+tABOyCUDdlzXQqvovkEbuaj+F5K+vyTVh+ZUrF8vseWtdUKkyWLrc1W6 X-Received: by 2002:a05:6402:895:: with SMTP id e21mr12030294edy.72.1571436642972; Fri, 18 Oct 2019 15:10:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571436642; cv=none; d=google.com; s=arc-20160816; b=CYIgIzh/pwBfZdYUSu6VLr5uEqYFN4tThNsNDAh3SaoZ1dJDl+0Z9dczPnjAp+8UdV 7ffAmNISie27ZBxPyoiVCIRbkVuM/4UAI8YD0MP1QGzYmFK1FTvbV/4BTxtqdwC5jXUm KMPDDfa8QpilkNf5U52fkToO0pGtpu+upMqDekmrPb3kX2ziNT/Z8fFT64WMLi59YFAM ++VAxaUtVRmjqrRbDcDVeWAkZEv0GzImUvsQN/V9+LUFGW9cqzbGWfSMxWx/GRMnKmD5 NKRGwehJ2z2knTADzjynrFzQLaad0Ef96QfxoX6Mm23JcjJdoNZP4O/WZ27iS7iijwk/ 8UVA== 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=jw2QxeO03VZMlAkRGSUIbK+gG6Sw9+eOdiudXNUt6kw=; b=vBry5dUjk4eK0SJZItsBlhveW5cyqhe11WO1//Klosc/6LaetDuEHxtmotsOQnqyY4 0X371ZwMudYbRqiDe5D/wXLP+3u2MbqVDa/RELFX8geJW+ts014BbaV2kRef25Xr92qJ 7543zATFlqwDtPTeALvG2fkJT8Lqa68fIAcrezxaF4Iv6iiF/yK4Q7YFaCs1f88d5Fel UD8x45RfrrWqx8CVOyQ2E/gkHP0t6BsRCg6YN6ozFmtZCR4r+uzpZa5YBVx0p+iEYLiw Kq6yiO1yNO3ZY9dP1Ow8Cv6XO9wLsoBdHJzcwr02V8sygDiGg/ErwfmDyJsIGxhCKXSk pzOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=VdDyutdV; 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 j47si4790605ede.117.2019.10.18.15.10.20; Fri, 18 Oct 2019 15:10:42 -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=VdDyutdV; 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 S2437252AbfJQR4b (ORCPT + 99 others); Thu, 17 Oct 2019 13:56:31 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:46590 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394803AbfJQR4a (ORCPT ); Thu, 17 Oct 2019 13:56:30 -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=jw2QxeO03VZMlAkRGSUIbK+gG6Sw9+eOdiudXNUt6kw=; b=VdDyutdVx8kvP536fioAZJ7hD eFnbnXRldFfeoeKRIcGRHAf6nVV4faIhh+dR4j0XGsyxhb+6L5K5rwau8VDijaIlOkefk3rjuV+Nk njQ1548WtKpM+b4lK3iesZn7PNSSGTikuauFErIcJD8DlqpibNJZ/0qEFnYfiTp/IAuoQgFyjkuSL 1Af6TwRrp9F6kwK5itQQeWQghz5XyHF3dHCjSIKp/ND/R6N+AicnU4qIftycbMmrx779haolLRUhP tP2H6x9zAtcYkVWHhL/+UJd2G3mtop4PGLh6pWd7I6LtHSPlDwRvpnQwEwelQ0umn5wM936EdXLrW 8Sb04VwZw==; 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 1iLA0g-0000eK-Uc; Thu, 17 Oct 2019 17:56:27 +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 v8 Date: Thu, 17 Oct 2019 19:56:10 +0200 Message-Id: <20191017175624.30305-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 Darrick, this series cleans up the xfs writepage code and then lifts it to fs/iomap/ so that it could be use by other file system. Note: the submit_ioend hook has not been renamed. Feel free to rename it if you really dislike the name. Changes since v7: - fix various commit log typos - fix up various comments - move some of the iomap tracepoint additions to an earlier patch - rebased on top of "iomap: iomap that extends beyond EOF should be marked dirty" Changes since v6: - actually add trace.c to the patch - move back to the old order that massages XFS into shape and then lifts the code to iomap - cleanup iomap_ioend_compare - cleanup the add_to_ioend checks 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