diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slab.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1402,7 +1402,7 @@ static void *kmem_getpages(struct kmem_cache *cachep, gfp_t flags, int nodeid) | |||
1402 | atomic_add(i, &slab_reclaim_pages); | 1402 | atomic_add(i, &slab_reclaim_pages); |
1403 | add_page_state(nr_slab, i); | 1403 | add_page_state(nr_slab, i); |
1404 | while (i--) { | 1404 | while (i--) { |
1405 | SetPageSlab(page); | 1405 | __SetPageSlab(page); |
1406 | page++; | 1406 | page++; |
1407 | } | 1407 | } |
1408 | return addr; | 1408 | return addr; |
@@ -1418,8 +1418,8 @@ static void kmem_freepages(struct kmem_cache *cachep, void *addr) | |||
1418 | const unsigned long nr_freed = i; | 1418 | const unsigned long nr_freed = i; |
1419 | 1419 | ||
1420 | while (i--) { | 1420 | while (i--) { |
1421 | if (!TestClearPageSlab(page)) | 1421 | BUG_ON(!PageSlab(page)); |
1422 | BUG(); | 1422 | __ClearPageSlab(page); |
1423 | page++; | 1423 | page++; |
1424 | } | 1424 | } |
1425 | sub_page_state(nr_slab, nr_freed); | 1425 | sub_page_state(nr_slab, nr_freed); |