login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
22
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Paul Mundt <lethal@...>
To: Pekka J Enberg <penberg@...>
Cc: <dhowells@...>, <clameter@...>, <mpm@...>, <linux-kernel@...>
Subject:
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
Date: Thursday, May 22, 2008 - 7:40 pm
On Thu, May 22, 2008 at 07:09:04PM +0300, Pekka J Enberg wrote:
quoted text
> Index: slab-2.6/mm/nommu.c > =================================================================== > --- slab-2.6.orig/mm/nommu.c 2008-05-22 18:59:01.000000000 +0300 > +++ slab-2.6/mm/nommu.c 2008-05-22 19:00:36.000000000 +0300 > @@ -109,12 +109,22 @@ > * If the object we have should not have ksize performed on it, > * return size of 0 > */ > - if (!objp || (unsigned long)objp >= memory_end || !((page = virt_to_page(objp)))) > + if (!objp) > + return 0; > + > + if ((unsigned long) objp >= memory_end) > + return 0; > + > + page = virt_to_head_page(objp); > + if (!page) > return 0; > > if (PageSlab(page)) > return ksize(objp); >
Is ksize() happy with taking the head page instead of virt_to_page(objp)? --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] nommu: fix kobjsize() for SLOB and SLUB
, Pekka J Enberg
, (Thu May 22, 12:09 pm)
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
, David Howells
, (Wed May 28, 9:12 am)
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
, David Howells
, (Wed May 28, 10:27 am)
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
, David Howells
, (Wed May 28, 10:09 am)
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
, Christoph Lameter
, (Wed May 28, 1:26 pm)
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
, David Howells
, (Wed May 28, 1:38 pm)
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
, Mike Frysinger
, (Wed May 28, 4:35 pm)
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
, David Howells
, (Thu May 29, 9:03 am)
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
, Mike Frysinger
, (Thu May 29, 4:25 pm)
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
, Christoph Lameter
, (Thu May 29, 4:30 pm)
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
, Mike Frysinger
, (Thu May 29, 4:51 pm)
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
, Christoph Lameter
, (Thu May 29, 5:29 pm)
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
, Mike Frysinger
, (Fri May 30, 12:18 am)
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
, Pekka J Enberg
, (Wed May 28, 9:17 am)
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
, David Howells
, (Wed May 28, 9:40 am)
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
, Paul Mundt
, (Thu May 22, 7:40 pm)
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
, Christoph Lameter
, (Thu May 22, 7:45 pm)
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
, Paul Mundt
, (Thu May 22, 7:50 pm)
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
, Christoph Lameter
, (Thu May 22, 8:04 pm)
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
, Christoph Lameter
, (Thu May 22, 12:48 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
H. Peter Anvin
Re: [rft] s2ram wakeup moves to .c, could fix few machines
Greg Kroah-Hartman
[PATCH 002/196] Chinese: rephrase English introduction in HOWTO
Ingo Molnar
[patch] PID namespace design bug, workaround
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
git
:
linux-netdev
:
Eric Dumazet
Re: Multicast packet loss
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
9 users
and
831 guests
online.
Online users
zeekec
lc09isg
mainetravelxzmy
cordic
hotrolledsteel
acne411
harleyhors11
kidsnightviskk
cbfortunexfen
Syndicate