linux/drivers/net/ethernet/intel/fm10k
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
..
fm10k_common.c fm10k: Resolve various spelling errors and checkpatch warnings 2015-03-03 01:07:23 -08:00
fm10k_common.h fm10k: Add support for ptp to hw specific files 2014-09-23 03:59:22 -07:00
fm10k_dcbnl.c fm10k: conditionally compile DCB and DebugFS support 2015-12-13 15:27:59 -08:00
fm10k_debugfs.c fm10k: conditionally compile DCB and DebugFS support 2015-12-13 15:27:59 -08:00
fm10k_ethtool.c fm10k: cleanup overly long lines 2015-12-13 15:28:38 -08:00
fm10k_iov.c fm10k: add support for extra debug statistics 2015-09-22 15:58:27 -07:00
fm10k_main.c mm: introduce page reference manipulation functions 2016-03-17 15:09:34 -07:00
fm10k_mbx.c fm10k: cleanup mailbox code comments etc 2015-12-22 05:19:57 -08:00
fm10k_mbx.h fm10k: cleanup mailbox code comments etc 2015-12-22 05:19:57 -08:00
fm10k_netdev.c fm10k: IS_ENABLED() is not appropriate for boolean kconfig option 2015-12-22 05:23:17 -08:00
fm10k_pci.c fm10k: use true/false for boolean get_host_state 2015-12-22 05:16:45 -08:00
fm10k_pf.c fm10k: constify fm10k_mac_ops, fm10k_iov_ops and fm10k_info structures 2015-12-22 05:10:01 -08:00
fm10k_pf.h fm10k: constify fm10k_mac_ops, fm10k_iov_ops and fm10k_info structures 2015-12-22 05:10:01 -08:00
fm10k_ptp.c fm10k: fix incorrect free on skb in ts_tx_enqueue 2015-06-17 14:20:36 -07:00
fm10k_tlv.c fm10k: use ether_addr_equal instead of memcmp 2015-12-22 05:01:58 -08:00
fm10k_tlv.h fm10k: cleanup mailbox code comments etc 2015-12-22 05:19:57 -08:00
fm10k_type.h fm10k: remove unused struct element 2015-12-22 05:13:07 -08:00
fm10k_vf.c fm10k: constify fm10k_mac_ops, fm10k_iov_ops and fm10k_info structures 2015-12-22 05:10:01 -08:00
fm10k_vf.h fm10k: constify fm10k_mac_ops, fm10k_iov_ops and fm10k_info structures 2015-12-22 05:10:01 -08:00
fm10k.h fm10k: initialize xps at driver load 2015-12-13 15:28:43 -08:00
Makefile fm10k: conditionally compile DCB and DebugFS support 2015-12-13 15:27:59 -08:00