diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-04-30 08:46:26 -0400 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2014-08-25 08:35:57 -0400 |
commit | 9da4e3807657f3bcd12cfbb5671d80794303dde2 (patch) | |
tree | 44ac5a29e32413d6ab994c89278fdf1f93f46c7e | |
parent | 55dbbdd9a832b3c0546a65df155d9e6eee8c312e (diff) |
KVM: s390/mm: readd address parameter to gmap_do_ipte_notify
Revert git commit c3a23b9874c1 ("remove unnecessary parameter from
gmap_do_ipte_notify").
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
-rw-r--r-- | arch/s390/include/asm/pgtable.h | 4 | ||||
-rw-r--r-- | arch/s390/mm/pgtable.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h index 4a649888cb29..4cd91ac42f46 100644 --- a/arch/s390/include/asm/pgtable.h +++ b/arch/s390/include/asm/pgtable.h | |||
@@ -856,7 +856,7 @@ bool gmap_test_and_clear_dirty(unsigned long address, struct gmap *); | |||
856 | void gmap_register_ipte_notifier(struct gmap_notifier *); | 856 | void gmap_register_ipte_notifier(struct gmap_notifier *); |
857 | void gmap_unregister_ipte_notifier(struct gmap_notifier *); | 857 | void gmap_unregister_ipte_notifier(struct gmap_notifier *); |
858 | int gmap_ipte_notify(struct gmap *, unsigned long start, unsigned long len); | 858 | int gmap_ipte_notify(struct gmap *, unsigned long start, unsigned long len); |
859 | void gmap_do_ipte_notify(struct mm_struct *, pte_t *); | 859 | void gmap_do_ipte_notify(struct mm_struct *, unsigned long addr, pte_t *); |
860 | 860 | ||
861 | static inline pgste_t pgste_ipte_notify(struct mm_struct *mm, | 861 | static inline pgste_t pgste_ipte_notify(struct mm_struct *mm, |
862 | unsigned long addr, | 862 | unsigned long addr, |
@@ -865,7 +865,7 @@ static inline pgste_t pgste_ipte_notify(struct mm_struct *mm, | |||
865 | #ifdef CONFIG_PGSTE | 865 | #ifdef CONFIG_PGSTE |
866 | if (pgste_val(pgste) & PGSTE_IN_BIT) { | 866 | if (pgste_val(pgste) & PGSTE_IN_BIT) { |
867 | pgste_val(pgste) &= ~PGSTE_IN_BIT; | 867 | pgste_val(pgste) &= ~PGSTE_IN_BIT; |
868 | gmap_do_ipte_notify(mm, ptep); | 868 | gmap_do_ipte_notify(mm, addr, ptep); |
869 | } | 869 | } |
870 | #endif | 870 | #endif |
871 | return pgste; | 871 | return pgste; |
diff --git a/arch/s390/mm/pgtable.c b/arch/s390/mm/pgtable.c index 5404a6261db9..c09820dce81c 100644 --- a/arch/s390/mm/pgtable.c +++ b/arch/s390/mm/pgtable.c | |||
@@ -809,12 +809,13 @@ EXPORT_SYMBOL_GPL(gmap_ipte_notify); | |||
809 | /** | 809 | /** |
810 | * gmap_do_ipte_notify - call all invalidation callbacks for a specific pte. | 810 | * gmap_do_ipte_notify - call all invalidation callbacks for a specific pte. |
811 | * @mm: pointer to the process mm_struct | 811 | * @mm: pointer to the process mm_struct |
812 | * @addr: virtual address in the process address space | ||
812 | * @pte: pointer to the page table entry | 813 | * @pte: pointer to the page table entry |
813 | * | 814 | * |
814 | * This function is assumed to be called with the page table lock held | 815 | * This function is assumed to be called with the page table lock held |
815 | * for the pte to notify. | 816 | * for the pte to notify. |
816 | */ | 817 | */ |
817 | void gmap_do_ipte_notify(struct mm_struct *mm, pte_t *pte) | 818 | void gmap_do_ipte_notify(struct mm_struct *mm, unsigned long addr, pte_t *pte) |
818 | { | 819 | { |
819 | unsigned long segment_offset; | 820 | unsigned long segment_offset; |
820 | struct gmap_notifier *nb; | 821 | struct gmap_notifier *nb; |