mm/hmm: do not erase snapshot when a range is invalidated
[linux-block.git] / include / linux / hmm.h
index ad50b7b4f141ce7eeb22c46c3d2ef61c672919a8..716fc61fa6d44c80f9fb2a907bcee142fb1ffd9a 100644 (file)
@@ -131,6 +131,7 @@ enum hmm_pfn_value_e {
 /*
  * struct hmm_range - track invalidation lock on virtual address range
  *
+ * @hmm: the core HMM structure this range is active against
  * @vma: the vm area struct for the range
  * @list: all range lock are on a list
  * @start: range virtual start address (inclusive)
@@ -142,6 +143,7 @@ enum hmm_pfn_value_e {
  * @valid: pfns array did not change since it has been fill by an HMM function
  */
 struct hmm_range {
+       struct hmm              *hmm;
        struct vm_area_struct   *vma;
        struct list_head        list;
        unsigned long           start;