mm: remove rest of ACCESS_ONCE() usages
authorJason Low <[email protected]>
Wed, 15 Apr 2015 23:14:08 +0000 (16:14 -0700)
committerLinus Torvalds <[email protected]>
Wed, 15 Apr 2015 23:35:18 +0000 (16:35 -0700)
commit4db0c3c2983cc6b7a08a33542af5e14de8a9258c
tree66cfeaeae432f904c09af45e030b7e1e00476011
parent9d8c47e4bb1c20dbceee437f9fa7d76dafee80a2
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 <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Acked-by: Davidlohr Bueso <[email protected]>
Acked-by: Rik van Riel <[email protected]>
Reviewed-by: Christian Borntraeger <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
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