]> www.infradead.org Git - users/dwmw2/linux.git/commit
xfs: share more code in xfs_buffered_write_iomap_begin
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Oct 2024 08:59:19 +0000 (10:59 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 15 Oct 2024 09:37:42 +0000 (11:37 +0200)
commitc29440ff66d6f24be5e9e313c1c0eca7212faf9e
tree4ebedfb47a52c33ec81b55d96b9060596cc30bef
parent8fe3b21efa075f29d64a34000e84f89cfaa6cd80
xfs: share more code in xfs_buffered_write_iomap_begin

Introduce a local iomap_flags variable so that the code allocating new
delalloc blocks in the data fork can fall through to the found_imap
label and reuse the code to unlock and fill the iomap.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_iomap.c