]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: add missing cmap->br_state = XFS_EXT_NORM update
authorGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 16 Nov 2023 02:28:27 +0000 (18:28 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 16:56:26 +0000 (16:56 +0000)
commit92d38b87e8868754e06ec808ba12daa8a1d1ecd7
treed006c021afabfb8f32b88f841193537dbc359dea
parent8d0baec78e8a7abe03b449820507c9777dae7f7b
xfs: add missing cmap->br_state = XFS_EXT_NORM update

[ Upstream commit 1a39ae415c1be1e46f5b3f97d438c7c4adc22b63 ]

COW extents are already converted into written real extents after
xfs_reflink_convert_cow_locked(), therefore cmap->br_state should
reflect it.

Otherwise, there is another necessary unwritten convertion
triggered in xfs_dio_write_end_io() for direct I/O cases.

Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com>
Acked-by: Chandan Babu R <chandanbabu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/xfs/xfs_reflink.c