mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
slub: fix atomic usage in any_slab_objects()
any_slab_objects() does an atomic_read on an atomic_long_t, this fixes it to use atomic_long_read instead. Signed-off-by: Benjamin Herrenschmidt <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: Pekka Enberg <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ba719baeab
commit
4ea33e2dc2
1 changed files with 1 additions and 1 deletions
|
|
@ -3762,7 +3762,7 @@ static int any_slab_objects(struct kmem_cache *s)
|
|||
if (!n)
|
||||
continue;
|
||||
|
||||
if (atomic_read(&n->total_objects))
|
||||
if (atomic_long_read(&n->total_objects))
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue