mm: unmap VM_HUGETLB mappings with optimized path
authorYang Shi <[email protected]>
Fri, 26 Oct 2018 22:07:15 +0000 (15:07 -0700)
committerLinus Torvalds <[email protected]>
Fri, 26 Oct 2018 23:26:33 +0000 (16:26 -0700)
commitb4cefb36051244bcb5651026d862c332a6cac7df
treeb8fc64f082c88af99fe03cff7d030f1c91e4103c
parentdd2283f2605e3b3e9c61bcae844b34f2afa4813f
mm: unmap VM_HUGETLB mappings with optimized path

When unmapping VM_HUGETLB mappings, vm flags need to be updated.  Since
the vmas have been detached, so it sounds safe to update vm flags with
read mmap_sem.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Yang Shi <[email protected]>
Reviewed-by: Matthew Wilcox <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/mmap.c