linux/arch
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
..
alpha PCI changes for the v4.6 merge window: 2016-03-16 14:45:55 -07:00
arc ARC, thp: remove infrastructure for handling splitting PMDs 2016-03-17 15:09:34 -07:00
arm mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
arm64 mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
avr32 PCI changes for the v4.6 merge window: 2016-03-16 14:45:55 -07:00
blackfin PCI changes for the v4.6 merge window: 2016-03-16 14:45:55 -07:00
c6x locking/lockdep: Eliminate lockdep_init() 2016-02-09 12:03:25 +01:00
cris PCI: Move pci_dma_* helpers to common code 2016-03-07 10:40:02 -06:00
frv PCI: Move pci_dma_* helpers to common code 2016-03-07 10:40:02 -06:00
h8300 Merge branch 'akpm' (patches from Andrew) 2016-01-21 12:32:08 -08:00
hexagon arch/hotplug: Call into idle with a proper state 2016-03-01 20:36:57 +01:00
ia64 mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
m32r PCI changes for the v4.6 merge window: 2016-03-16 14:45:55 -07:00
m68k PCI changes for the v4.6 merge window: 2016-03-16 14:45:55 -07:00
metag mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
microblaze PCI changes for the v4.6 merge window: 2016-03-16 14:45:55 -07:00
mips mm: introduce page reference manipulation functions 2016-03-17 15:09:34 -07:00
mn10300 PCI changes for the v4.6 merge window: 2016-03-16 14:45:55 -07:00
nios2 dma-mapping: always provide the dma_map_ops based implementation 2016-01-20 17:09:18 -08:00
openrisc dma-mapping: always provide the dma_map_ops based implementation 2016-01-20 17:09:18 -08:00
parisc mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
powerpc mm: introduce page reference manipulation functions 2016-03-17 15:09:34 -07:00
s390 PCI changes for the v4.6 merge window: 2016-03-16 14:45:55 -07:00
score arch: Set IORESOURCE_SYSTEM_RAM flag for System RAM 2016-01-30 09:49:57 +01:00
sh mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
sparc mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
tile mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
um mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
unicore32 mm: cleanup *pte_alloc* interfaces 2016-03-17 15:09:34 -07:00
x86 mm: introduce page reference manipulation functions 2016-03-17 15:09:34 -07:00
xtensa PCI changes for the v4.6 merge window: 2016-03-16 14:45:55 -07:00
.gitignore
Kconfig dma-mapping: always provide the dma_map_ops based implementation 2016-01-20 17:09:18 -08:00