fs, dax: prepare for dax-specific address_space_operations
authorDan Williams <dan.j.williams@intel.com>
Wed, 7 Mar 2018 23:26:44 +0000 (15:26 -0800)
committerDan Williams <dan.j.williams@intel.com>
Fri, 30 Mar 2018 18:34:55 +0000 (11:34 -0700)
commitf44c77630d26ca2c2a60b20c47dd9ce07c4361b3
treeec06b086dc96720330ede25f4cd74909f0e8bde1
parent3fe0791c295cfd3cd735de7a32cc0780949c009f
fs, dax: prepare for dax-specific address_space_operations

In preparation for the dax implementation to start associating dax pages
to inodes via page->mapping, we need to provide a 'struct
address_space_operations' instance for dax. Define some generic VFS aops
helpers for dax. These noop implementations are there in the dax case to
prevent the VFS from falling back to operations with page-cache
assumptions, dax_writeback_mapping_range() may not be referenced in the
FS_DAX=n case.

Cc: Jeff Moyer <jmoyer@redhat.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Suggested-by: Matthew Wilcox <mawilcox@microsoft.com>
Suggested-by: Jan Kara <jack@suse.cz>
Suggested-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Suggested-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
fs/libfs.c
include/linux/dax.h
include/linux/fs.h