]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: remove rest of ACCESS_ONCE() usages
authorJason Low <jason.low2@hp.com>
Tue, 7 Apr 2015 23:44:30 +0000 (09:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:44:30 +0000 (09:44 +1000)
commit5507e8cc087eaf7e8856aee2f7fe8d8e0dd6aadd
tree9a944125e319e5d5db558b01f11b18e13e12da29
parenta331dca0a2d0de1c334d9d90553c482c23938b6a
mm: remove rest of ACCESS_ONCE() usages

We converted some of the usages of ACCESS_ONCE to READ_ONCE in the mm/
tree since it doesn't work reliably on non-scalar types.

This patch removes the rest of the usages of ACCESS_ONCE, and use the new
READ_ONCE API for the read accesses.  This makes things cleaner, instead
of using separate/multiple sets of APIs.

Signed-off-by: Jason Low <jason.low2@hp.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Davidlohr Bueso <dave@stgolabs.net>
Acked-by: Rik van Riel <riel@redhat.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/huge_memory.c
mm/internal.h
mm/ksm.c
mm/memcontrol.c
mm/memory.c
mm/mmap.c
mm/page_alloc.c
mm/rmap.c
mm/slub.c
mm/swap_state.c
mm/swapfile.c