pmem: Add functions for reading/writing page to/from pmem
authorVivek Goyal <vgoyal@redhat.com>
Fri, 28 Feb 2020 16:34:51 +0000 (11:34 -0500)
committerDan Williams <dan.j.williams@intel.com>
Fri, 3 Apr 2020 02:15:03 +0000 (19:15 -0700)
commit5d64efe79703c4de1f017af9f7643ead1dc85432
tree27967fe80aadd9a426b384eb6d72f75538aed2ec
parent338f6dac8585beaf4d913de8847e430808fb7596
pmem: Add functions for reading/writing page to/from pmem

This splits pmem_do_bvec() into pmem_do_read() and pmem_do_write().
pmem_do_write() will be used by pmem zero_page_range() as well. Hence
sharing the same code.

Suggested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Pankaj Gupta <pankaj.gupta.linux@gmail.com>
Link: https://lore.kernel.org/r/20200228163456.1587-2-vgoyal@redhat.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/pmem.c