OpenCloudOS-Kernel/arch/powerpc/platforms/512x
Joonsoo Kim fe896d1878 mm: introduce page reference manipulation functions
The success of CMA allocation largely depends on the success of
migration and key factor of it is page reference count.  Until now, page
reference is manipulated by direct calling atomic functions so we cannot
follow up who and where manipulate it.  Then, it is hard to find actual
reason of CMA allocation failure.  CMA allocation should be guaranteed
to succeed so finding offending place is really important.

In this patch, call sites where page reference is manipulated are
converted to introduced wrapper function.  This is preparation step to
add tracepoint to each page reference manipulation function.  With this
facility, we can easily find reason of CMA allocation failure.  There is
no functional change in this patch.

In addition, this patch also converts reference read sites.  It will
help a second step that renames page._count to something else and
prevents later attempt to direct access to it (Suggested by Andrew).

Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-03-17 15:09:34 -07:00
..
Kconfig powerpc/512x: add LocalPlus Bus FIFO device driver 2015-10-22 15:19:40 +02:00
Makefile powerpc/512x: add LocalPlus Bus FIFO device driver 2015-10-22 15:19:40 +02:00
clock-commonclk.c powerpc/512x: clk: Include clk.h 2015-07-20 10:52:40 -07:00
mpc512x.h powerpc/mpc512x: add MPC5125 reset module support for system restart 2013-06-24 21:36:49 +02:00
mpc512x_generic.c powerpc/mpc512x: move common code to shared.c file 2013-05-21 10:58:39 +02:00
mpc512x_lpbfifo.c powerpc/512x: add LocalPlus Bus FIFO device driver 2015-10-22 15:19:40 +02:00
mpc512x_shared.c mm: introduce page reference manipulation functions 2016-03-17 15:09:34 -07:00
mpc5121_ads.c powerpc/mpc512x: move common code to shared.c file 2013-05-21 10:58:39 +02:00
mpc5121_ads.h powerpc/mpc5121: Add support for CPLD on MPC5121ADS board 2008-07-12 12:10:55 -06:00
mpc5121_ads_cpld.c genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
pdm360ng.c powerpc: add explicit OF includes 2013-10-09 20:04:11 -05:00