提交 ddd32b42 编写于 作者: J Joonsoo Kim 提交者: H. Peter Anvin

x86, mm: Correct vmflag test for checking VM_HUGETLB

commit 611ae8e3('enable tlb flush range
support for x86') change flush_tlb_mm_range() considerably. After this,
we test whether vmflag equal to VM_HUGETLB and it may be always failed,
because vmflag usually has other flags simultaneously.
Our intention is to check whether this vma is for hughtlb, so correct it
according to this purpose.
Signed-off-by: NJoonsoo Kim <js1304@gmail.com>
Acked-by: NAlex Shi <alex.shi@intel.com>
Link: http://lkml.kernel.org/r/1352740656-19417-1-git-send-email-js1304@gmail.comSigned-off-by: NH. Peter Anvin <hpa@linux.intel.com>
上级 226f69a4
...@@ -197,7 +197,7 @@ void flush_tlb_mm_range(struct mm_struct *mm, unsigned long start, ...@@ -197,7 +197,7 @@ void flush_tlb_mm_range(struct mm_struct *mm, unsigned long start,
} }
if (end == TLB_FLUSH_ALL || tlb_flushall_shift == -1 if (end == TLB_FLUSH_ALL || tlb_flushall_shift == -1
|| vmflag == VM_HUGETLB) { || vmflag & VM_HUGETLB) {
local_flush_tlb(); local_flush_tlb();
goto flush_all; goto flush_all;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册