Darrick J. Wong 83693a553a xfs: fix partially uninitialized structure in xfs_reflink_remap_extent
[ Upstream commit c142932c29e533ee892f87b44d8abc5719edceec ]

In the reflink extent remap function, it turns out that uirec (the block
mapping corresponding only to the part of the passed-in mapping that got
unmapped) was not fully initialized.  Specifically, br_state was not
being copied from the passed-in struct to the uirec.  This could lead to
unpredictable results such as the reflinked mapping being marked
unwritten in the destination file.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-05-02 17:23:16 +02:00
..
2017-10-08 10:26:11 +02:00
2017-10-08 10:26:11 +02:00
2016-10-04 18:06:40 -07:00
2018-02-03 17:05:40 +01:00
2016-10-04 11:05:44 -07:00
2017-09-20 08:20:02 +02:00
2017-10-08 10:26:11 +02:00
2016-06-01 17:38:15 +10:00
2017-06-07 12:07:52 +02:00