]> git.baikalelectronics.ru Git - kernel.git/commit
x86, mm: Correct vmflag test for checking VM_HUGETLB
authorJoonsoo Kim <js1304@gmail.com>
Mon, 12 Nov 2012 17:17:36 +0000 (02:17 +0900)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 14 Nov 2012 23:03:20 +0000 (15:03 -0800)
commit0c08c2620c180ba906b84f6ea8581e6ddbee8c0b
treed16e7063e78e589ae830fa566fe246e47dd16bdb
parent9d999723d8a5dec7964ebbb78de527f7cff65daa
x86, mm: Correct vmflag test for checking VM_HUGETLB

commit 27987a92bb1a105dab251728fac50539c7e66deb('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>
arch/x86/mm/tlb.c