Home
last modified time | relevance | path

Searched hist:f9e040efcc28309e5c592f7e79085a9a52e31f58 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/md/
H A Ddm-writecache.cdiff f9e040efcc28309e5c592f7e79085a9a52e31f58 Mon Aug 24 17:09:47 CEST 2020 Mikulas Patocka <mpatocka@redhat.com> 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 <mpatocka@redhat.com>
Fixes: 48debafe4f2f ("dm: add writecache target")
Cc: stable@vger.kernel.org # 4.18+
Signed-off-by: Mike Snitzer <snitzer@redhat.com>