pmem: refactor pmem_clear_poison()
authorJane Chu <jane.chu@oracle.com>
Fri, 22 Apr 2022 22:45:07 +0000 (16:45 -0600)
committerDan Williams <dan.j.williams@intel.com>
Mon, 16 May 2022 20:38:19 +0000 (13:38 -0700)
commit9409c9b6709e59866ed3540b5d7f5291439e4833
tree17493989378074e2a202ba19091fd4f587545524
parent047218ec904da19c45c4a70274fc3f818a1fcba1
pmem: refactor pmem_clear_poison()

Refactor the pmem_clear_poison() function such that the common
shared code between the typical write path and the recovery write
path is factored out.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Jane Chu <jane.chu@oracle.com>
Link: https://lore.kernel.org/r/20220422224508.440670-7-jane.chu@oracle.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/pmem.c