diff --git a/mm/slab.c b/mm/slab.c index fc9496bdd038061db8fd8ce92b4c7b6ec3e2911a..09771ed3e69320a158f6d5de9dc6b1f027ee1bae 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -3452,8 +3452,7 @@ static void free_block(struct kmem_cache *cachep, void **objpp, n->free_objects -= cachep->num; page = list_last_entry(&n->slabs_free, struct page, lru); - list_del(&page->lru); - list_add(&page->lru, list); + list_move(&page->lru, list); } }