From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C89C238C23; Mon, 9 Mar 2026 16:34:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773074090; cv=none; b=MWKsBXIErLYOdzV1rAi8fnYt2WeIBItsB7Q4PBoZp3yCkpIr6tQBoTJ1guaFeOTTMhXDbc7iLQyseiMd9yZ8EX++zldVcLNkdoIxJNZ5kAmh6Ka4/nYak41x/Co2us6iibN0NTB2CVc0eHWVwYuQknv7cPTage8OmMgB4wGBAT0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773074090; c=relaxed/simple; bh=H2j4+gkiNfMb8WlOpGA2EOv2lRQiRzHSZ57+uNmC+PM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OYPuKtpn+uoKQ/VeLzvRzJAcU7PIZ0Cnbt0+ppO0JqFQ4FZqiDlcCv+eMTx73DUnz/8MKzuumI3aH/AWrBG202cRLaZk9kLPL/Jh1dFbLToB7jF7j/u+6GJ2538mci4yMek0bNmqEegnQEEU36j3OnUcfGK0h3xrGfzWZhSJMS4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uMW6vxKm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uMW6vxKm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11093C2BC86; Mon, 9 Mar 2026 16:34:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773074090; bh=H2j4+gkiNfMb8WlOpGA2EOv2lRQiRzHSZ57+uNmC+PM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uMW6vxKmJxHxLitAohuVtFbImFqRS9KfKirVTf9RhHrabE4k2nLNN7Iufh8fqTxu4 ggK+li00QW5g/lvccCFOR7ek+Pqa2AO6CglKt4HbBpC5C7BeKx6L99qJJrsVWGH7nE dF8YwiDBDNPQInnSr+TkGNkSsvGxw3D8fj2oyzsW8/0lFJg+9kMrTVHUiVxmCy9Ff7 PSI85tGmI6OZPv9Yzbqltr99SunOlGeyV6kHHoXocGGCoVJqckLxFFOJJ/UnFAcHBV tgBa2peFtIi4+MDZ5+JmfdVUUiJPsNjkGHts0ICP8muyy+3cd3jQreRMfcwGyk1lWL 7s10xzsY4hsuA== Date: Mon, 9 Mar 2026 09:34:49 -0700 From: "Darrick J. Wong" To: Kanchan Joshi Cc: brauner@kernel.org, hch@lst.de, jack@suse.cz, cem@kernel.org, kbusch@kernel.org, axboe@kernel.dk, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, gost.dev@samsung.com Subject: Re: [PATCH v2 2/5] iomap: introduce and propagate write_stream Message-ID: <20260309163449.GF6033@frogsfrogsfrogs> References: <20260309052944.156054-1-joshi.k@samsung.com> <20260309052944.156054-3-joshi.k@samsung.com> Precedence: bulk X-Mailing-List: linux-xfs@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: <20260309052944.156054-3-joshi.k@samsung.com> On Mon, Mar 09, 2026 at 10:59:41AM +0530, Kanchan Joshi wrote: > Add a new write_stream field to struct iomap. Existing hole is used to > place the new field. > Propagate write_stream from iomap to bio in both direct I/O and buffered > writeback paths. > > Signed-off-by: Kanchan Joshi > --- > fs/iomap/direct-io.c | 1 + > fs/iomap/ioend.c | 3 +++ > include/linux/iomap.h | 2 ++ > 3 files changed, 6 insertions(+) > > diff --git a/include/linux/iomap.h b/include/linux/iomap.h > index 99b7209dabd7..e087818d11d4 100644 > --- a/include/linux/iomap.h > +++ b/include/linux/iomap.h > @@ -113,6 +113,8 @@ struct iomap { > u64 length; /* length of mapping, bytes */ > u16 type; /* type of mapping */ > u16 flags; /* flags for mapping */ > + /* 4-byte padding hole here */ It's 3 bytes now, right? ;) > + u8 write_stream; /* write stream for I/O */ > struct block_device *bdev; /* block device for I/O */ > struct dax_device *dax_dev; /* dax_dev for dax operations */ > void *inline_data; > -- > 2.25.1 > >