Thread (12 messages) flat view 12 messages, 2 authors, 2015-07-07

Re: [RFC PATCH 6/6] powerpc/kvm: change the condition of identifying hugetlb vm

From: Scott Wood <hidden>
Date: 2015-07-02 21:49:20
Also in: kvm, linux-fsdevel, linux-mm, lkml

On Wed, 2015-06-10 at 14:27 +0800, Wenwei Tao wrote:
Hugetlb VMAs are not mergeable, that means a VMA couldn't have VM_HUGETLB 
and
VM_MERGEABLE been set in the same time. So we use VM_HUGETLB to indicate new
mergeable VMAs. Because of that a VMA which has VM_HUGETLB been set is a 
hugetlb
VMA only if it doesn't have VM_MERGEABLE been set in the same time.
Eww.

If you must overload such bit combinations, please hide it behind a 
vm_is_hugetlb() function.

-Scott
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help