Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp425821rdh; Thu, 23 Nov 2023 07:37:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjmHbJD+TpvrYtpreCdLwEi1u89GN3CpKsl5acIS0+i4O2oFgLn+LDRry9hTzPL8lvR/x6 X-Received: by 2002:a05:620a:191c:b0:760:7760:fdaa with SMTP id bj28-20020a05620a191c00b007607760fdaamr6256661qkb.12.1700753837215; Thu, 23 Nov 2023 07:37:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700753837; cv=none; d=google.com; s=arc-20160816; b=At9P8kjwlX5BI5DMF1bHHW9idCI2fSmEKDYISwXrOSuXd9H8+fVc7J+G2luQnXWjsm QR4ZDkF2CZ0Qx9mkGNWu1V6VdNekIuHqJfXo1/FrPwUG6hKEslYAx6VkqjQr8iaYOmKi zfUBVOyNriggHMXjYRsZ+JZJJAcbaaXiznchJGLjYQMT6VqF+CRDmIihtshLlvWbBlsE LIAHRZVeycwZ2D4QEqFTzUux2FZ9wAlx6BlgwC4dnrLnUteYhNf2KsF05bEtNRHA8Paw CWKon2T6nywGyrcoUsMF7LYfvWDtYfgDNC04Mkkfx464lNmfPpHGAoZwge1z19q87wR8 lOiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cRle48OR1Y4Ci2rvLicUXi7ASMQFImZUpVWaM1PJQvs=; fh=qFAqQTgpIRUgXkg+LY5q9yRBUwq4h2GKY5u6/1brSxg=; b=NyO4VheHh2ccwfXXPrCFRnr4DS9wpr2cizeLh3ooHRGQzJlEgH0+KbytimnfgDOUpT YNWedDnEOLvElM09XAUcp5zdAbRRADXKmsVjugH1h/Ce9FAJFUmkaRqoxRRglO5pVqvE L34bxVpfI6vmDe93jZ8pwGo6aDRA5+UAzVLGSAoudgNhaFxI149ubWIcZ7+XLfQPRT3l 4ys39c2gEib2/0mCFqXC/cBQnHy2LyciNValGUpeD01/jylsBAWS5zUp1JlRNt0umIJC 5Q475RgMr+4qn7cfowDpZAtZBCU4fL95SMO2LaEoyOcpX0v3nE11AZz/VHHZ0DYl+pZZ IXeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=QN7ctFjO; spf=pass (google.com: domain of linux-ext4+bounces-126-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-126-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bs9-20020a05620a470900b0077d605e9631si1290695qkb.648.2023.11.23.07.37.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 07:37:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-126-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=QN7ctFjO; spf=pass (google.com: domain of linux-ext4+bounces-126-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-126-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AD7291C21080 for ; Thu, 23 Nov 2023 15:37:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 19D9E3A29E; Thu, 23 Nov 2023 15:37:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="QN7ctFjO" X-Original-To: linux-ext4@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFDD4D68; Thu, 23 Nov 2023 07:36:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=cRle48OR1Y4Ci2rvLicUXi7ASMQFImZUpVWaM1PJQvs=; b=QN7ctFjO66TmuLZvp3G8RWZFQU qRnmpa5lMMs8m5gMB8Ss8NILQr+G1nIj6NN0zwuqCCBJg7t6XDzUQi1jG3hsiWzC1xtGBlG2NSgqn cHA2bjB6AFDxsgPgSbb9ZmUD1mGzNVFvBcJf4Rsx+tErP6PW+UHVlHf2zbCk73xAlDvOFT6asf9a2 2yLPAXBS9BHLKB5hVgovqm5DMKfQFUFfwet+GKisM3O/+ug+Vb4zWhoWH4r6JV3nWqlpR45xI537g G5qmHk1HjIB+G2CgF3mllf67Y5u2VDJeyanlQgbtHshV+MB2Ws3HtkMoFg0kIP8NDh3jkLjanFFnU uYNX8jpw==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1r6Bkm-005BbM-17; Thu, 23 Nov 2023 15:36:32 +0000 Date: Thu, 23 Nov 2023 07:36:32 -0800 From: Christoph Hellwig To: Zhang Yi Cc: linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, tytso@mit.edu, adilger.kernel@dilger.ca, jack@suse.cz, ritesh.list@gmail.com, hch@infradead.org, djwong@kernel.org, yi.zhang@huawei.com, chengzhihao1@huawei.com, yukuai3@huawei.com Subject: Re: [RFC PATCH 11/18] iomap: add a fs private parameter to iomap_ioend Message-ID: References: <20231123125121.4064694-1-yi.zhang@huaweicloud.com> <20231123125121.4064694-12-yi.zhang@huaweicloud.com> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231123125121.4064694-12-yi.zhang@huaweicloud.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Thu, Nov 23, 2023 at 08:51:13PM +0800, Zhang Yi wrote: > From: Zhang Yi > > Add a private parameter to iomap_ioend structure, letting filesystems > can pass something they needed from .prepare_ioend() to IO end. On it's own this looks fine. Note that I have a series that I probably should send out ASAP: http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/iomap-map-multiple-blocks that makes each ioend only have the embdeed bio, and bi_private in that is unused, so you could just use that if we go down that route.