Skip to content

Commit ddd32b4

Browse files
JoonsooKimH. Peter Anvin
authored andcommitted
x86, mm: Correct vmflag test for checking VM_HUGETLB
commit 611ae8e('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: Joonsoo Kim <js1304@gmail.com> Acked-by: Alex Shi <alex.shi@intel.com> Link: http://lkml.kernel.org/r/1352740656-19417-1-git-send-email-js1304@gmail.com Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
1 parent 226f69a commit ddd32b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/mm/tlb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ void flush_tlb_mm_range(struct mm_struct *mm, unsigned long start,
197197
}
198198

199199
if (end == TLB_FLUSH_ALL || tlb_flushall_shift == -1
200-
|| vmflag == VM_HUGETLB) {
200+
|| vmflag & VM_HUGETLB) {
201201
local_flush_tlb();
202202
goto flush_all;
203203
}

0 commit comments

Comments
 (0)