diff options
author | Shiyang Ruan <ruansy.fnst@fujitsu.com> | 2022-12-02 13:30:53 -0800 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-12-08 08:29:58 -0800 |
commit | 624c2f49637c06bb62ed9fc789c301ea330b2f03 (patch) | |
tree | 1722f4057a2aabec523ec9cfd81aa8d8fbf7d02f /io_uring | |
parent | 038587477f4323a212e11a8999bd87e08adbd6cc (diff) |
fsdax: zero the edges if source is HOLE or UNWRITTEN
If srcmap contains invalid data, such as HOLE and UNWRITTEN, the dest
page should be zeroed. Otherwise, since it's a pmem, old data may
remains on the dest page, the result of CoW will be incorrect.
The function name is also not easy to understand, rename it to
"dax_iomap_copy_around()", which means it copys data around the range.
Signed-off-by: Shiyang Ruan <ruansy.fnst@fujitsu.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'io_uring')
0 files changed, 0 insertions, 0 deletions