Skip to content

Commit

Permalink
libnvdimm, pfn: fix restoring memmap location
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Williams committed Jan 30, 2016
1 parent 9c41242 commit 45eb570
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/nvdimm/pfn_devs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 45eb570

Please sign in to comment.