diff options
author | Dan Williams <dan.j.williams@intel.com> | 2017-05-29 23:07:46 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2017-06-16 00:35:24 +0300 |
commit | 6318770a7d43a4166b6a8e3cef62e4a019d3c95e (patch) | |
tree | ab8deaaa5fbbd07cacb8e951d36fd9c7568aee97 /security | |
parent | abebfbe2f7315dd3ec9a0c69596a76e32beb5749 (diff) | |
download | linux-6318770a7d43a4166b6a8e3cef62e4a019d3c95e.tar.xz |
filesystem-dax: convert to dax_flush()
Filesystem-DAX flushes caches whenever it writes to the address returned
through dax_direct_access() and when writing back dirty radix entries.
That flushing is only required in the pmem case, so the dax_flush()
helper skips cache management work when the underlying driver does not
specify a flush method.
We still do all the dirty tracking since the radix entry will already be
there for locking purposes. However, the work to clean the entry will be
a nop for some dax drivers.
Cc: Jeff Moyer <jmoyer@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Matthew Wilcox <mawilcox@microsoft.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions