]> git.baikalelectronics.ru Git - kernel.git/commit
mm/page_ref: Convert the open coded tracepoint enabled to the new helper
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 24 Sep 2020 16:43:46 +0000 (12:43 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 25 Sep 2020 22:01:48 +0000 (18:01 -0400)
commit2db9b5f572d8b830988a021f2d29b4b12991095a
tree76f88294ce5162c3d244aee7c36503e303a7a0ac
parentaaecafdad453f93aaa5c3bab2e0640139a276b34
mm/page_ref: Convert the open coded tracepoint enabled to the new helper

As more use cases of checking if a tracepoint is enabled in a header are
coming to fruition, a helper macro, tracepoint_enabled(), has been added to
check if a tracepoint is enabled or not, and can be used with minimal header
requirements (avoid "include hell"). Convert the page_ref logic over to the
new helper macro.

Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Michal Nazarewicz <mina86@mina86.com>
Cc: 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: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/page_ref.h