Skip to content

Commit 9ff2dc5

Browse files
sbates130272Jonathan Corbet
authored andcommitted
dax : Fix documentation with respect to struct pages
The documentation for dax is not up to date with respect to the struct page support available in some of the device drivers that utilize it. Signed-off-by: Stephen Bates <sbates@raithlin.com> Acked-by: Ross Zwisler <ross.zwisler@linux.intel.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 964cce1 commit 9ff2dc5

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

‎Documentation/filesystems/dax.txt‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,12 @@ The DAX code does not work correctly on architectures which have virtually
123123
mapped caches such as ARM, MIPS and SPARC.
124124

125125
Calling get_user_pages() on a range of user memory that has been mmaped
126-
from a DAX file will fail as there are no 'struct page' to describe
127-
those pages. This problem is being worked on. That means that O_DIRECT
128-
reads/writes to those memory ranges from a non-DAX file will fail (note
129-
that O_DIRECT reads/writes _of a DAX file_ do work, it is the memory
130-
that is being accessed that is key here). Other things that will not
131-
work include RDMA, sendfile() and splice().
126+
from a DAX file will fail when there are no 'struct page' to describe
127+
those pages. This problem has been addressed in some device drivers
128+
by adding optional struct page support for pages under the control of
129+
the driver (see CONFIG_NVDIMM_PFN in drivers/nvdimm for an example of
130+
how to do this). In the non struct page cases O_DIRECT reads/writes to
131+
those memory ranges from a non-DAX file will fail (note that O_DIRECT
132+
reads/writes _of a DAX file_ do work, it is the memory that is being
133+
accessed that is key here). Other things that will not work in the
134+
non struct page case include RDMA, sendfile() and splice().

0 commit comments

Comments
 (0)