From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giuseppe CAVALLARO Date: Wed, 18 Feb 2009 08:31:15 +0000 Subject: Re: [PATCH] slab: fix slab flags for archs use alignment larger Message-Id: <499BD53C.1000007@st.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> <84144f020902130541n6de09d7brb455d0879b62af71@mail.gmail.com> In-Reply-To: <84144f020902130541n6de09d7brb455d0879b62af71@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Pekka Enberg Cc: Paul Mundt , linux-kernel@vger.kernel.org, linux-sh@vger.kernel.org, linux-mm@vger.kernel.org, Christoph Lameter Hi Pekka, Pekka Enberg wrote: > 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, size_t align, >> ralign = align; >> } >> /* disable debug if necessary */ >> - if (ralign > __alignof__(unsigned long long)) >> + if (ralign > ARCH_SLAB_MAX_DEBUG_ALIGN) >> flags &= ~(SLAB_RED_ZONE | SLAB_STORE_USER); >> /* >> * 4) Store it. >> > > This doesn't address the issues raised by Paul at all. > > Pekka > Sorry for my late reply. You are right. I'm going to review this but this could take a while. I'll go back to you as soon as possible. Regards, Peppe //