diff options
author | Joonsoo Kim <iamjoonsoo.kim@lge.com> | 2013-10-24 03:07:41 +0200 |
---|---|---|
committer | Pekka Enberg <penberg@iki.fi> | 2013-10-24 19:17:29 +0200 |
commit | 07d417a1c6f1e386a2276b0cae8ae1d14b8a32cc (patch) | |
tree | 76c1f4aa71e875019523c95c23f594819360c3cb /mm/slab.c | |
parent | slab: remove nodeid in struct slab (diff) | |
download | linux-07d417a1c6f1e386a2276b0cae8ae1d14b8a32cc.tar.xz linux-07d417a1c6f1e386a2276b0cae8ae1d14b8a32cc.zip |
slab: remove cachep in struct slab_rcu
We can get cachep using page in struct slab_rcu, so remove it.
Acked-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Pekka Enberg <penberg@iki.fi>
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/slab.c b/mm/slab.c index 71ba8f53f9b7..7e1aabe2b5d8 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -204,7 +204,6 @@ typedef unsigned int kmem_bufctl_t; */ struct slab_rcu { struct rcu_head head; - struct kmem_cache *cachep; struct page *page; }; @@ -1824,7 +1823,7 @@ static void kmem_freepages(struct kmem_cache *cachep, struct page *page) static void kmem_rcu_free(struct rcu_head *head) { struct slab_rcu *slab_rcu = (struct slab_rcu *)head; - struct kmem_cache *cachep = slab_rcu->cachep; + struct kmem_cache *cachep = slab_rcu->page->slab_cache; kmem_freepages(cachep, slab_rcu->page); if (OFF_SLAB(cachep)) @@ -2052,7 +2051,6 @@ static void slab_destroy(struct kmem_cache *cachep, struct slab *slabp) struct slab_rcu *slab_rcu; slab_rcu = (struct slab_rcu *)slabp; - slab_rcu->cachep = cachep; slab_rcu->page = page; call_rcu(&slab_rcu->head, kmem_rcu_free); } else { |