summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2016-11-30 17:52:00 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2016-12-02 14:38:29 +1100
commitd7baee6901b34c4895eb78efdbf13a49079d7404 (patch)
tree82e581d4b82571bb48672167ebd1a94532f60ad3 /init
parent88f54a3581eb9deaa3bd1aade40aef266d782385 (diff)
downloadlinux-d7baee6901b34c4895eb78efdbf13a49079d7404.tar.bz2
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 'init')
0 files changed, 0 insertions, 0 deletions