diff options
author | Shiyang Ruan <[email protected]> | 2022-12-01 15:28:53 +0000 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2022-12-11 18:12:16 -0800 |
commit | 708dfad2eb4169324189782edd6d3763237e0489 (patch) | |
tree | 593ca196cfac41ed29e60751cd587779c826cd4b /lib/mpi/mpiutil.c | |
parent | f80e1668888f34c0764822e74953c997daf2ccdb (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 copies data around the range.
[[email protected]: update dax_iomap_copy_around() kerneldoc, per Darrick]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Shiyang Ruan <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Reviewed-by: Allison Henderson <[email protected]>
Cc: Alistair Popple <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: Dave Chinner <[email protected]>
Cc: Jason Gunthorpe <[email protected]>
Cc: John Hubbard <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions