[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1435873760.10531.11.camel@freescale.com>
Date: Thu, 2 Jul 2015 16:49:20 -0500
From: Scott Wood <scottwood@...escale.com>
To: Wenwei Tao <wenweitaowenwei@...il.com>
CC: <izik.eidus@...ellosystems.com>, <aarcange@...hat.com>,
<chrisw@...s-sol.org>, <hughd@...gle.com>, <tglx@...utronix.de>,
<mingo@...hat.com>, <hpa@...or.com>, <x86@...nel.org>,
<viro@...iv.linux.org.uk>, <linux-mm@...ck.org>,
<linux-fsdevel@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linuxppc-dev@...ts.ozlabs.org>, <kvm@...r.kernel.org>,
<kvm-ppc@...r.kernel.org>
Subject: Re: [RFC PATCH 6/6] powerpc/kvm: change the condition of
identifying hugetlb vm
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists