diff options
author | 2017-05-29 23:12:19 -0700 | |
---|---|---|
committer | 2017-06-27 16:44:13 -0700 | |
commit | c9e582aa689f5418ca30e1e7a975039772c3a757 (patch) | |
tree | 34ea0b661819d2e80c80a2197ad264e55b0fffc6 /drivers/nvdimm/core.c | |
parent | libnvdimm, pmem: fix persistence warning (diff) | |
download | linux-c9e582aa689f5418ca30e1e7a975039772c3a757.tar.gz linux-c9e582aa689f5418ca30e1e7a975039772c3a757.tar.bz2 linux-c9e582aa689f5418ca30e1e7a975039772c3a757.zip |
libnvdimm, nfit: enable support for volatile ranges
Allow volatile nfit ranges to participate in all the same infrastructure
provided for persistent memory regions. A resulting resulting namespace
device will still be called "pmem", but the parent region type will be
"nd_volatile". This is in preparation for disabling the dax ->flush()
operation in the pmem driver when it is hosted on a volatile range.
Cc: Jan Kara <jack@suse.cz>
Cc: Jeff Moyer <jmoyer@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Matthew Wilcox <mawilcox@microsoft.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/core.c')
-rw-r--r-- | drivers/nvdimm/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvdimm/core.c b/drivers/nvdimm/core.c index 2dee908e4bae..22e3ef463401 100644 --- a/drivers/nvdimm/core.c +++ b/drivers/nvdimm/core.c @@ -504,7 +504,7 @@ void nvdimm_badblocks_populate(struct nd_region *nd_region, struct nvdimm_bus *nvdimm_bus; struct list_head *poison_list; - if (!is_nd_pmem(&nd_region->dev)) { + if (!is_memory(&nd_region->dev)) { dev_WARN_ONCE(&nd_region->dev, 1, "%s only valid for pmem regions\n", __func__); return; |