summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2018-07-13 21:49:45 -0700
committerDave Jiang <dave.jiang@intel.com>2018-07-20 11:20:44 -0700
commit35de299547d1c3300e078f9f7c6eb01dadae47f9 (patch)
treedd0cb081bd17cdab0c2e3f119d2fac2493423e83 /mm
parent2232c6382a453db73d2e723df1b52030066e135e (diff)
downloadlinux-stable-35de299547d1c3300e078f9f7c6eb01dadae47f9.tar.gz
linux-stable-35de299547d1c3300e078f9f7c6eb01dadae47f9.tar.bz2
linux-stable-35de299547d1c3300e078f9f7c6eb01dadae47f9.zip
device-dax: Set page->index
In support of enabling memory_failure() handling for device-dax mappings, set ->index to the pgoff of the page. The rmap implementation requires ->index to bound the search through the vma interval tree. The ->index value is never cleared. There is no possibility for the page to become associated with another pgoff while the device is enabled. When the device is disabled the 'struct page' array for the device is destroyed and ->index is 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 'mm')
0 files changed, 0 insertions, 0 deletions