From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pekka Enberg Date: Fri, 13 Feb 2009 13:41:29 +0000 Subject: Re: [PATCH] slab: fix slab flags for archs use alignment larger Message-Id: <84144f020902130541n6de09d7brb455d0879b62af71@mail.gmail.com> List-Id: References: <1234461073-23281-1-git-send-email-peppe.cavallaro@st.com> <20090212185640.GA6111@linux-sh.org> <499544AD.3030804@st.com> <84144f020902130122y471dd92em4a72de43a0cfc681@mail.gmail.com> <49954F9A.5020801@st.com> <84144f020902130205x4dc5886l70fe6a695ef050a4@mail.gmail.com> <4995565D.5010105@st.com> <49957F98.50708@st.com> In-Reply-To: <49957F98.50708@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: Giuseppe CAVALLARO Cc: Paul Mundt , linux-kernel@vger.kernel.org, linux-sh@vger.kernel.org, linux-mm@vger.kernel.org, Christoph Lameter Hi Giuseppe, On Fri, Feb 13, 2009 at 4:11 PM, Giuseppe CAVALLARO wrote: > @@ -2262,7 +2266,7 @@ kmem_cache_create (const char *name, size_t size, s= ize_t align, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ralign =3D align; > =A0 =A0 =A0 =A0} > =A0 =A0 =A0 =A0/* disable debug if necessary */ > - =A0 =A0 =A0 if (ralign > __alignof__(unsigned long long)) > + =A0 =A0 =A0 if (ralign > ARCH_SLAB_MAX_DEBUG_ALIGN) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0flags &=3D ~(SLAB_RED_ZONE | SLAB_STORE_US= ER); > =A0 =A0 =A0 =A0/* > =A0 =A0 =A0 =A0 * 4) Store it. This doesn't address the issues raised by Paul at all. Pekka