filesystem-dax: Set page->index
authorDan Williams <dan.j.williams@intel.com>
Sat, 14 Jul 2018 04:49:50 +0000 (21:49 -0700)
committerDave Jiang <dave.jiang@intel.com>
Fri, 20 Jul 2018 18:21:15 +0000 (11:21 -0700)
commit73449daf8f0db2697fb9f3f60b3a6d5c76a3c5fc
tree85bd2833a059be2a911f632871666f2f10059c80
parent35de299547d1c3300e078f9f7c6eb01dadae47f9
filesystem-dax: Set page->index

In support of enabling memory_failure() handling for filesystem-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 is set and cleared at dax_associate_entry() and
dax_disassociate_entry() time respectively.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Matthew Wilcox <willy@infradead.org>
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>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
fs/dax.c