diff options
author | Dan Williams <dan.j.williams@intel.com> | 2018-07-14 06:49:40 +0200 |
---|---|---|
committer | Dave Jiang <dave.jiang@intel.com> | 2018-07-20 20:20:13 +0200 |
commit | 2232c6382a453db73d2e723df1b52030066e135e (patch) | |
tree | 2bf5466b3248ef03ff47099e8247753ff2029368 /fs/nfs/nfs3xdr.c | |
parent | device-dax: Convert to vmf_insert_mixed and vm_fault_t (diff) | |
download | linux-2232c6382a453db73d2e723df1b52030066e135e.tar.xz linux-2232c6382a453db73d2e723df1b52030066e135e.zip |
device-dax: Enable page_mapping()
In support of enabling memory_failure() handling for device-dax
mappings, set the ->mapping association of pages backing device-dax
mappings. The rmap implementation requires page_mapping() to return the
address_space hosting the vmas that map the page.
The ->mapping pointer is never cleared. There is no possibility for the
page to become associated with another address_space while the device is
enabled. When the device is disabled the 'struct page' array for the
device is destroyed / later reinitialized to zero.
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'fs/nfs/nfs3xdr.c')
0 files changed, 0 insertions, 0 deletions