[PATCH v5 3/8] pmem: Enable pmem_do_write() to deal with arbitrary ranges