dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Joonsoo Kim 2012-05-18 00:47:47 +09:00 committed by Pekka Enberg
parent 02d7633fa5
commit c03f94ccbd
1 changed files with 1 additions and 1 deletions

View File

@ -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);