Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64262
b: refs/heads/master
c: 9e86943
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Aug 23, 2007
1 parent 42ae589 commit 539c144
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fe58103a56f05613cb1f0ef228354d4d5f6c2b08
refs/heads/master: 9e86943b6c74f214ce0516d56e55636d52252e19
6 changes: 3 additions & 3 deletions trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -3112,7 +3112,7 @@ static int list_locations(struct kmem_cache *s, char *buf,
unsigned long flags;
struct page *page;

if (!atomic_read(&n->nr_slabs))
if (!atomic_long_read(&n->nr_slabs))
continue;

spin_lock_irqsave(&n->list_lock, flags);
Expand Down Expand Up @@ -3247,7 +3247,7 @@ static unsigned long slab_objects(struct kmem_cache *s,
}

if (flags & SO_FULL) {
int full_slabs = atomic_read(&n->nr_slabs)
int full_slabs = atomic_long_read(&n->nr_slabs)
- per_cpu[node]
- n->nr_partial;

Expand Down Expand Up @@ -3283,7 +3283,7 @@ static int any_slab_objects(struct kmem_cache *s)
for_each_node(node) {
struct kmem_cache_node *n = get_node(s, node);

if (n->nr_partial || atomic_read(&n->nr_slabs))
if (n->nr_partial || atomic_long_read(&n->nr_slabs))
return 1;
}
return 0;
Expand Down

0 comments on commit 539c144

Please sign in to comment.