• Dan Williams's avatar
    filesystem-dax: Set page->index · 73449daf
    Dan Williams authored
    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: default avatarJan Kara <jack@suse.cz>
    Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
    Signed-off-by: default avatarDave Jiang <dave.jiang@intel.com>
    73449daf
dax.c 47.1 KB