]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: add missing cmap->br_state = XFS_EXT_NORM update
authorGao Xiang <hsiangkao@linux.alibaba.com>
Sat, 26 Feb 2022 00:18:30 +0000 (16:18 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 9 Mar 2022 18:32:06 +0000 (10:32 -0800)
commit256eef9091b2054b98015b897967cca6d750c5d4
tree96647e38438a299b1234dcebc8e984f1d147512a
parenta4bb3615af56325e357eba8358c36083800642a8
xfs: add missing cmap->br_state = XFS_EXT_NORM update

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>
fs/xfs/xfs_reflink.c