mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
libnvdimm, pfn: fix restoring memmap location
This path was missed when turning on the memmap in pmem support. Permit 'pmem' as a valid location for the map. Reported-by: Jeff Moyer <jmoyer@redhat.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
parent
9c41242817
commit
45eb570a0d
@ -301,10 +301,8 @@ int nd_pfn_validate(struct nd_pfn *nd_pfn)
|
||||
|
||||
switch (le32_to_cpu(pfn_sb->mode)) {
|
||||
case PFN_MODE_RAM:
|
||||
break;
|
||||
case PFN_MODE_PMEM:
|
||||
/* TODO: allocate from PMEM support */
|
||||
return -ENOTTY;
|
||||
break;
|
||||
default:
|
||||
return -ENXIO;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user