summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/book3s_paired_singles.c
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2016-11-30 07:52:00 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2016-12-02 04:38:29 +0100
commitd7baee6901b34c4895eb78efdbf13a49079d7404 (patch)
tree82e581d4b82571bb48672167ebd1a94532f60ad3 /arch/powerpc/kvm/book3s_paired_singles.c
parentpowerpc/iommu: Pass mm_struct to init/cleanup helpers (diff)
downloadlinux-d7baee6901b34c4895eb78efdbf13a49079d7404.tar.xz
linux-d7baee6901b34c4895eb78efdbf13a49079d7404.zip
powerpc/iommu: Stop using @current in mm_iommu_xxx
This changes mm_iommu_xxx helpers to take mm_struct as a parameter instead of getting it from @current which in some situations may not have a valid reference to mm. This changes helpers to receive @mm and moves all references to @current to the caller, including checks for !current and !current->mm; checks in mm_iommu_preregistered() are removed as there is no caller yet. This moves the mm_iommu_adjust_locked_vm() call to the caller as it receives mm_iommu_table_group_mem_t but it needs mm. This should cause no behavioral change. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Acked-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kvm/book3s_paired_singles.c')
0 files changed, 0 insertions, 0 deletions