xfs: xfs_bmap_finish_one should map unwritten extents properly
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:45:00 +0000 (12:45 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:45:00 +0000 (12:45 -0800)
commit6c8127e93e3ac9c2cf6a13b885dd2d057b7e7d50
tree4508d412726e597da37425a8b1f472c195381fdf
parent52f807067ba4a122e75bf1e0e0595c78e6a3d8b6
xfs: xfs_bmap_finish_one should map unwritten extents properly

The deferred bmap work state and the log item can transmit unwritten
state, so the XFS_BMAP_MAP handler must map in extents with that
unwritten state.

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