mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] mm: slab less atomics
Atomic operation removal from slab Signed-off-by: Nick Piggin <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
5e9dace8d3
commit
f205b2fe62
2 changed files with 5 additions and 7 deletions
|
|
@ -1402,7 +1402,7 @@ static void *kmem_getpages(struct kmem_cache *cachep, gfp_t flags, int nodeid)
|
|||
atomic_add(i, &slab_reclaim_pages);
|
||||
add_page_state(nr_slab, i);
|
||||
while (i--) {
|
||||
SetPageSlab(page);
|
||||
__SetPageSlab(page);
|
||||
page++;
|
||||
}
|
||||
return addr;
|
||||
|
|
@ -1418,8 +1418,8 @@ static void kmem_freepages(struct kmem_cache *cachep, void *addr)
|
|||
const unsigned long nr_freed = i;
|
||||
|
||||
while (i--) {
|
||||
if (!TestClearPageSlab(page))
|
||||
BUG();
|
||||
BUG_ON(!PageSlab(page));
|
||||
__ClearPageSlab(page);
|
||||
page++;
|
||||
}
|
||||
sub_page_state(nr_slab, nr_freed);
|
||||
|
|
|
|||
Loading…
Reference in a new issue