]> www.infradead.org Git - users/jedix/linux-maple.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 Duval <dan.duval@oracle.com>
Wed, 7 Dec 2016 17:25:33 +0000 (12:25 -0500)
commita06755dcc09cf74febacb2f6f2c6eca42fd3278d
treec47e753218defa945d4ac2e6b3c188598b4856f7
parent16ecfba746d760858e043611126db27e7a2d9eb3
libnvdimm, pfn: move 'memory mode' indication to sysfs

Orabug: 22913653

'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>
(cherry picked from commit 0731de0dd95b251ed6cfb5f132486e52357fce53)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/nvdimm/namespace_devs.c