diff options
| author | Mikulas Patocka <[email protected]> | 2020-08-24 15:09:47 +0000 |
|---|---|---|
| committer | Mike Snitzer <[email protected]> | 2020-09-01 20:41:55 +0000 |
| commit | f9e040efcc28309e5c592f7e79085a9a52e31f58 (patch) | |
| tree | ba83029d03adc0f497d2330e1e73b1693874f007 /fs/btrfs/dev-replace.c | |
| parent | Linux 5.9-rc3 (diff) | |
| download | kernel-f9e040efcc28309e5c592f7e79085a9a52e31f58.tar.gz kernel-f9e040efcc28309e5c592f7e79085a9a52e31f58.zip | |
dm writecache: handle DAX to partitions on persistent memory correctly
The function dax_direct_access doesn't take partitions into account,
it always maps pages from the beginning of the device. Therefore,
persistent_memory_claim() must get the partition offset using
get_start_sect() and add it to the page offsets passed to
dax_direct_access().
Signed-off-by: Mikulas Patocka <[email protected]>
Fixes: 48debafe4f2f ("dm: add writecache target")
Cc: [email protected] # 4.18+
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
