summaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorJoonsoo Kim <js1304@gmail.com>2012-05-17 17:47:47 +0200
committerPekka Enberg <penberg@kernel.org>2012-05-18 11:28:06 +0200
commitc03f94ccbd67fbcf546e5a9fcfeb99ef0aca4ada (patch)
treec4b107833f17e6812778b25ac942dde7db1dd711 /mm/slub.c
parentslub: fix a memory leak in get_partial_node() (diff)
downloadlinux-c03f94ccbd67fbcf546e5a9fcfeb99ef0aca4ada.tar.xz
linux-c03f94ccbd67fbcf546e5a9fcfeb99ef0aca4ada.zip
slub: use __SetPageSlab function to set PG_slab flag
To set page-flag, using SetPageXXXX() and __SetPageXXXX() is more understandable and maintainable. So change it. Signed-off-by: Joonsoo Kim <js1304@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slub.c b/mm/slub.c
index b14ea3ce43b2..ef2d67564a54 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -1369,7 +1369,7 @@ static struct page *new_slab(struct kmem_cache *s, gfp_t flags, int node)
inc_slabs_node(s, page_to_nid(page), page->objects);
page->slab = s;
- page->flags |= 1 << PG_slab;
+ __SetPageSlab(page);
start = page_address(page);