Skip to content

Commit

Permalink
slub: use __SetPageSlab function to set PG_slab flag
Browse files Browse the repository at this point in the history
To set page-flag, using SetPageXXXX() and __SetPageXXXX() is more
understandable and maintainable. So change it.

Signed-off-by: Joonsoo Kim <[email protected]>
Signed-off-by: Pekka Enberg <[email protected]>
  • Loading branch information
JoonsooKim authored and penberg committed May 18, 2012
1 parent 02d7633 commit c03f94c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c03f94c

Please sign in to comment.