]> git.karo-electronics.de Git - linux-beck.git/commit
libnvdimm, pfn: move 'memory mode' indication to sysfs
authorDan Williams <dan.j.williams@intel.com>
Mon, 14 Dec 2015 23:34:15 +0000 (15:34 -0800)
committerDan Williams <dan.j.williams@intel.com>
Thu, 24 Dec 2015 20:20:20 +0000 (12:20 -0800)
commit0731de0dd95b251ed6cfb5f132486e52357fce53
tree4a1702a7d2b60ff398af5e929850d70a1a990da0
parent9bfa84969dd52bf0aa635c4c8a67c81d75ffca37
libnvdimm, pfn: move 'memory mode' indication to sysfs

'Memory mode' is defined as the capability of a DAX mapping to be the
source/target of DMA and other "direct I/O" scenarios.  While it
currently requires allocating 'struct page' for each page frame of
persistent memory in the namespace it will not always be the case.  Work
continues on reducing the kernel's dependency on 'struct page'.

Let's not maintain a suffix that is expected to lose meaning over time.
In other words a future 'raw mode' pmem namespace may be as capable as
today's 'memory mode' namespace.  Undo the encoding of the mode in the
device name and leave it to other tooling to determine the mode of the
namespace from its attributes.

Reported-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/namespace_devs.c