|
@@ -1004,21 +1004,19 @@ static inline void slab_free_hook(struct kmem_cache *s, void *x)
|
|
static void add_full(struct kmem_cache *s,
|
|
static void add_full(struct kmem_cache *s,
|
|
struct kmem_cache_node *n, struct page *page)
|
|
struct kmem_cache_node *n, struct page *page)
|
|
{
|
|
{
|
|
- lockdep_assert_held(&n->list_lock);
|
|
|
|
-
|
|
|
|
if (!(s->flags & SLAB_STORE_USER))
|
|
if (!(s->flags & SLAB_STORE_USER))
|
|
return;
|
|
return;
|
|
|
|
|
|
|
|
+ lockdep_assert_held(&n->list_lock);
|
|
list_add(&page->lru, &n->full);
|
|
list_add(&page->lru, &n->full);
|
|
}
|
|
}
|
|
|
|
|
|
static void remove_full(struct kmem_cache *s, struct kmem_cache_node *n, struct page *page)
|
|
static void remove_full(struct kmem_cache *s, struct kmem_cache_node *n, struct page *page)
|
|
{
|
|
{
|
|
- lockdep_assert_held(&n->list_lock);
|
|
|
|
-
|
|
|
|
if (!(s->flags & SLAB_STORE_USER))
|
|
if (!(s->flags & SLAB_STORE_USER))
|
|
return;
|
|
return;
|
|
|
|
|
|
|
|
+ lockdep_assert_held(&n->list_lock);
|
|
list_del(&page->lru);
|
|
list_del(&page->lru);
|
|
}
|
|
}
|
|
|
|
|